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
20 views
0
How do you know the execution time of the function?

I want to know the execution time of the function, is there only a way to use the Timer utility class?When I searched on Google, most of them used timer. This is a thread, but I don't really like it

2 years ago

2 answers
20 views
0
Class, why write thread?

Hello. I went to a developer interview and the interviewer suddenly asked me. Why are you wearing it?I was speechless, so he asked me what the class was, so I combined behavior and data. That's all I ...

2 years ago

1 answers
52 views
0
[Basic Java] What happens if you declare String Class and change what you declare?

When using strings in Java String str1 = hello;We have learned that is declared in the constant domain.But if you declare it in the constant field, String str1 = hello; String str2 = hello; If you ...

2 years ago

1 answers
130 views
0
Cannot make a static reference to the non-static method

I'm creating a multilingual program in Java. An error occurs when inserting R.string data from an XML file as a string value. public static final String TTT = (String) getText(R.string.TTT);The error ...


1 answers
27 views
0
I'd like to parse the post page with Java Http URL Connection function.

Yesterday, I asked you about the address of the moving page and how to input the parameters in order to parse the page implemented by ajax. And GreppTod gave me a good answer. I modified the Java code...

2 years ago

1 answers
33 views
0
Is there any way to prevent the creation of only one object?

Is there any way to prevent the creation of only one object? For example, there's only one person in the world like me. soIf you instantiate me, I want to prevent you from objectifying more than one o...

2 years ago

1 answers
22 views
0
About synchronized Java (Android) arraylist

Java (Android) is changing arraylist data from multiple threads At the same time, data was added (.add)So I learned about synchronized while learning about synchronizedsynchronized(data){ data.add();}...

2 years ago

1 answers
80 views
0
How do I read files from Jar in Java?

I want to read the XML file located in one of the jar files included in the class path. How do I read the file included in the jar file?

2 years ago

1 answers
135 views
0
Can abstract classes also have constructors?

Can abstract classes also have constructors? If you can, how do you use it and why?


1 answers
43 views
0
What is the Java string pool and what is the difference between "s" and "new String" (the "s")

What does String Pool mean? And what is the difference between the two declarations below:String s = hello;String s = new String(hello);Is there a difference that JVM stores two strings?

2 years ago
« - 106 - »

© 2024 OneMinuteCode. All rights reserved.