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
115 views
0
NoSuchElementException without reason

import java.util.Scanner;public class HelloWorld{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); System.out.println(a); }}I was making a simple prog...

2 years ago

1 answers
117 views
0
Using Android Studio String Comparative Syntax

Source in use String[] array_word; array_word = readMessage.split(); for(int i=1;i<65;i++){ if(array_word[i] == '0'){ array_word[i] = null; } }I'm putting what I received as a rea...

2 years ago

1 answers
26 views
0
I'm curious about the JAVA memory address!

Class Test{FavoritesAdapter favoritesAdapter = new FavoritesAdapter(); --- 1 FavoritesAdapter favoritesAdapter = new FavoritesAdapter(); --- 2}Like this, the Favorites Adapter type name is the sameAss...

2 years ago

1 answers
97 views
0
I want to display the list with the value I received from the server, but I want to move on without adding the list with my name.

for (int i = 0; i < tName.size(); i++) { adapter.addItem(tName.get(i), tPhone_number.get(i), tAddress.get(i)); if (tName.get(i).equals(pref.getString(nickname,))) { }I will add information such ...

2 years ago

1 answers
60 views
0
What exactly is a spring?

I've heard a lot about spring. Spring is a great web development framework. But what exactly is good for?How can I use it to develop my web app?

2 years ago

1 answers
120 views
0
Java is trying to add text to a file that already exists

Java is trying to add text to a file that already exists What should I do?

2 years ago

1 answers
46 views
0
Checking images within html

I am making chm file using HTml.However, images are often broken because they are not properly applied in html files.You want to create a tool that can check broken images when the image in the html f...

2 years ago

1 answers
30 views
0
Can you tell me the size of the memory that a variable occupies in java?

I'd like to compare the memory usage of the raw type variable and the refer type variable.For example:short a = 1;Short b = 1;I want to know how much difference a and b have in memory usage. Instance ...

2 years ago

1 answers
26 views
0
They're installing an Android SDK, but they can't find the JDKcrying

I use 64-bit Windows 7. I installed jdk-6u23-windows-x64.exe. And I'm going to install an SDK We can't proceed because JDK is not installed

2 years ago

1 answers
27 views
0
Questions about using interface anonymous classes and overriding.

I understand that the interface cannot be instantiated, but I have seen frequent use of the Comparator as an anonymous class. In this case, is it used without being instantiated?As far as I know, the ...

2 years ago
« - 95 - »

© 2024 OneMinuteCode. All rights reserved.