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
33 views
0
To transfer an image to a php server

Take the image from the gallery, display it in ImageView, and then use ButtonClick to create an image in ImageView to the php server DB You are about to send it!It's not hard to get an image from a ga...

2 years ago

1 answers
28 views
0
Object generation question in JAVA/enum class.

This is my first time studying Java I have a question while listening to the Java introduction lecture in programmers. enum Gender{ MALE, FEMALE; }// define enumeration Gender gender2;//<-enum cla...

2 years ago

1 answers
105 views
0
Please tell me how to get a long Java string (including spacing) and get an int and a string againㅠ n Error in nextLine()

//Using the Scanner class // Name, age, height, weight (up to decimal point 2), city, address (must be received even after spacing), and single status //print it outimport java.util.Scanner; public cl...

2 years ago

2 answers
42 views
0
The difference between nextIntnextLinenext in Java

import java.util.Scanner;public class Demo11720_2 { public static void main(String[] args) { Scanner in=new Scanner(System.in); int n=in.nextInt(); // String numA=in.next(); System.out.println(n)...

2 years ago

2 answers
23 views
0
What's the error?

Exception in thread main java.lang.NumberFormatException: For input string: at java.base/java.lang.NumberFormatException.forInputString(Unknown Source) at java.base/java.lang.Integer.parseInt(Unknown...

2 years ago

1 answers
111 views
0
Java coding question

for(int p = 0; p < index.length;p++) { int count=0; for(int q = p+1; q < index.length; q++) { if (Arrays.equals(index[p], index[q])) { count = count +1; } } if (count==7) { For (in...

2 years ago

1 answers
28 views
0
Java Word Chain Questions

In the code of making a word chain game,To get characters from a string int lastindex = word.length()-1;char lastchar = word.charAt(lastIndex); Is there any other way to receive text messages besides ...

2 years ago

1 answers
89 views
0
Does anyone run Java on Atom and use it? I would like to ask for your help with setting the environment variable.

Hello, how are you?I'm a person who just started studying Java.I usually use Eclipse to practice and study, but I use Atom because I want to separate the files given as examples from the books.Before ...


1 answers
112 views
0
Questions about parsing while crawling using jsoup (Android)

I'm a beginner developer who wants to create an Android app.I have a question about parsing while crawly using jsoup.The following code was written using the select method.Elements elements = doc.sele...


1 answers
64 views
0
This is a question about how to use a String in a Java Array basic example!

package practice_3;import javax.swing.JOptionPane;public class ArrayTest {public static void main(String[]args) { String output = ; int n[] = new int[10]; output += subscript | value\n; for (int i = 0...

2 years ago
« - 88 - »

© 2024 OneMinuteCode. All rights reserved.