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
97 views
0
I want to make a shared preference single tone.

I want to make a single tone with Shared Preference, but there is a null point error < java.lang.RuntimeException: Unable to start activity ComponentInfo{com.raracraft.every_hour/com.raracraft.every_h...


1 answers
28 views
0
[Android] OnBackPressedCallBack() does not work in the dialog fragment.

After displaying the dialog fragment window, enter various data and click BackI'm trying to save the data by sending it to an activityTo test whether onBackPressedCallback works well, I'm going to sen...

2 years ago

1 answers
82 views
0
[Android JAVA] How to float a new window of Activity in Fragment

I want to open a new activity window in Fragment on Android JavaPressing the button will shut down the app at the same time as the error.f0Binding.ibBk.setOnClickListener(new View.OnClickListener() { ...


1 answers
118 views
0
java) Can private access restrictors be accessed through return?

class A { private String name; public void getName() { return name; }}If this class exists, the member name is set to privatePrivate can only be accessed within the class, right?However, if you return...

2 years ago

1 answers
84 views
0
Java method problem.

class Adder{ int value; int var1; public Adder(int x){ this.var1 = x; } public int add(){ value += var1; return getValue(); } public int getValue(){ return value; }}class Solution { public int sol...

2 years ago

2 answers
78 views
0
Why does int[][2]a become C as a parameter?

Hello, I'm a second-year undergraduate student who is studying alone after being discharged from the military and before returning to school.While solving the problem, C declared this structure.int so...

2 years ago

1 answers
20 views
0
Java Simple Grammar Errors

public class ShowError {public static void main (String[] args){ShowError s = new ShowError();}}Please explain this code error

2 years ago

2 answers
65 views
0
This is a question from a beginner who doesn't know the concept of Java creator

package test1;public class test1 {public static void main(String[] args) { Animals dog = new Dog(3); System.out.println(dog.age);}}================================================package test1;publ...

2 years ago

2 answers
91 views
0
Private error during Java list link implementation.

Follow the List Link implementation example and continue error: unexpected type curr.next() = curr.next(); //Error ^ required: variable found: valueAn error is encountered as it pops up.There is n...

2 years ago

1 answers
18 views
0
The Java variable is a little weird

import java.util.Random;public class Compare { public static void main(String[] args) { int[] arr = new int[100]; Random rand = new Random(); for(int i = 0; i < arr.length; i++) { arr[i] = rand...

2 years ago
« - 145 - »

© 2024 OneMinuteCode. All rights reserved.