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
42 views
0
Baekjun 2920 Musical scale Java question

Hello, I am a student who started studying Java. There is no error in the code, but the result is not output. Where did it go wrong?public class Main { public static void main(String[] args) throws IO...

2 years ago

1 answers
90 views
0
To save visibility as Shared Preferences

I tried to save visibility as shared preference by referring to stack overflow, but only split_two state is saved and the rest is not saved. Where should I modify to save the visibility of all buttons...


3 answers
91 views
0
I'd like to ask you a question about equlas() in Object class

I got confused while reading a book.It's two booksOne book is Book 1 Obejct's equlus () returns the same result as the comparative operator ==. True if the same, false if different. False if it's diff...

2 years ago

1 answers
86 views
0
I have a question about java infinite loop

public static String solution(String new_id) { for(;;) { for(int i = 0; i < answer.length(); i++) { If(answer.substring(i) == .) { // When the period is met } } else { break; } } } return a...

2 years ago

2 answers
24 views
0
Is java) hashCode() called automatically?

I need to use hashCode(), equals().Does HashMap automatically call when saving both functions?And except for this framework, when comparing objects equally,Do I have to call and use both functions dir...

2 years ago

2 answers
77 views
0
Can I turn Java to VSCODE? What is your favorite program and what language do you use as your main focus?

I went to an academy recentlyI'm learning Python and Java.They both use a program called Spider, Eclipse.I like VSCODE because it's much more comfortable and UX is cleanIt seems that good academies us...

2 years ago

1 answers
19 views
0
java Beginner)Arrays

1,2,3,4,5,6,7,8,9,10,[2, 6, 10, 2, 9, 7, 5, 6, 10, 1][100, 95, 80, 70, 60][I@5d22bbb7abcd[I@5d22bb7 is...] At the end, why ] I'm curious if the symbol didn't come out.package aaa;import java.util.*;cl...

2 years ago

1 answers
57 views
0
Java) Exception processing and filtering out conditions in the if statement

It's nothing much, but I had to delete items from List<> specific indexes while making the code.This code is applicable.public boolean removeDetails(int index) { if(routineDetailModels == null ...

2 years ago

1 answers
42 views
0
Error appears that java beginner} is omitted

There was an error in the 13th line in the code below.An error appears saying that } is omitted, but it should not be done.I'm going to print out rock-paper-scissors. Please give me courage.import jav...

2 years ago

1 answers
20 views
0
java) What is the difference between the general formula and the lambda formula when using this within the anonymous implementation object?

General expression commentEdit.setOnKeyListener(new View.OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { if(commentEdit.getText().toString().length() == 0) { ...

2 years ago
« - 144 - »

© 2024 OneMinuteCode. All rights reserved.