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
149 views
0
Why is it possible to do throw null; when handling exceptions" in Java?

public class WhatTheShoot { public static void main(String args[]){ try { throw null; } } catch (Exception e){ System.out.println(e instanceof NullPointerException); System.out.println(e instance...


1 answers
153 views
0
How do I download and save files from the Java Internet?

http://www.example.com/information.aspIf you have a file on a site like this, I'd like to save it in a folder. I know I read online files as line-by-line, but I don't know how to download and save the...

2 years ago

1 answers
154 views
0
Can I get the name of the currently running method?

Can I get the name of the currently running method?

2 years ago

1 answers
72 views
0
What is the difference between implementations and Extends and when are they used respectively?

What is the difference between implementations and Extends and when are they used respectively?It's a basic question, but I don't know the difference between these two. Please explain it so that it's ...


1 answers
122 views
0
What is the difference between parseInt and valueOf in Java?

What is the difference between parseInt and valueOf? I think parseFloat(), parseDouble(), parseLong() are the same... What's the difference between this and Long.valueOf(string)?Which one is more comm...

2 years ago

1 answers
129 views
0
Why not super.super.method() in Java?

When I was looking at a question, I thought that using the super.super.method() like the code below would solve it easily. @Overridepublic String toString() { return super.super.toString();}I don't kn...

2 years ago

1 answers
79 views
0
I want to stop the program in Java for a few seconds, what should I do?

I wanted to stop the program, so I tried methods like delay or sleep but I couldn't use it because of the error below.unreported exception java.lang.InterruptedException; must be caught or declared to...

2 years ago

1 answers
119 views
0
What is the best way to implement constants in Java?

public class MaxSeconds { public static final int MAX_SECONDS = 25;}I saw an example like this. Assuming that you can make a constant class with only a constant, you declared it a static final like th...

2 years ago

1 answers
127 views
0
How do I return to generic type in the method?

If you look at the same example below in the OOP book, If you have an Animal class, each animal has several friends. And the subclasses are Dog, Duck, Mouse, etc. Each of them makes a bark(), a quack(...

2 years ago

1 answers
83 views
0
Which is faster, Array or List?

You need to have thousands of strings in memory that are accessible sequentially. Should I save the string to Array? Should I save it to the list? Unlike List, Array stores all data continuously in a ...

« - 66 - »

© 2024 OneMinuteCode. All rights reserved.