java

TreeSet

TreeSet is one of the most important implementations of the SortedSet interface in Java that uses a Tree for storage. The ordering of the elements is maintained by a set using their natural ordering whether or not an explicit comparator is provided. This must be consistent with equals if it is to correctly implement the Set interface.

Posted August 19, 2022 by Anusha ‐ 8 min read

core java programming treeset collections

Generics in Java

Generics means parameterized types. The idea is to allow type (Integer, String, … etc., and user-defined types) to be a parameter to methods, classes, and interfaces. Using Generics, it is possible to create classes that work with different data types. An entity such as class, interface, or method that operates on a parameterized type is a generic entity.

Posted August 19, 2022 by Anusha ‐ 4 min read

core java programming generics

Lambda Expressions

A lambda expression is a short block of code which takes in parameters and returns a value. Lambda expressions are similar to methods, but they do not need a name and they can be implemented right in the body of a method.

Posted August 22, 2022 by Anusha ‐ 3 min read

core java programming lambda-expressions

Joda Time

Joda-Time is an API created by joda.org which offers better classes and having efficient methods to handle date and time than classes from java.util package like Calendar, Gregorian Calendar, Date, etc. This API is included in Java 8.0 with the java.time package.

Posted August 22, 2022 by Anusha ‐ 3 min read

core java programming joda-time

Streams API

Java provides a new additional package in Java 8 called java.util.stream. This package consists of classes, interfaces and enum to allows functional-style operations on the elements. You can use stream by importing java.util.stream package.

Posted August 22, 2022 by Anusha ‐ 5 min read

core java streams-api programming

Subscribe For More Content