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
111 views
0
How do I set the drawableLeft on the Android button with the code?

I make buttons dynamically. First, I set the style to xml like below, but I want to transfer it to the code.<Button android:id=@+id/buttonIdDoesntMatter android:layout_height=wrap_content android:l...


1 answers
177 views
0
How do I get the last value of ArrayList?

I don't know what the last value of ArrayList is. How do I get the last value of ArrayList?

2 years ago

1 answers
66 views
0
How do I read elements that are private in Java?

I made the access restrictor of one of the elements private to design the class elements private. How can I get the value of stubIWant from the code below?class IWasDesignedPoorly { private int stuffI...


1 answers
83 views
0
How to create temporary folders in Java

Is there a standard or a good way to create a temporary directory within a Java application?


1 answers
93 views
0
What are the problems caused by stack overflow errors?

No matter how much I look for information about stack overflow errors, there is no clear answer. Java documents show that the error java.lang.StackOverflowError is application says that the recursion ...

2 years ago

1 answers
99 views
0
What is the easy way to write to OutputStream from Java to InputStream?

Is there an easy way to write OutputStream with InputStream? It's not hard to write to the byte buffer code, but I think I'm missing an easier way...If InputStream has in and OutputStream has out byte...

2 years ago

1 answers
120 views
0
What is the native keyword in Java?

I was playing a problem solving game related to Java, and the keyword native came out. What is the native keyword used in Java?

2 years ago

1 answers
99 views
0
How do I update the value with the key value in Java hashMap?

Assuming there is a HashMap, how do I find the value of Integer as the string key value and update the value? The way to remove the existing value and enter a new one is concerned about overhead. The ...

2 years ago

1 answers
76 views
0
How can I safely convert long into int in Java?

What is the best way to avoid data loss when converting from long to int?public static int safeLongToInt(long l) { int i = (int)l; if ((long)i != l) { throw new IllegalArgumentException(l + cannot b...

2 years ago

1 answers
78 views
0
How do I put a space in a string in Java?

What is the easiest way to put a space in a string in Java?I think there's something in an API like StringUtil, but it doesn't come out when I look it up. Please teach me.

2 years ago
« - 67 - »

© 2024 OneMinuteCode. All rights reserved.