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
67 views
0
To check if double is a Not a Number (NaN)

I want to check if the value of double is NaN in Java, what should I do?

2 years ago

1 answers
116 views
0
This is a question about jdbc insert...

create table user(the gender varchar (2),the name varchar(5),ID varchar (20),Password varchar (20));I made a table like thisConnection con = null;PreparedStatement pstmt = null; String SQL = insert in...

2 years ago

1 answers
20 views
0
I have a question about Java inheritance.

Look at the Main Class and complete the Animal, Bird, and Dog classes using the following output. # Execution result #A new animal has been created!A new animal has been created!A new bird has been cr...

2 years ago

1 answers
76 views
0
I'm working on the drawing board.

I'm studying Canvas objects.There was a problem with the paintboard, so I made it once.But no matter how hard I try, both erasing and erasing are not possible, and they are painted in the color that I...

2 years ago

1 answers
25 views
0
Calculating the Java Pectorial Sequence

import java.util.Scanner;public class Test{public static void main(String [] args){ double e = 0.0; double ins_sum = 0.0; int n = 0; int ins_fact = 1; Scanner sc = new Scanner(System.in); System.out.p...

2 years ago

3 answers
23 views
0
Java stringtokenizer. I need a solution

StringTokenizer st; for (int k = 0; k < sentence.length; k++) { System.out.print(sentence[k]); st = new StringTokenizer(sentence[k], ); for (int i = 0; i < cnt_line; i++) { op[i] = st.next...

2 years ago

1 answers
135 views
0
java Array Form Creation Question

Data typeArrayList Map String,Object Result value [0] date = 2019-08-0100:00:00, work : work, department : username : potato >[1] date = 2019-08-0100:00:00, work : work , department : username : sw...

2 years ago

1 answers
64 views
0
Can you convert the String object of Java into InputStream and save it?

String exampleString = example;If I have a code like this, how do I put it in InputStream??


1 answers
108 views
0
java single server - Spraying words to all clients in multi client socket communication.

HelloI'm making a chat with you.The code you've written so far has multiple clients connecting to one server, but it doesn't show anyone what one person wrote.If the client receives the while statemen...

2 years ago

2 answers
20 views
0
Type Casting ??? What is type casting?

How do we imagine typecasting??I want to imagine the process of type casting in my head.I don't think the size of the object changes on the memory (assuming that the type casting is successful...), bu...

2 years ago
« - 129 - »

© 2024 OneMinuteCode. All rights reserved.