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
71 views
0
Do/while does not work properly on Galaxy S5 and Android 5.1.1

It's an ordinary code, but for the Galaxy S5 and Android 5.1.1 combination Only, do/while statements move mysteriously.No one knows the cause Is that so?inti=0;int j = 0;do{ Log.d(TAG, [test do-while1...

1 years ago

1 answers
33 views
0
Calendar2 (Calendar2 is not found in the original code...)

import java.io.*;public class Many years calendar{ public static void main(String[]args) arrows Exception { BufferedReader in= new BufferedReader (new InputStreamReader (System.in)); System.out.pr...

1 years ago

1 answers
71 views
0
java.lang.RuntimeException on Android: Unable to instantiate receiver

While implementing on Android, the following exceptions occur:FATAL EXCEPTION:mainProcess: Application Name, PID: 19962java.lang.RuntimeException: Unable to instantiate receiver ClassA: java.lang.Inst...

1 years ago

1 answers
68 views
0
java.lang.RuntimeException on Android: Unable to instantiate receiver

While implementing on Android, the following exceptions occur:FATAL EXCEPTION:mainProcess: Application Name, PID: 19962java.lang.RuntimeException: Unable to instantiate receiver ClassA: java.lang.Inst...

1 years ago

2 answers
32 views
0
java toString Questions

Ah=newA();h.name = Aye;System.out.println(h.toString());The book says that the h.toString() section above can only be h, but why does the h call the toString method overridden in class A?Is that the r...

1 years ago

2 answers
64 views
0
Draw an inch square on Android

I'd like to set up a program that draws an inch square regardless of the terminal.I thought about ①Get 1 dpi and get 1 inch square px int dpi=getResources().getDisplayMetrics().densityDpi;仮にIf it is 1...

1 years ago

1 answers
117 views
0
Obtain the same output in java as the linux md5sum command

I'd like to get the same hash value in java as the md5sum/opensl command.I can't get the result I expected.How do I write in java to get the same result?(1) For the md5sum/opensl command$echoabc|md5su...

1 years ago

1 answers
75 views
0
How do I call back when I kill apps on Android?

Hello, I am a beginner in Android development.Currently, the Android app implements the part where the service is running and the processing continues.So I had an abstract interface implemented to a c...

1 years ago

1 answers
91 views
0
Android App Error Handling

The error was resolved a little, so I corrected it.Therefore, ListView cannot be resolved or is not a fieldI would like to resolve .What should I do?Details below.I have a question about handling erro...


1 answers
124 views
0
The action bar cannot be erased even when configured in style.xml in Android studio.

in Android studio style.xmlparent=android:Theme.Holo.NoActionBarThe action bar does not disappear when you configure .What are the possible causes?I use the actual nexus7 machine for the test.Please l...

« - 19 - »

© 2024 OneMinuteCode. All rights reserved.