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
68 views
0
What is the value of x if "x = x++"?

int x = 7;x = x++;What happens when there's a code like this?Does the variable increase after calculation and assign a value to itself? When I compiled it, x still has a value of 7. In my book, it say...


3 answers
26 views
0
Ask about Java errors.

At first, the problem occurred with Error: could not open 'C:\Users\1418\lib\amd64\jvm.cfg' as shown in the picture above. So I searched a lot, reinstalled it, went into Registry Editor->javasoft-&...

2 years ago

1 answers
70 views
0
Execution of a for statement within a recursive function

import java.util.ArrayList;import java.util.Scanner;public class Anagram {public static void ana(ArrayList<String> ar, ArrayList<String> sub){ if(ar.size()>1) { for(int i = 0; i < a...

2 years ago

1 answers
119 views
0
Static initialization block

Until now, I understood that static initialization block is used when it is impossible to set the value of the static field with one line.But I don't know why I need a special block for that work. For...


1 answers
85 views
0
[Basic Java] What happens if you don't use public when declaring the creator?

I'm a student of Java.I learned that you use public to declare a constructor.However, when coding alone, there is no error even if the public is omitted (without typing), and the corresponding constru...

2 years ago

1 answers
36 views
0
This is an Android navigation view (drawerlayout) question!

Hello, everyone It's been a while since I posted a question I'm working on the navigation view, but this part is not working well, so I upload it like this.Navigationview took what was in the Android ...

2 years ago

1 answers
25 views
0
There is an error trying to get the Android Facebook profile picture.

try{ URL image_value = new URL(https://graph.facebook.com/+id+ /picture?type=large); Log.i(getPackageName(),url : +image_value); Bitmap bmp = null; //Error bmp = BitmapFactory.codeStream(i...

2 years ago

1 answers
136 views
0
What is the role of the keyword static in the class?

package hello;public class Hello { Clock clock = new Clock(); public static void main(String args[]) { clock.sayTime(); }}When there was a code like this Cannot access non-static field in static meth...


1 answers
22 views
0
ArrayIndexOutOfBoundsException: Why does 0 occur?

...import java.util.Scanner;public class Driver { public static void main(String[] args) { Sum sumObject = new Sum(); int upper = Integer.parseInt(args[0]); Thread child = new Thread(new Summation(up...

2 years ago

1 answers
28 views
0
If you put mp3 file in Android soundpool and play it, it will be executed, but if you put wav file, it will not play. crying

If you put mp3 file in Android soundpool and play it, it will be executed, but if you put wav file, it will not play. Is there a solution??Looking at the error window,The sample not ready appears.

2 years ago
« - 105 - »

© 2024 OneMinuteCode. All rights reserved.