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
98 views
0
Why can't you create static methods in an abstract class?

abstract class foo { abstract void bar(); // <-- Pig abstract static void bar2(); //<-- No}Why can't you define a static method for an abstract class like above?


1 answers
95 views
0
How to know if a JVM running in Java is 32-bit or 64-bit

Is there a way to write a function or something on a program in Java to know if the JVM is running at 32 bits or 64 bits?

2 years ago

1 answers
35 views
0
Js, jqurey, html questions

$(function() {$.getJSON(userList.do,function(u){ $.each(u, function(i,e){ var div = $(<div></div>); var delBtn = $(<Button>Withdraw</Button>); $(div).html() $(div).app...

2 years ago

1 answers
72 views
0
When you run the jar file through the process function in Java, the jar execution screen appears on the UI and covers the UI.

When you run the jar file through the process function in Java, the jar execution screen appears on the UI and covers the UI.So if Jar is executed, what should I do to prevent the Jar execution window...

2 years ago

1 answers
37 views
0
How to Count Lines for Files in Java

There's a huge data file. Sometimes you need to know how many lines of these data files are Until now, I've been reading this line by line, but I wonder if there's a way to read it more efficiently.


1 answers
43 views
0
Please teach me how to insert the result values into the array

If you get a number, you get the answer of multiplication tablesI want to put one of those printed values in the array, but it's stuck here cryingPlease teach me how to put it in an array

2 years ago

1 answers
152 views
0
Why can't I refer to the non-static variable in the static method?

I didn't learn Java well from the beginning. So I don't really understand the idea of static.An error non-static variable cannot... occurs when trying to declare a variable and use it within the metho...


2 answers
22 views
0
Java code execution error

I learned Java almost for the first time, and I saw what was in the example. import util java.Scanner;public class A3 {public static void main(String [] args) { String str = hello; String input = null...

2 years ago

2 answers
23 views
0
Is there a key or motion to create the toBinaryString method?

I'm listening to a lecture, and in the middle of a lecture, the instructor writes the output above it, and let's use the method to convert it to binary.You put in the method with the toBinaryString be...

2 years ago

1 answers
80 views
0
How do I change a string to a double type?

if((e.getSource() == jBook)) { String name = jlbName.getText(); String date = jlbDateProduce.getText(); String time = jr1.getText(); int number = (Integer.parseInt(jtfNoOfTicket.getText().trim())); St...

2 years ago
« - 118 - »

© 2024 OneMinuteCode. All rights reserved.