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
321 views
0
Improve duplicate code

package sec01.exam01;public class TelevisionExam {public static void main(String[] args) { Television tv; tv = new Television(); tv.setModel(SAMSUNG Neo OLED); tv.setSize(100-inch); System.out.println...

1 years ago

1 answers
398 views
0
There is something I don't understand about how to convert Java from type char to type int.

I don't understand why Java's conversion from char to int changes to that value.The JRE I use is the JRE System Library java11.getNumeric and -'0' are two common methods used in Java to convert char t...

1 years ago

1 answers
414 views
0
Console Lost Color After Refreshing GradleProject in Spring Tool Suite

I am learning Spring using the Spring Tool Suite (STS).On the way, I noticed that there was a shortage of libraries, so I did the following:Add one line of implementation to build.gradeFrom Package Ex...


1 answers
405 views
0
Java test on unit 3 doesn't work.

I created a CardDeck class, and I had a task to test it with unit 3.However, eight of the 12 methods tested fail (one appears to be hiding a failure, so it's actually nine).The CardDeck class itself w...

1 years ago

1 answers
369 views
0
Why is it that the part of the if statement is an error?

class Solution { public static int vacationRental(int people, int day) { // Please complete the function if(day<=3) int perDay=80; else if (4<=day&day<=9) int perDay=60; else int perD...

1 years ago

1 answers
223 views
0
How to Make Your Own Class Key to a Map

Do you ever specify your own class in the map key as follows?However, self-made classes do not override equals and hashCode and It's just like using a reference address as a key.Person p1 = new Person...

1 years ago

2 answers
291 views
0
Getter is not created in lombok@Data?

I am studying java at SpringToolSuite4.I am trying to automatically add Getter, Setter, etc. using [email protected], the controller does not digest Getter, so Even if I access it directly from the ...

1 years ago

1 answers
347 views
0
Error when deploying dynamic projects using jsf for payara server in eclipse

An error occurs when deploying a dynamic project called example2 using jsf for payara server in eclipse.I want to eliminate this error and deploy this dynamic project to the server.Development Environ...

1 years ago

2 answers
349 views
0
Java Class Succession Does Not Make You Knows

I am a beginner in Java.There is a problem with class inheritance.Please let me knowProblem statement: Create a ShortComic class that inherits the Comic class.ShortComic represents a comic book with o...

1 years ago

2 answers
394 views
0
Error java.lang.IndexOutOfBoundsException: Index 333 out of bounds for length1 when manipulating and browsing ArrayList

Based on the requirements on the page below, we have created a membership registration function in Java.A collection of programming selection tasks to make and memorize (Java Basic Edition) - Level 4 ...

1 years ago
« - 5 - »

© 2024 OneMinuteCode. All rights reserved.