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
27 views
0
webView white screen

public class MainActivity extends AppCompatActivity { private WebView webView; private TextView txt_address; private Handler handler; @Override protected void onCreate(Bundle savedInstanceState) { su...

2 years ago

1 answers
66 views
0
When declaring a JAVA string array, how do I stabilize the size and declare it?

For example, determine the size when declaring a string array variable (String[5]), as shown below I have to declare it.String[] apple = new String[5];But what I need is not an array of strings of a g...

2 years ago

1 answers
35 views
0
I have a question about using cpp memmove().

Hi, how are you?I can't use JNI or JNA due to current circumstances I'm transcribing the cpp code to java Code is typedef unsigned char BYTE;char *Data1;BYTE *Data2;for(... memmove(&Data1[i * 2], ...

2 years ago

1 answers
152 views
0
Question about java array constants.

When declaring an array final int[] arr = {1, 2, 3, 4, 5};If I do this, I can't just change the address value of the arr, but I can change the arrangement contents, right?I want to constant the array ...

2 years ago

1 answers
90 views
0
Java Coding 65kb Overflow Solution Question

There was a lot of Java coding, so there was an overflow. The code of method main(String[]) is exceeding the 65535 bytes limit I want to continue coding. What should I do?Eclipse Oxigen is in use

2 years ago

1 answers
27 views
0
Java Method Basic Questions

Hello, I'm a beginner at learning Java.I made a method called adderI want to return the value of a+b, but there is a red line error in intc=adder. Why is this?What's the problem?public class add { pub...

2 years ago

1 answers
76 views
0
[Java] Float and double

I basically used double to store real numbers in Java.However, there are float and double variable types that store real numbers. You can enter double as soon as you initialize it.double a = 1.5;Like ...

2 years ago

1 answers
103 views
0
Question about distance value calculation using Beacon rssi

Attempt to obtain distance using rssi, but rssi receives normally, but only 127 attempts to obtain txPower using the getxPower() method in scanresult.class. What should I do to receive the txpower val...


1 answers
80 views
0
Please check if the Java programming example is correct.

I'm studying after looking at the example question, but I don't understand the question well.The result value and type of the next equationShould I write down the value and type separately?Number 1 - ...

2 years ago

1 answers
107 views
0
I want to inherit JLabel swing components and make and use custom components

Hello, I'm an undergraduate who is taking a computer program. These days, I'm studying GUI to make a board game assignment. Even if I google it, I don't know the cause of the problem.The board game yo...

2 years ago
« - 93 - »

© 2024 OneMinuteCode. All rights reserved.