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
457 views
0
Eclipse, java8 is built with an ant and the bootstrap class path is not set with -source8 error.

As the title suggests, I am too new to know how to set classpass.Currently, javac is unknown in the following configuration:jdk-14.0.2jre1.8.0_261tomcat 8.5.57Below is the error.Thank you for your coo...

1 years ago

1 answers
234 views
0
I want java to unify the number of continue in the for statement.

I want to make the number of continue in the for statement one in java I'm analyzing using sonarqube, but I get an error asking to make the number of continue one, but I don't know how to deal with it...

1 years ago

2 answers
344 views
0
I want to understand regular expressions that check HTML start and end tags.

I'd like to validate the start and end tags of HTML tags in Java, but I'd like to understand the regular expression.(\\s*(?:/\\s*)?[tag name](?:\\s*|\\s+[^>]+))(?:>|(?=<)|$(?!\\n)))I found a ...

1 years ago

1 answers
441 views
0
JMockit to Mockit Switch Questions

I have been using JMockit until now.In particular, another class called in the method under test was mocked and used to cause exception on the second time.The following source code using JMockit works...

1 years ago

1 answers
343 views
0
Ball class representing java spheres

I want to create a program like the one below, but it doesn't work.I just don't know, so could someone tell me the answer?Thank you m(__)m/* * Ex07 * Create a class ball that represents a sphere. * Sp...

1 years ago

2 answers
334 views
0
array duplication check

We have created a program that checks for duplicate registrants and asks for the average age, and the current situation is as follows:The average age is required, but it doesn't seem to be able to che...

1 years ago

1 answers
309 views
0
Handled two instances to another class of methods.Understanding How to Re-Receive and Display Processed Values with Return Values

I am currently working on a Java problem, but I have not been able to resolve the error, so I am asking you a question this time.The contents are as follows.Create two instances of Test1 and two insta...

1 years ago

1 answers
384 views
0
I want to know why component must be shutdown and IllegalStateException occur in swing.

We are currently developing on-site using a swing-based library.Press the search button (SearchBox), select an item, and return to the caller screen to set the selection value.(I'm sorry that it's har...

1 years ago

1 answers
116 views
0
How to Configure Class Paths from VM Arguments in Eclipse

I have a question about eclipse.properties file in external folderI'd like to load it.from the VM argument in eclipseJava Build Path > Library > Class Path Is there a way to set up an external f...


2 answers
88 views
0
To create an online compiler

Thank you for browsing.I am currently thinking of creating an online compiler for Java.In order to create it, I wanted to know how to create it in a modern way.The online compiler I envision is like t...

1 years ago
« - 9 - »

© 2024 OneMinuteCode. All rights reserved.