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
107 views
0
You want to use Java variables repeatedly by numbering them. What should I do?

int Mnum0,Mnum1,Mnum2,Mnum3,Mnum4,Mnum5,Mnum6,,,,,,,,,,,,,,,,,,, for(int h=0;h<Mnum0.length;h++) for(int h=0;h<Mnum1.length;h++) for(int h=0;h<Mnum2.length;h++) for(int h=0;h<Mnum3.length;...

2 years ago

1 answers
23 views
0
[Java] Is there a solution to the cross-reference between the two classes?

To refer to the methods that two classes need each other Creating each class object with each other results in an error due to cross-referencing...Variables do not create class objects and do not inte...

2 years ago

2 answers
67 views
0
I have a question about JAVA EXCEPTION!

Hello, everyone I'm a beginner developer.I'm asking you this question because there's no way to find it during the development of the program.Java development is currently springing.When the controlle...

2 years ago

1 answers
143 views
0
How can I read XML data using XPath in Java?

I want to read XML data using XPath. So I want to get information without parsing XML documents. What I want to do is:I would like to use XPath to obtain XML documents online through URL and parse the...

2 years ago

1 answers
40 views
0
Save Android Studio java Array

public void handleMessage(android.os.Message msg){ Timer buttonTimer = new Timer(); if(msg.what == BT_MESSAGE_READ){ String readMessage = null; try { readMessage = new String((byte[]) msg...

2 years ago

1 answers
64 views
0
Assigning a Dynamic Name to a Variable in Java

I want to assign a value on multiple variables in Java as follows.int n1,n2,n3;for(int i=1;i<4;i++){ n<i> = 5;}How can I do it in Java?


1 answers
83 views
0
Is there a way to prevent the private field of the class from being modified?

public class Test{ private String[] arr = new String[]{1,2}; public String[] getArr() { return arr; }}When there's a code like this

2 years ago

1 answers
20 views
0
If it's not Korean, I want to delete it.

I read the text file in Java and convert it into Korean If it is not Korean among the converted contents, I want to delete all of them. What should I do?

2 years ago

1 answers
22 views
0
The write() method in the Java PrintStream class is

When is the write()method used in the Java PrintStream class?I was looking at the Oracle explanation, but I didn't get it If there is an example, I want to see it once.

2 years ago

1 answers
126 views
0
How do I add a jar file to the maven project?

How do I add a jar file that is not yet a Maven repertoire to my project library source folder directly?

« - 117 - »

© 2024 OneMinuteCode. All rights reserved.