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
64 views
0
I'd like to ask you a question about the code for creating a java lottery number

import java.util.*;//lotto numberpublic class Pre4 {public static void main(String[] args){ Random rann = new Random(); int[] a = new int[45]; int[] b = new int[7]; for(int q=0;q<a.length;q++){ a[...

2 years ago

1 answers
23 views
0
The HotSpot client compiler is designed for

Studying JavaHotspot client compilers andI got to know the hotspot server compiler.But I learned that if Windows doesn't specify it by default, I will use the client compilerThese days, it's hard to f...

2 years ago

1 answers
107 views
0
Can you use Intent on Android to make the phone ring?

posted_by = 111-333-222-4; String uri = tel: + posted_by.trim() ; Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse(uri)); startActivity(intent);I tried to make the phone ring o...

2 years ago

1 answers
21 views
0
. Is there a site that returns Java code online?

If you look at the codepad.org site, C, C++, and Python are all supported, but java is not available. Is there an online site that returns the java code?

2 years ago

1 answers
22 views
0
Pull permutation from Java string

When you put ABC in, abcacbbcabaccabcba I tried to create a code with but I couldn't get the right result.Can you tell me how the code is wrong and how to fix it? //I'm sorry. Failed to complete....im...

2 years ago

1 answers
117 views
0
Creating a JAVA GUI Pizza Order Application

The JAVA GUI pizza ordering application is in the process of course.I think I've done everything else, even if I'm immatureI'm asking you this question because there's something I don't know about pri...

2 years ago

1 answers
18 views
0
[Java novice] It's a very simple question while studying Java.

Question 1.I was reading a Java book if(min>v) = min = x; I thought about a line of code, but I don't know why you skipped {} instead of if(min>v) {min=x};. Question 2. invite (new ArrayList<...

2 years ago

1 answers
50 views
0
How to replace a string with a date format in Java.

String date_s = 2011-01-18 00:00:00.0;I want to change these strings from Java to Date and print them out in YYYY_MM_DD format, but what should I do?String date_s = 2011-01-18 00:00:00.0; SimpleDateF...

2 years ago

1 answers
49 views
0
I am studying array in Java. I have a question because it doesn't print out.

public class TestArrays {public static void main(String[]args) { int [] index = new int[4]; index[0]=1; index[1]=3; index[2]=0; index[3]=2; String[] islands = new String[4]; islands[0]=Bermuda; island...

2 years ago

1 answers
95 views
0
Grammar that uses simple this to transfer factors in Java

Hello, I am posting something that I don't understand among Java grammar.Yes) GoogleApiClient gac = new GoogleApiClient.Builder(this, this, this) .addApi(Games.API) .build(); I'm inquiring because...

2 years ago
« - 136 - »

© 2024 OneMinuteCode. All rights reserved.