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


2 answers
30 views
0
Why shouldn't I use finalize?

I was told that we should not implement the finalize cleanup process of Java, but why is that so?Also, is it possible to do something similar without using finalize?

2 years ago

1 answers
103 views
0
StoredProcedure Call from JPA

For multiple requests, JPA's StoredProcedureQuery implements the process of making procedural calls and registering them.I want to reflect everything only if it is successful, so I make it a start at ...

2 years ago

2 answers
33 views
0
The conversion of the Western calendar → Japanese calendar is not successful in java

I need to convert the Western calendar of the screen input value to the Japanese calendar, so I will ask you a question.I created it as shown below, but the input value month is +1.Please tell me the ...

2 years ago

1 answers
156 views
0
ClassNotFoundException Occurs When Initializing a Servlet Class

Thank you for your help.500 error when calling servlet from jsp.ClassNotFoundException appears and Is the web.xml configuration or jsp incorrectly specifying the URL in the form?I thought it was the s...

2 years ago

1 answers
42 views
0
The java-version command cannot be used unless you are a superuser.

Commands for Verifying the Version of javajava --versionWhen entering at the terminal, even if it is an account with admin privileges, nothing happens unless you enter sudo first.Also, if you enter a ...

2 years ago

2 answers
111 views
0
Questions about how to manage your own classes [closed]

Do you want to improve this question?Update your question, Edit this post to be answered with facts and quotes.Closed 4 years ago.4 years agoC++, Python, etc. are classified to make it easy for you to...


1 answers
117 views
0
Unable to deploy Android Studio textview

https://codinginflow.com/tutorials/android/simple-recyclerview-java/part-1-layouts-model-classLike around 4:14 in the video here, even if I drag textview with my mouse, it goes back to the upper left....


1 answers
33 views
0
Number of valid digits in the javer interface.

[Question] You are using javer interface (JRI) to obtain the results of R.There is a difference between the number of digits returned by JRI and the number of digits returned by R's GUI, so I don't kn...

2 years ago

3 answers
40 views
0
Should I narrow down the scope of the variable as much as possible even if I put it in for?

This is a rudimentary question. Suppose you have the following code. for (inti=0;i<100;++i){ inta=i; std::cout<<a<<std::endl;}Here, a is only used in for, but I don't think it's efficie...

2 years ago

1 answers
79 views
0
I want to replace Java code with Kotlin code.

I tried replacing Java with Kotlin as shown in the code below, but if I remove the comment out, I get a compilation error.Java is longer, so it may have become a Kotlin code like Java, but what do you...

2 years ago
« - 35 - »

© 2024 OneMinuteCode. All rights reserved.