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
53 views
0
To sort by Value value (object) in TreeMap

Hi, everyone.Post a question while studying the collection framework.When you convert HashMap to TreeMap, it is automatically sorted by the key value.HashMap<String, GameScore> map = new HashMap...

2 years ago

1 answers
137 views
0
How do I compare strings in Java?

How do I compare strings in Java?I've used the == operator to compare strings until now.But as I continued to use it, there were often situations where bugs occurred, and some of them.Fixed bug after ...

2 years ago

1 answers
23 views
0
Java question.

I'm reading a text fileRead by line.But if you can't read the text in the next line,If an error occurs I want to move on to the next line. What should I do?Should I say exception?

2 years ago

2 answers
32 views
0
Get the size of the currently focused window with Java

I'd like to use Java to get the size of the currently running game window, so how can I get it?

2 years ago

1 answers
99 views
0
To pull a random item out of a set

How do I pull out random items in Set? I want to pick random elements from HashSet or LinkedSet, but I don't know how.


1 answers
33 views
0
This is a Java question.

public class HelloWorld extends A { String b = HelloWorld; public static void main(String []args){ HelloWorld helloWorld = new HelloWorld(); helloWorld.bb(); }}class A { public void bb(){ System.ou...

2 years ago

1 answers
93 views
0
What is the difference between BufferdReader and Scanner?

As far as I know, the method of reading data based on characters from a file is the Scanner and Buffered Reader methods. We also know that BufferedReader uses buffers to efficiently read files to avoi...


1 answers
152 views
0
Why is the wait() method always in the synchronized block?

Object.Everyone knows that the method must be in the synchronized block to generate the wait()method. Otherwise, IllegalMonitorStateException will occur. Why are these restrictions? I know that the wa...


1 answers
128 views
0
Can you change the array to Set more easily?

I want to change the array to Set in Java. java.util.Arrays.asList(Object[] a); I can use asList, but I want to find a cleaner way.

2 years ago

1 answers
40 views
0
To create all permutations of a given string.

What is the best code to make all permutations of a given string? For example, if we have ba, we have ba and ab, but how do we make a program that outputs all the permutations that might come out of a...

2 years ago
« - 126 - »

© 2024 OneMinuteCode. All rights reserved.