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
93 views
0
What is the difference between int[] array and int[] array?

When I was studying in a book, I learned int[array], but recently I looked at other people's sourcesThere were a lot of people who declared int[] array. I was just trying to ignore it, but I suddenly ...

2 years ago

1 answers
124 views
0
How do I transfer references to parameters in Java?

In C#, we use the keyword ref when we use references Is there something like this in Java?

2 years ago

1 answers
121 views
0
When do we use the variable argument in Java?

I learned about the variable factor, but I don't know what it's for. I don't know if you need this.I'm a little worried that people might pass as many parameters as they want by using variable argumen...

2 years ago

1 answers
94 views
0
Create a custom event in Java

If an object says hello in object 2, I want to create an event where I answer hello in object 2 I don't know what to do. Is there a simple example source?

2 years ago

1 answers
114 views
0
How do I add a new element to an array?

String[] where;where.append(ContactsContract.Contacts.HAS_PHONE_NUMBER + =1);where.append(ContactsContract.Contacts.IN_VISIBLE_GROUP + =1);I tried this way to add elements to the String array, but it ...

2 years ago

1 answers
75 views
0
How do you get the current year as an Integer value in Java?

I'd like to get the price of Integer from Java for what year is this? To write java.util.Date()It's been declared. Is there any other way?

2 years ago

1 answers
136 views
0
Is there any method to check if the email address is valid in Java?

Is there any method to check if the email address is valid in Java? Or is it possible to implement it in code?


1 answers
82 views
0
How to replace an Integer ArrayList with an int array

To replace the Integer type ArrayList with an int type array List<Integer> x = new ArrayList<Integer>();int[] n = (int[])x.toArray(int[x.size()]);I did this, but there is a compilation err...


1 answers
88 views
0
What is the difference between a compiler and an interpreter?

I heard that Java is an interpreter language and C is a compiler language What is the difference between an interpreter and a compiler? I'd like you to compare and teach me.

2 years ago

1 answers
93 views
0
How do I implement the onClick method in RecyclerView?

Does anyone know how to define an onClickListener in RecyclerView?I've thought about how to define onClick for each item in the Recycler View, and this seems too much of a hassleIs there any other way...

« - 71 - »

© 2024 OneMinuteCode. All rights reserved.