Java ResultSet Tutorial

Java ResultSet interface is a part of the java.sql package. It is one of the core components of the JDBC Framework. ResultSet Object is used to access query results retrieved from the relational databases. ResultSet….

SQL Injection in Java and How to Easily Prevent it

What is SQL Injection? SQL Injection is one of the top 10 web application vulnerabilities. In simple words, SQL Injection means injecting/inserting SQL code in a query via user-inputted data. It can occur in any….

Java CountDownLatch

Java CountDownLatch – A Nifty Synchronization Aid

Java CountDownLatch class is part of Concurrency API. It allows us to create a synchronization, where a thread waits until the count down is 0. It’s useful when we want a thread to wait on….

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….

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