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
381 views
0
Java odd or even summing program questions

Q. Write a method to find the sum of odd or even numbers from 1 to 100.ConditionsIt's easy to conditionalize the sum of odd and even numbers, but I don't know how to use Boolean parameters.. What shou...

1 years ago

1 answers
363 views
0
Java Object Declaration Error Question!

Hello, I'm asking you a question because I'm stuck in an object declaration error while studying Java!#Box.javapublic class Box { int width=0; int height=0; public void printSize() { System.out.print...

1 years ago

1 answers
384 views
0
Binary search tree

I wonder if anyone can help me rework this approach to determine the height of the binary search tree. So far, my code is as follows.public int findHeight(){ if(this.isEmpty()){ return 0; } else{ Tr...

1 years ago

1 answers
294 views
0
Array encountered an error during Java personal exercises, but I don't know how to fix it.

The top is the class for the main function (error) and The classes below are for reference types.I want to upload the captured image here, but it's not going up well, so if I were to write it,Drinks =...

1 years ago

1 answers
417 views
0
In spring boot (2.7.8-SNAPSHOT) environment, I changed my DB from H2DB to My SQL (mysql-connector-j-8.0.32), but I got an error.

In the H2 environment, type conversion was possible, but when I switched to My SQL, I got an error.I didn't know exactly where and how to fix it.I would appreciate it if you could help me.·The followi...

1 years ago

1 answers
284 views
0
How to Implement a Controller Class with a Response that Does Not Return view (jsp)

How do I implement a controller class that calls from an external application that is not Java and returns download files?You can access the following URL to open a download dialog on the caller scree...

1 years ago

2 answers
351 views
0
Shouldn't we use an exception in the method of determining whether it's an integer?

Using Java, we created a method to determine if it is an integer.private boolean isInteger(String str){ Integer parsedStr; try{ parsedStr = Integer.parseInt(str); } catch(NumberFormatExceptione){ re...

1 years ago

1 answers
311 views
0
dayArray [dayOfWeek-1] How do I interpret this?

package sec02.verify.exam02;import java.util.Calendar;public class DatePrintExample2 { public static void main(String[] args) { Calendar now = Calendar.getInstance(); int year = now.get(Calendar.YEA...

1 years ago

1 answers
469 views
0
Please tell me what object is used to redefine equals in HashMap.

javapackage sec01.verify.exam03;public class Student {private String studentNum;public Student(String studentNum) { this.studentNum = studentNum;}public String getStudentNum() { return studentNum;}@O...

1 years ago

1 answers
446 views
0
I would like to inquire about the skill check test Level.2 Problem 2 Java Infinite Loop.

class Solution { public int[] solution(String s) { int[] answer = new int[2]; int one = 0; while(s.length()>1){ for(int i=0; i<s.length();i++){ if(s.charAt(i)=='0') answer[1]++; els...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.