“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
The error “java.lang.IllegalArgumentException: Failed to create folder” in Selenide typically happens when Selenide tries to save screenshots, page sources, or logs, but it cannot create the required directories due to permission issues or incorrect paths.
In-browser UI testing of Angular applications poses several challenges such as asynchronous operations and unpredictable loading screens with spinners or dimmers.
Selenide has an implicit capability to wait for the loading screen to disappear.
OpenHTMLToPDF library generates PDF from HTML and CSS content taken from templates such as HTML file, Freemarker and Thymeleaf templates.
As a best practice in Java, POJO classes or Data objects always declare the fields private and expose their access through the getter methods. On rare occasions, we may encounter situations when the member fields are private, and the class does not provide the public accessor methods. For example, the …
Learn to create an immutable or unmodifiable Map using the factory methods added in Java 9 and other versions (Java 8 to Java 21) with examples.
In Java, we can serialize an object to String in different ways such as converting to byte[] and thenBase64 encoded string, XML or JSON. Learn with examples.
Added in Java 21, the Executors.newVirtualThreadPerTaskExecutor() method returns an Executor that creates a new virtual thread for each task submitted to it.
Learn to filter a Map by keys or values or both, using the Java 8 Stream filter() and collect() methods with examples.
Learn to create a Java Stream utility class with contains(), containsAll() or containsAny() methods and learn to use them with examples.
Java Stream API provides excellent filtering capability on the elements in the Stream. Sometimes, the stream elements also contain the nested collections; we need to filter those elements in the nested collections. This Java tutorial discusses various approaches with examples to apply filtering on nested collections and collecting the filtered …
Stream mapMulti() is a specialized form of the map() method that transforms each element of a stream into one or multiple output elements or none at all.
Learn to use Java 8 LocalDate and TemporalAdjusters class to get the first and the last day of the current week, month or year with examples.
This short Java tutorial lists two ready-to-use snippets for invoking the default methods in an interface without implementing the interface in a class.
In Java, an identity string is a unique identifier associated with an object instance without calling the overridden toString() or hashCode() methods.
Since Java 8, the java.util.Base64 class provides convenient methods for encoding and decoding files such as text, image, JSON files.
Learn to initialize Java HashMap object in different ways such as empty map, pre-populated map, and collecting stream elements into the map.
In this Java tutorial, learn the different approaches for calculating the number of weeks between two dates using the Java Date and Time API.
In this Java tutorial, we will explore various methods to display the name of the day of the week, catering to different scenarios and requirements. Note that we should be careful of using the int values assigned to weekdays as they differ from method to method. 1. Display the Day …
In this Java date-time tutorial, we’ll explore how to split a date-time range into equal intervals. Conceptually, splitting a date-time range into equal intervals involves dividing the entire range into smaller, equally-sized sub-ranges. In short, we need to determine the start and end points of each sub-range. 1. Splitting Date-time …
Learn to implement and use a StopWatch in Java with a custom implementation for simple uses and Apache Commons StopWatch class for advanced uses.
Learn to calculate the elapsed time since midnight (in seconds or milliseconds) using Java 8 classes such as LocalTime, LocalDateTime and ZonedDateTime.
Learn to use new Java 8 APIs to obtain the current quarter, the quarter from a given date and the start and end date of a quarter.
Learn to get the Month information in either number or name, and to convert it into another using Java Date-time API and simple examples.
Since Java 16, we can use the additional parameter [B] to format a date-time object with the date-time information using the DateTimeFormatter class.
Beginning Java 18, we can use Math.divideExact() method that throws an ArithmeticException if the result overflows. Learn with example.
This Java tutorial explores what are absolute values, the overflow, and underflow problems of Math.abs() method, and how Java 15 Math.absExact() solves them.
This article delves into the differences between these ways and highlights how Java optimizes the bytecode to make the String concatenation faster.
Learn to apply String interpolation style formatting of Java text blocks by variable (or expression) substitutions. Also see why to avoid concatenation.
Writing a multiline string can be approached differently depending on the version of Java you are using. Since Java 15, text blocks are the preferred method.
Learn to capture and analyze thread dumps in Java either manually to using tools such as JStack, VisualVM, FastThread, TDA and JProfiler, etc.
This Java cheat sheet discussed the JDK jar utility for creating and extracting the JAR files. It mimics the Unix tape archive command, tar.
Learn to install OpenJDK Correto distributed by Amazon on different operating systems such as Linux, macOS, and Windows.
Using the TextTable class or String.format() methods, we can easily align the text in columns and print them in the console or any output file.
Learn to use Gson, Jackson, and Org.json libraries to convert a JSON array into an ArrayList of objects with easy-to-understand examples.
Unnamed patterns and variables represent the record components and local variables as an underscore (_) to denote that we’re not interested in them.
In Java 21, Scoped values are implicit method parameters and help in sharing data with virtual threads that can be created in millions.
In this Java tutorial, we’ll explore the Math.round(), Math.ceil() and Math.floor() methods in detail, understand their differences and discover their use cases.
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 is part of the collection framework and implementation of resizable array data structure. Learn when to use array and arraylist.
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.
Learn to sort Java ArrayList in ascending and descending order using ArrayList.sort(), Collections.sort(), Comparator interface and Java 8 Streams.
Learn the conversion of decimal to hexadecimal and using converting hex to decimal in Java using the built-in APIs and custom methods.
Learn what is pattern, and record patterns in detail along with how they help in pattern matching for instanceof and switch statements.
Since Java 21, we can use unnamed classes and instance main methods that allow us to bootstrap a class with minimal syntax.
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.
Learn the differences between Sourcepath, Classpath and Buildpath and how they contribute to an application’s development, build and deployment phases.
This article discusses the new developer features in Java 21 including Virtual Threads, Unnamed classes, Sequenced Collections and Record Patterns.
Learn to fix the selenium WebDriver error “This version of ChromeDriver only supports Chrome version” during UI testing.
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() …
This Java tutorial discusses string templates in Java which is a new addition to the language in Java 21 as a preview feature.