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
75 views
0
How to run a class of jar files

There is a jar file called myJar.jar in myfolder. I want to call myClass in this jar file, so can I know which command to enter?I did java-cp myJar.jar.myClass, but I can't.


1 answers
27 views
0
super()method in Java

What is the role of super method in Java? Is it just to call out the creator of the higher class?Please explain about super().

2 years ago

1 answers
24 views
0
I want to know how to create objects in Java

I recently talked with my colleagues about how to create objects. Most people use constructors to create objects, but all of a sudden,I wondered if there was any other way. What are some ways to creat...

2 years ago

1 answers
80 views
0
To override a class's variable in Java

class Dad{ protected static String me = dad; public void printMe() { System.out.println(me); }}class Son extends Dad{ protected static String me = son;}public void doIt(){ new Son().printMe();}When y...

2 years ago

1 answers
104 views
0
I'd like to print out a calendar for my activity, is there any good open source?

If you put up a calendar for the activity, press 10 days, and press 20 days, I'd like to specify a range from the 10th to the 20th so that I can click on it, is there an open source that supports such...

2 years ago

1 answers
115 views
0
How do you know if a binary tree is in balance?

I am reviewing the class I took at school during the winter vacation. I have a question while studying this tree. I wonder what the best way to find out if the height of the tree is balanced. I think ...


1 answers
43 views
0
ArrayIndexOutOfBoundsException error while solving algorithm problem with Java.

Baekjun online jersey is solving a problem, but there is no answer...There is no error when coding with C, but if (arr[x][y-1] == 1 &&y-1 > = 0) line gives java.lang.ArrayIndexOutOfBoundsEx...

2 years ago

2 answers
126 views
0
Is there anything in Java that can only return the method names within a certain class?

I create a class with a function and call that class from the menu and name the method in that class in the console window1.~2.~3.~If you choose a number after you make it like this, I want to run the...

2 years ago

1 answers
115 views
0
What is the meaning of the compilation error "Cannot find symbol"?

Please explain a few things about the Cannot find symbol error.


1 answers
149 views
0
Is there a way to get HttpServletRequest from the controller of spring mvc without adding a parameter to the method?

I understand that to receive HttpServletRequest from the controller of spring mvc, you can add the parameter of the function as shown below. @RequestMapping(value = /, method = RequestMethod.GET) pub...

2 years ago
« - 74 - »

© 2024 OneMinuteCode. All rights reserved.