java tag

Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language intended to let programmers write once, run anywhere (WORA), meaning that compiled Java code can run on all platforms that support Java without the need to recompile. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying computer architecture. The syntax of Java is similar to C and C++, but has fewer low-level facilities than either of them. The Java runtime provides dynamic capabilities (such as reflection and runtime code modification) that are typically not available in traditional compiled languages. As of 2019, Java was one of the most popular programming languages in use according to GitHub, particularly for client–server web applications, with a reported 9 million developers.

Java was originally developed by James Gosling at Sun Microsystems and released in May 1995 as a core component of Sun Microsystems' Java platform. The original and reference implementation Java compilers, virtual machines, and class libraries were originally released by Sun under proprietary licenses. As of May 2007, in compliance with the specifications of the Java Community Process, Sun had relicensed most of its Java technologies under the GPL-2.0-only license. Oracle offers its own HotSpot Java Virtual Machine, however the official reference implementation is the OpenJDK JVM which is free open-source software and used by most developers and is the default JVM for almost all Linux distributions.

As of March 2022, Java 18 is the latest version, while Java 17, 11 and 8 are the current long-term support (LTS) versions. Oracle released the last zero-cost public update for the legacy version Java 8 LTS in January 2019 for commercial use, although it will otherwise still support Java 8 with public updates for personal use indefinitely. Other vendors have begun to offer zero-cost builds of OpenJDK 18 and 8, 11 and 17 that are still receiving security and other upgrades.

Oracle (and others) highly recommend uninstalling outdated and unsupported versions of Java, due to unresolved security issues in older versions. Oracle advises its users to immediately transition to a supported version, such as one of the LTS versions (8, 11, 17).

Reference: WIKIPEDIA

1495 questions


1 answers
120 views
0
Can you handle multiple exceptions in the same catch statement when handling exceptions?

When we make an exception in Java.try { ... } } catch (IllegalArgumentException e) { someCode();} } catch (SecurityException e) { someCode();} } catch (IllegalAccessException e) { someCode();} } catc...

2 years ago

1 answers
110 views
0
Where is the final class used in Java?

I read a book about Java. It said that all classes can be declared final. But I don't know where to use the final class. I just learned this new method, so I wonder if programmers actually apply it to...

2 years ago

1 answers
127 views
0
There are too many if statements, can we reduce them?

The code below works the way I want it to. The cord is so dirty. I tried to shorten it several times, but it doesn't make much difference. Is there any mathematical formula that can help reduce code? ...

2 years ago

1 answers
118 views
0
Tree Data Structure in Java

Is there a good data structure that is tree in Java? All I need isCan I make something like this?

2 years ago

1 answers
145 views
0
Why doesn't Java allow static method override?

Why can't I override the static method in Java?If possible, show me an example of how to do it.


1 answers
117 views
0
concat() and + operator when linking strings

If you have the string a, b in Java, you can connect ita+=ba.concat(b)There's a way like this. Are these two the same? I have the code for the concat method, but there is no code for + operator. Pleas...

2 years ago

1 answers
136 views
0
Why does String's hashCode() use 31 to multiply?

In Java, the hash code for the String object is s[0]*31n-1 + s[1]*31n-2 + ... + s[n-1] is calculated like this. To illustrate the above equation, s[i] is the ith character in the string, n is the leng...

2 years ago

1 answers
41 views
0
How do I get the current time in Java?

What is the best way to get the current time in Java?

2 years ago

1 answers
91 views
0
How to apply the onClick Listener in RecyclerView

I put an onClick event in RecyclerView to apply onClickListener to each item, but it doesn't work properly. How shall I do it?


1 answers
125 views
0
I want to change it to a string without any unnecessary parts such as zero below the decimal point when I print out the real number, what should I do?

On 64-bit operating systems, double represents up to +-253. Until 53I'm using double because I think the size of the number I'm expressing is about unsigned 32-bit Integer. The problem is that even if...

« - 65 - »

© 2024 OneMinuteCode. All rights reserved.