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
54 views
0
Randomize numbers excluding 3,7 out of {1,2,3,4,5,6,7,8,9,0}

Hello, everyoneHow do I randomly pick a number out of a set of natural numbers?

2 years ago

2 answers
99 views
0
I have a question about interface extension in Java.(Design Pattern)

I think it's a question about the design pattern ^^In situations where multiple classes implement a single interface, If you need to create a new implementation in a particular class (add a new method...


1 answers
57 views
0
Query question.

SELECT dayName, round(sum(REVIEW_GRADE)/count(*),1) as dayAvg FROM ( SELECT A.REVIEW_SEQ, A.REVIEW_DTTM, B.REVIEW_RATING_TYP_CCD, B.REVIEW_GRADE, TO_CHAR(TO_DATE(a.REVIEW_DTTM, 'yyyymmddHH2...

2 years ago

1 answers
169 views
0
What is the difference between using the StringBuilder class in Java's toString() method and using the string connection operator?

Which of the two toString() methods below is the better one?public String toString(){ return {a:+ a + , b: + b + , c: + c +};}public String toString(){ StringBuilder sb = new StringBuilder(100); retu...


1 answers
89 views
0
In Java, parameters... "There are three dots. What is this?"

While looking at the source, there are three dots on the parameter as shown below, what does this mean? public void myMethod(String... strings){ // // method body}

2 years ago

2 answers
25 views
0
Final reserved word question.

void method1(){ final int a = 10; TextView tv = (TextView)findViewByID(R.id.btn); tv.setOnClickListener(new OnClickListener() { @Override void onClick(View v) { a++; } });}Here, if variable a is...

2 years ago

3 answers
148 views
0
It's a Java binary output recursive method, but I don't understand.

public static void bin(int num) { if(num>0) { int bin; bin = num % 2; num/=2; bin(num); System.out.print(bin); } } public static void main(String[] args) { bin(10); }This is the code, but...

2 years ago

1 answers
126 views
0
Why does Java's HashMap produce output like this?

public class CHashMap { static HashMap<Integer, Student> student = new HashMap<Integer, Student>(); public static void main(String[] args) { student.put (1111, new Student (Kim Ye-si, 3rd...

2 years ago

1 answers
101 views
0
When deleting data, can I find it with the delete method (key value to match, class name)?

public static void delete (int id) { // Create an EntityManager EntityManager manager = ENTITY_MANAGER_FACTORY.createEntityManager(); EntityTransaction transaction = null; try { // // Get a transacti...


1 answers
131 views
0
On Android, thread, multi-reading, process relationships and definitions

Hi, how are you?I'm leaving a question to see if you understand the thread and process.From what I understand now, I think I will express the thread and process as follows.Is there anything I misunder...

« - 98 - »

© 2024 OneMinuteCode. All rights reserved.