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


2 answers
28 views
0
Return question of Java 1D integer array

public void getGradeMenu(){ int Scores[] = new int[StudentNum]; while(MenuNum != 7) { showGradeMenu(); MenuNum = scan.nextInt(); switch(MenuNum) { case 1: getGradeArray(Scores); break; case 2...

2 years ago

1 answers
141 views
0
[java] I keep getting ClassNotFoundException...

Hello, I'm coding through eclipse with java... My own object (specifically MyButton) is defined and used in code, as shown in the picture.The following error states that class cannot be found even tho...


1 answers
75 views
0
If you run a map app using Kakao api, it will be forced to end.

/////////////////////Logcat06-10 16:18:29.638 5991-5991/com.example.bencall E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.bencall, PID: 5991 java.lang.RuntimeException: Unable to start ...

2 years ago

1 answers
20 views
0
Outputs random values to Java beginner for statement

import java.util.Random;import java.util.Scanner;public class random task { public static void main(String[] args) { Scanner Scanner = new Scanner (System.in); String input = scanner.next(); System...

2 years ago

1 answers
47 views
0
If you run Android, it keeps shutting down android.widget.Button cannot be cast to android.view.ViewGroup

It keeps shutting down... Why is this happening?You can't change the code againㅠ


1 answers
118 views
0
Android will be forced to shut down. NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

When you run Android and log in, the map screen appears, and it is forced to end immediately after the screen appears. Can anyone tell me what the problem is because I don't know how to watch logcat?0...


1 answers
20 views
0
Pick out Java strings

I want to know that the string s2 contains any string, and I want to pick a from it.First of all,public class Ex02 { public static void main(String[] args) { String s2 = asdjkfhakgba; //Select by ar...

2 years ago

1 answers
95 views
0
Android studio is forced to shut down 'java.lang.Stringjava.lang.Object.toString()' on a null object reference

When you press a button on a map map, an error occurs.I used the threadI don't know which part is wrong.I'm just copying what someone else didPlease help me because I am not good at interpreting logca...


1 answers
24 views
0
I can't copy the file ㅜㅜ

try { Runtime runByRoot = Runtime.getRuntime().exec(su -c \cp -r /data/data/com.kakao.talk/databases /storage/emulated/0/database\); //BufferedReader reader = new BufferedReader(new InputStreamReader...

2 years ago

1 answers
105 views
0
How do I sort Java objects?

Please enter the code here // .private Product[] products = null;private void searchFromDate(Product[] plist) { }After making it like this, I would like to arrange the productId (product number) in t...

2 years ago
« - 141 - »

© 2024 OneMinuteCode. All rights reserved.