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
127 views
0
Can getStackTrace() return value be String?

Can getStackTrace()return value be made into String

2 years ago

1 answers
137 views
0
What is the difference between wait() and sleep()?

What is the difference between wait() and sleep()


1 answers
143 views
0
When rounding to n decimal places in Java,

When you use String's format, you always round it up if it's more than 5.String.format(%.5g%n, 0.912385);If this is the case 0.91239It's rounded up well. For example, String.format(%.5g%n, 0.912300);I...


1 answers
26 views
0
I want to print it out with a zero on the left side of the number

from 0001 to 9999 I want to print 1 as 0001, is it possible?

2 years ago

1 answers
123 views
0
Can't I get the current working directory???

String current = new java.io.File( . ).getCanonicalPath(); System.out.println(Current dir:+current); String currentDir = System.getProperty(user.dir); System.out.println(Current dir using System: +c...

2 years ago

1 answers
130 views
0
Replace String with Date in Java

If there is a string format like January 2, 2010, I want to know how to change it to Date typeI want to split that string into years, months, and days

2 years ago

1 answers
138 views
0
How do you know that certain files exist in Java?

How do I know if there is a file before I read it in Java? In Pearl, you know when you say -e $filename.I looked it up and asked how to check if there is a file when writing a file, and I told you to ...

2 years ago

1 answers
80 views
0
What's the best way to read large text files in Java?

I want to read almost 5-6 gigabytes of files in a row, but how can I read them quickly?

2 years ago

1 answers
26 views
0
Where does Java come from on Mac OS X?

To program JNI, you need to know where the java is locatedI thought /Library/Java/JavaVirtualMachines/ was here, but when I tried ls/Library/Java/JavaVirtualMachines/ in the terminal, the folder was e...

2 years ago

1 answers
145 views
0
Why can't the class be declared static?

Why can't the class be declared static?

2 years ago
« - 63 - »

© 2024 OneMinuteCode. All rights reserved.