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
122 views
0
How to change float to int in Java

float a=8.61f; int b; b=(int)a;This is how you change float to int. It's not accurate. The value of b is 8, but it's supposed to be 9.And when the value of a is -7.65f, the result is -7, not -8 What s...

2 years ago

1 answers
155 views
0
Can't we do it in reverse order when we repeat from Java to ether?

When you want to search for an array in reverse order, just turn it into a for statement, for (int i = nodes.size() - 1; i >= 0; i--) { final Node each = (Node) nodes.get(i); ... }You can do it lik...

2 years ago

1 answers
102 views
0
What is the best way to repeat a string in Java?

Is there any other way to change the string to char[] by turning the repetitive statement instead of StringTokenizer?


1 answers
95 views
0
How can I safely remove the front and back gaps in Java?

For example, Hello. Good morning. If there's a string like that, I want to say, Hello, good morning. But I want to make a regular meal that solves this problemI wonder if the method is supported.

2 years ago

1 answers
81 views
0
I want to put int[] in the List , how do I do it?

I want to put int[] in the list, how do I do it?


1 answers
142 views
0
@Nullable Using Annotation

void foo(@Nullable Object obj){ ... }I saw this code. What does @Nullable mean here? Do you mean to put null in the parameter?@Even without Nullable, we can put null in the parameter, right? I don't k...

2 years ago

1 answers
73 views
0
How do I sort the arrays in descending order in Java?

You can just sort the arrangement in ascending order. Is there an easy way to sort in descending order?

2 years ago

1 answers
35 views
0
How do I find the class inside the JAR file?

I want to find each class in Jar files. The names of those classes and stuff. What can I do?

2 years ago

1 answers
127 views
0
I want to replace characters in a specific index of a string.

To replace characters in a specific index in a string String myName = domanokz;myName.charAt(4) = 'x';I tried this way, but an error occurred. Is there another method?


1 answers
74 views
0
The java.net.URLEncoder.code(String) was deprecated. What should I write instead of this?

java.net.URLEncoder.encode I was going to use thiswarning: [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecatedI got this warning. So what should I write instead of that?

« - 70 - »

© 2024 OneMinuteCode. All rights reserved.