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
The role of Buffer in java.io.FileInputStream

int bytesAvailable; FileInputStream fileInputStream = new FileInputStream(new File(somewhere)); bytesAvailable = fileInputStream.available(); int maxBufferSize = 100; int bufferSize = Math.min(bytesAv...


1 answers
23 views
0
Java compilation error javac: file not found

When you say javac Hello.java, the following results come outIt's not a text file. It's definitely a file location. The file's name is Hello.javaI don't know what's wrong.C:\Temp>javac Hello.javaja...

2 years ago

1 answers
28 views
0
When using Android ACTION_PICK, EXTRA_ALLOW_MULTIPLE, go to Google Photo without selection window

Intent intent = new Intent(Intent.ACTION_PICK); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); intent.setType(image/*); startActivityForResult(intent.createChooser(intent,), PICTURE_REQUEST_CO...

2 years ago

2 answers
41 views
0
I have a question for JSON parsing

Below is the URL to get the 1st batch list of the Bithumb candle chart https://api.bithumb.com/public/candlestick/ETH/1m{status:0000,data:[[1582464360000,321000,320900,321000,320900,11.7071],[],[]]}I ...

2 years ago

1 answers
23 views
0
JAVA: To change the length of the char array every time you enter it?

After opening an account, I want to make a code to compare if the ID is correct. You created an Account object.Create an Account Array and class Account {private double annualInterestRate = 0; private...

2 years ago

1 answers
71 views
0
How to use a different class method for a statement

package arrayList;import java.util.ArrayList;public class Student { String name; ArrayList<Book> bookList; public Student(String name) { this.name = name; bookList = new ArrayList<Book>(...

2 years ago

1 answers
136 views
0
If the value in JSTL is 0, can we not print it out?

<td align='center'> <c:out value='${resultList.out_qty}' /><c:out value='${resultList.in_qty}' /> </td>To display quantities in the statement output file, take out_qty, in_qt...

2 years ago

2 answers
42 views
0
Question for when the String is blank.

Hello! If you enter a space when you receive the string (variable name word), you want to output true, false, depending on whether this string is blank or not. If there is a space in the String, why c...

2 years ago

1 answers
76 views
0
Can a VM die when a catch exception occurs consecutively?

Could a VM die because of an estimated 5 catches exceptions per second?Since it is a caught exception, it is a code covered by try-catch, and all you do in catch is to log at the error level. There's ...

2 years ago

2 answers
78 views
0
java.lang.NullPointerException: Attempt to invoke virtual method 'LegacyCameraConnectionFragment.openCamera()' on a null object reference

java.lang.NullPointerException: Attempt to invoke virtual method 'void kr.co.kpst.mec_digtwin.activity.LegacyCameraConnectionFragment.openCamera()' on a null object referenceIf you press the curren...

« - 138 - »

© 2024 OneMinuteCode. All rights reserved.