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
19 views
0
(Newbie Wang) In making JAVA dice,

How to roll 2 dice randomly and find the sum of the valuesTo find the sum of the values by rolling them an additional n timesI'm trying to solve it, but I can't do it without web surfingㅜㅜIt would be ...

2 years ago

1 answers
91 views
0
Problem with constructors if inherited from Java

Java created a Bus class that inherits the Car class as follows. Running results in an error.class Solution { public static void main(String[] args) { Bus bus = new Bus(abc,1000,1000); }}class Car{ St...

2 years ago

1 answers
88 views
0
If you use Java Iterator, you fall into an infinite loop.

If you do it like this, it's printed indefinitely. What's wrong with this?I don't understand the exact purpose of Iteratoriter = set1.iterator();import java.util.*;public class Generic1 { public stati...


1 answers
47 views
0
To sort values by java Array size

package practice_3;import javax.swing.JOptionPane;public class ArrayExcercise1 {public static void main(String[]args) { int[] list = new int[10]; String print = ; for (int i = 0; i<list.length; i+...

2 years ago

1 answers
20 views
0
This Handler class should be static or leaks might occur problem

This Handler class should be static or leaks might occur, and the habdler is not working, so I am asking you a question.There was a problem using the switch using the sm-x board.final Handler handler ...

2 years ago

1 answers
114 views
0
Why do you use builder in Java?

When you create an object, you use a Builder pattern instead of a constructor. Why do you use this?

2 years ago

1 answers
23 views
0
Does Java's access controller default and package-private mean the same thing?

While studying Java with books, I am studying by searching for the parts I want to know more.In the book, the access controllerpublic protected package-private privateIt says there's somethingIn Jump ...

2 years ago

1 answers
121 views
0
I want to take a comma in a thousand units when converting Integer to String, can I do it?

If there's a number called 35634646, I'd like to convert it to String, 35,634,646.Is there a simple way to do it?

2 years ago

1 answers
100 views
0
Convert bitmap to byte array in Java

Bitmap bmp = intent.getExtras().get(data); int size = bmp.getRowBytes() * bmp.getHeight(); ByteBuffer b = ByteBuffer.allocate(size); bmp.copyPixelsToBuffer(b); byte[] bytes = new byte[size]; try { b...


1 answers
122 views
0
This is a question related to linux jar.

Currently using Linux, turn tomcat server to war, We are building a server to run java application through jar.Socket communication is required through jar. If you run with Eclipse, it works normally ...

2 years ago
« - 135 - »

© 2024 OneMinuteCode. All rights reserved.