Java

“Core Java” is Sun’s term, used to refer to Java SE, the standard edition and a set of related technologies, like the Java VM, CORBA, etc. This is mostly to differentiate from others like Java ME or Java EE. “Core Java” is Oracle’s definition and refers to subset of Java SE technologies.

The Core Java technologies and application programming interfaces (APIs) are the foundation of the Java Platform, Standard Edition (Java SE). They are used in all classes of Java programming, from desktop applications to Java EE applications.

Related Tags

Tutorials

Java Enumeration, Iterator, ListIterator and Spliterator

In Java, all types of enumerations and iterators (such as Iterator, ListIterator, SplitIterator) are simply navigational cursors and the main purpose of these cursors is to iterate over the elements of the collection. Each cursor has its own features, advantages and disadvantages. In this article, we will walk through these …

Java ArrayList Length and Size

Java ArrayList does not publicly expose the length of the backing array, and only the count of the stored elements can be retrieved using its size() method.

Decimal to Hexadecimal Conversion: Examples and Java Code

To convert decimal to hexadecimal, divide by 16 repeatedly and read the remainders in reverse, so 269 becomes 10D. See a worked division table, a table of common conversion examples, and the Java one-liners for both directions.

Java 21 Sequenced Collections

The new sequenced collection interfaces allow adding, retrieving, and removing elements at either end of the collection, along with a reverse-ordered view of it.

Java Map computeIfAbsent()

The Map.computeIfAbsent() method computes the mapped value for a key using a mapping function if the specified key does not exist in the Map or is mapped to a null value. It has been added as the default method in the Map interface in Java 8. 1. When to Use the computeIfAbsent() …

Java 21 String Templates

This Java tutorial discusses string templates in Java which is a new addition to the language in Java 21 as a preview feature.

Java ConcurrentSkipListMap

Learn the Java ConcurrentSkipListMap and the major differences between ConcurrentSkipListMap and other Map implementations.

Intro to JWT (JSON Web Token)

JWT tokens are commonly used in authentication and authorization processes to prove a user’s identity or grant access to specific protected resources.

Java – Convert Instant to LocalDateTime, LocalDate or LocalTime

Learn to convert a given Instant to LocalDateTime, LocalDate, or LocalTime instances in the current system timezone or a specified timezone in Java. 1. Difference between Instant and LocalDateTime An Instant is an instantaneous point on the time-line without any timezone information associated with it. Internally, it uses the system …

Builder Pattern for Java Records

Learn to implement the builder pattern style fluent API and copy constructors in Java records for creating immutable records with examples.

Daemon Threads in Java

Learn what is a daemon thread in Java, how to create a daemon thread, and various methods present for daemon threads in the Thread class.

Java UnsupportedOperationException: Causes and How to Fix

java.lang.UnsupportedOperationException means the code tried to change a collection that cannot be changed, such as one from Arrays.asList(), List.of() or Collections.unmodifiableMap(). Copy the data into an ArrayList or HashMap to fix it.

Java ArrayDeque with Examples

Learn about Java ArrayDeque and its features with practical examples. Learn to use it as Stack and Queue, and the difference from LinkedList.

JMH – Java Microbenchmark Harness

Java Microbenchmark Harness (JMH) is a tool that allows measuring various code performance characteristics and identifying bottlenecks with precision – up to the method level.

Java Reserved and Contextual Keywords

Java has 51 reserved words and 16 contextual keywords that cannot be used as identifiers in the code. Programmers should not use these keywords for other purposes.

Java IO (Input/Output) Tutorials

Java IO is a collection of APIs targeted at reading and writing data from various sources to several targets. For example, we can read data from a file or over a network, write to a file or write a response back over the network. This page categorizes the various IO-related common tasks …

Java SynchronousQueue with Example

Java SynchronousQueue is a specific type of BlockingQueue with no internal capacity and is primarily used in exchanging data between two threads.

What’s New in Spring 6 and Spring Boot 3

Learn about the new features and changes introduced in Spring 6 and Spring boot 3 such as baseline upgrade to Java 17 and removing all deprecated classes, methods and properties.

Java String Tutorial

Java String class examples. Learn to create strings, methods, comparisons, formatting and various conversions with simple and easy to follow Java examples.

Java Stream groupingBy(): Group and Aggregate a List

Collectors.groupingBy() groups a Java stream into a Map by a key and aggregates each group with a downstream collector such as counting(), summingInt() or maxBy(). Examples for multi-level grouping, TreeMap order, sorting by value and partitioningBy.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.