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
29 views
0
Integer output from any 0 to 100 (java)

System.out.println(Math.random()*100 + 1); System.out.println((int)Math.random() * 101); System.out.println((int)Math.random() * 100); System.out.println((int)Math.random() * 100 + 1);Which command is...

2 years ago

1 answers
41 views
0
I separate the strings based on commas." "Can't you let me ignore the commas inside?"

For example,foo,bar,c;qual=baz,blurb,d;junk=quux,syzygyIf you have a string like this foobarc;qual=baz,blurbd;junk=quux,syzygyI'm going to split it up by commas, but I want to ignore the commas in dou...

2 years ago

1 answers
84 views
0
Unable to allocate enough space for heap.

Error occurred during initialization of VMCould not reserve enough space for object heapCould not create the Java virtual machine.This error message keeps coming up every time you run a program. I tri...

2 years ago

1 answers
87 views
0
Why can't the value read from the database be seen in the packet?

We are making an app that parses information from our school portal.The problem is that the information you want to parse seems to be the value expressed in the Java portlet, not in the html form.I pl...

2 years ago

1 answers
103 views
0
How do I change InputStream to String?

I want to convert the java.io.InputStream object to String. If InputStream contains textual data, I think we can change it to StringWhat do I do? p.s. Please let me know the simplest way to do it in t...


2 answers
111 views
0
What is the difference between the constant and the heap regions in Java?

If declared as below, it is stored in the constant area. String str1 = hello;String str2 = hello;If you declare it as below, it will be stored in the heap area. String str3 = new String(hello);String ...

2 years ago

2 answers
24 views
0
Questions about non-static method calls from Java static methods

I'm not sure why static methods can't call non-static methods or instance variables.

2 years ago

1 answers
121 views
0
How do I compare strings with Java Scanner input values?

I'm sorry to ask you a question as soon as I signed up.System.out.println(Inp.nextLine() == Admin);In the code above, no matter how I give you the input value, you get the false value, and you get the...

2 years ago

1 answers
103 views
0
Please tell me the simplest way to print out an array.

You are trying to output the array without overriding the toString(). A strange value was printed. int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray); //'[I@3343c8b3' <- This ...

2 years ago

1 answers
128 views
0
How do I copy an array in Java?

There's a value [1,2,3,4,5] in the array A, and even if you copy the value of A to B and change A to [6,7,8,9,10], B wants to remain as [1,2,3,4,5]for(int i=0; i<5; i++){ B[i]=A[i]}I did it like th...

2 years ago
« - 113 - »

© 2024 OneMinuteCode. All rights reserved.