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
70 views
0
What does static block mean in Java?

static { ...}I saw this code. I don't know what this is at all, and it doesn't make errors and compiles well.What does the 'static' block mean?

2 years ago

1 answers
80 views
0
When naming interfaces in Java

In most object-oriented languages, when you name an interface, you put the capital i in front of it. But why not in Java? Why not?I mean, when I implement User Interface and User, there are two ways.B...


1 answers
75 views
0
What is the difference between SE/EE/ME in Java?

I want to learn Java. What should I install? There are three versions: SE, ME, and EE. I want to start with the basics.

2 years ago

1 answers
147 views
0
How do I maintain the insertion order of the HashMap?

I'm using HashMap. Whenever I repeat the map, I receive the data in random order even though I put it in sequential order. I need to get it sequentially, what should I do?

2 years ago

1 answers
139 views
0
Is it possible to cast int as enum in Java?

public enum MyEnum{ EnumValue1, EnumValue2}MyEnum enumValue = (MyEnum) x; //Doesn't work???How can I cast int as enum?

2 years ago

2 answers
110 views
0
Is there a time when you use Interface instead of an abstract class? And is there the opposite?

It's a general OOP question. I want to make a general comparison between Interface and the basic use of abstraction classes. I want to know the difference between using the interface and using the abs...


1 answers
145 views
0
Why is there no get(int index) in java.util.Set?

I understand that there is no get method in Set for a reason, but please explain the reason.I think it's good to put elements in the set, but I don't know a good way to get a single item from there.So...


1 answers
53 views
0
Where is the length property of the array defined?

ArrayList<Integer> arr = new ArrayList(10); int size = arr.size(); In order to obtain the length of the ArrayList in this way, the size() method is used.And String[] str = new String[10];int siz...

2 years ago

1 answers
136 views
0
Can I sort the map by key value in Java?

<question1, 1>, <question9, 1>, <question2, 4>, <question5, 2>I made a map that has this kind of data. I want to arrange the key value in question 1, question 2, question 3. In...

2 years ago

1 answers
163 views
0
What is the best way to put a char array in the string?

char[] a = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};There's a string like this String b = new String(a);Is there a better way than this?

2 years ago
« - 68 - »

© 2024 OneMinuteCode. All rights reserved.