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
23 views
0
How can I get input using the System.console() method in Java?

You want to receive input from the user using the Console class. However, calling the System.console() method returns a null object. Should I change something before I use System.console()?Console co=...

2 years ago

2 answers
27 views
0
I'm going to make a simple music player.

I'm going to make a simple music player.I want to know the principle of making a music player.

2 years ago

1 answers
85 views
0
An Understanding of Protected Access Control Modifiers in Java

There is a class called A in package1 and a class called C in package2. Class C is a subclass of A.A defined the instance field protectedInt:protected int protectedInt = 1;Class A:package package1;pub...


1 answers
23 views
0
Is it possible to apply the adjustViewBounds function after match_parent in the Glide library?

Hello, how are you? I'm a beginner who's been doing a little bit of work... I'll give you one ㅠ

2 years ago

1 answers
100 views
0
What is a substitute for a function pointer in Java?

There are about 10 lines of methods. I want to create a few more methods that do almost the same thing, ignoring differences like changing a few lines of code. Function pointers replace that with almo...


1 answers
20 views
0
Multiple functions (methods) connected to call

I don't know if you know the difference between the Static method and the Instance method...Object.Method.Method...Class, method, method... How does using multiple methods work? I don't understand the...

2 years ago

1 answers
74 views
0
What is NullPointerException and how do I fix it?

What is NullPointerException (java.lang.NullPointerException) and why does it occur?Is there any method that can be used to prevent a program from terminating abnormally due to NullPointerException?


1 answers
138 views
0
Creating a postfix calculator with java stack generic I don't know where the error is coming from.

package myfirstjava;import java.util.ArrayList;import java.util.Scanner;import java.util.StringTokenizer;class GStack<T> { static int top; Object[] stck; public GStack() { top = 0; stck = new ...

2 years ago

1 answers
100 views
0
How to divide a string from a Java string to a line

In the JTextArea, I want to separate the strings by '\n'. The sauce below is not working properly. I've already tried '\r\n | \r | n'.public void insertUpdate(DocumentEvent e) { String split[], docStr...

2 years ago

1 answers
143 views
0
Can we do the order of ArrayList randomly?

There are two ArrayLists, filelist and imgList. If each of these is H1.txt, it's related to e1.jpg.When I change the order of the imgList automatically, I want to change the order according to the fil...

« - 119 - »

© 2024 OneMinuteCode. All rights reserved.