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
I have a question about Java date function

public static void main(String[] args) { HashMap<String, String> map = new HashMap<String, String>(); try { File file = new File(C:\\Users\\kimsuhee\\workspace\\Capstone\\src\\capstonedat...

2 years ago

1 answers
27 views
0
[Java] How to remove a matching Custom Class from Treasure?

I'm working on a program to manage records, and I'm using TreeSet, and I'll say custom class is Man. The method of sorting Man in TreeSet is defined by the compareTomethod. `class Man implements Compa...

2 years ago

1 answers
27 views
0
When I use the java socket

You know how you connect the socket with a try door And send receive and send text messages to each other It's natural that it's still available in the try statement, but I want to send it when I clic...

2 years ago

1 answers
41 views
0
What is the case of using char[] in java? Not the password

There's a char[] and a string in javaLet's use more stringsIs it because it's easier?Is there a reason why you don't use char[]?

2 years ago

1 answers
69 views
0
Java Text File String Open Character Processing Question

Currently, I'm planning to read and process characters from a text file (using bufferedreader)I'm good at getting single-line ones, but if there's an opening character in the middle, is there any way ...


1 answers
40 views
0
Question about Java continuous number acquisition algorithm.

import java.util.Scanner;public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); in.close(); int sum = 0, max = 0; while (n >...

2 years ago

1 answers
33 views
0
How can I distinguish certain images on Android and iOS?

Hi, how are you?There are two identical images, but only one image has a specific key valueIs there a way to distinguish a specific image from a computer (mobile, app) perspective using this key value...

2 years ago

1 answers
30 views
0
I have a question about multi-thread synchronization.

I'm studying TCP/IP and creating a chat program in Java Among the examples, I saw a data structure class called Vector, and when I investigated Vector, it said that it guarantees synchronization in a ...

2 years ago

1 answers
93 views
0
break abc in java; what grammar is this?

class CodeRunner{ public static void main(String[] args){ abc: for(int i=0; i<10; i++){ for(int j=i+1;j<20;j++){ if(i+j==5){ System.out.println(i+j); break abc; } } } }}I saw this...

2 years ago

1 answers
28 views
0
(Object-oriented) Questions about object creation

public class A { private double[] data; public A(double[] data) { this.data = data; } public double mean() { return null; }}public class B extends A{ private String title; public B(double[] data) {...

2 years ago
« - 82 - »

© 2024 OneMinuteCode. All rights reserved.