Java

LinkedHashSet Java

LinkedHashSet in Java

1. LinkedHashSet Class LinkedHashSet class is the hash table and linked list implementation of the Set interface, with predictable iteration order. It maintains a doubly linked list to maintain the order of elements. LinkedHashSet iterator….

LinkedHashMap Java

Java LinkedHashMap Class

LinkedHashMap in Java It’s part of Java Collections Framework. LinkedHashMap is the hash table and linked list implementation of the Map interface. LinkedHashMap extends HashMap class. LinkedHashMap maintains the order of insertion. So while iterating….

Java String Functions

Java String Functions – 25+ MUST Know Methods

Java String Functions Java String class has a lot of functions to manipulate strings. There are many methods to get the characters and bytes of the string object. There are methods to split the string….

Java List Add AddAll

Java List add() and addAll() Methods

1. Java List add() This method is used to add elements to the list. There are two methods to add elements to the list. add(E e): appends the element at the end of the list…..

Java String Trim

Java String trim() Method Examples

Java String trim() method is used to remove leading and trailing whitespaces from a string. This method treats any character whose Unicode codepoint is less than or equal to ‘U+0020’ as a whitespace character. If….

Polymorphism In Java

Polymorphism in Java

Polymorphism is one of the core concepts of OOPS paradigm. The meaning of polymorphism is the condition of occurring in several different forms. 1. What is Polymorphism? Polymorphism is the ability to perform different things….

Java Final Keyword

Java final Keyword Examples

The final keyword in Java can be used with variables, methods, and classes. Final Variables: When we mark a variable as final, we can’t reassign its value. Final Class: When a class is final, we….

Java Keywords

Java Keywords

Java keywords are the reserved words that are used by the Java compiler. These keywords have special meaning to the Java compiler. The reserved keywords help us in writing code and help the compiler in….

Encapsulation In Java

Encapsulation in Java

Encapsulation in Java is achieved by private variables and getter-setter methods. Encapsulation provides a loosely coupled, reusable, secure, and better access-controlled class implementation.

History of Java

Java is an object-oriented programming language. Java was developed by James Gosling and colleagues at Sun Microsystems in the 1990s. History of Java Java was started as a project called “Oak” by James Gosling in….

close
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages