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
86 views
0
How to copy files to different directories with different file names in Java

I'd like to copy the file from Java to another directory.boolean success = false;File[] reviews = dir.listFiles();String trainingDir = dir.getAbsolutePath() + /trainingData;File trDir = new File(train...

2 years ago

1 answers
59 views
0
Applying Java Password Regular Expression

I'm writing a password regular expression at Android Studio.We received numbers, English characters, and special characters through the check box, and set the font color to be different depending on w...


1 answers
136 views
0
Please tell me how to read plain text files in Java

Java seems to have a variety of ways to read and write data in a file.I want to read ASCII data from the file. Please explain what are the methods and what are the differences between them.

2 years ago

1 answers
105 views
0
How to clean up null exception handling

Usually when you make a code, if (someobject != null) { someobject.doCalc(); }They're making exceptions in the same way, but they look so dirty to meIs there a way to make it cleaner?


2 answers
131 views
0
When sending json data to ajax...

When sending json data to ajax, I'm sending you the data in the form below.It's for dividing data by each key and list in Java. How should I receive it? I'd appreciate your help.[{QNo:1,qType:1,qText:...

2 years ago

1 answers
64 views
0
Is the red letter in the console window an error when running as a spring in Eclipse?

I started studying about springs for the first timeEvery time you run it, the desired result is printed and stored in the databaseThose red letters are printed together.What do you mean? Is this an er...

2 years ago

2 answers
104 views
0
Local class method, variables, let me ask you a question about the restriction on the use of Java.

According to the book, when the method ends, it is removed from the stack frameLocal class instances remain in the heap area and become a problem when using local variables or parameters in the method...

2 years ago

1 answers
132 views
0
Why don't you use Double and Float to mark money?

I was told not to use double or float when marking money. Why is that?I think there must be a good reason, but I don't know why.

2 years ago

1 answers
81 views
0
How to clear HTML tags from String

Is there a good way to erase HTML tags in Java String? replaceAll (\<.*?>,) like this. This works well, but I can't change this and erase it when it's a sentence like <Content> instead of ...

2 years ago

1 answers
24 views
0
Is there a grammar that provides mod in Java?

I looked at the simple water code while solving the problem. I need to change the code below to JavaI don't know the grammar that provides mod operations.if ((a mod 2) == 0){ isEven = true;}else{ isEv...

2 years ago
« - 101 - »

© 2024 OneMinuteCode. All rights reserved.