Monday, December 13, 2021
What is Log4j 2 RCE issue CVE-2021-44228? How to solve Log injection? [Tactical and Permanent Fix]
Monday, November 22, 2021
Top 5 Course to Crack Google's Associate Cloud Engineer Certification Exam in 2025 - Best of Lot
Saturday, November 20, 2021
Pluralsight Free Weekend - 7500+ Pluralsight Courses FREE for 3 Days
Friday, November 12, 2021
10 Tips to create Maintainable Java Applications
Wednesday, November 10, 2021
How to HashMap in Java? Example Tutorial
Hello friends, we are here today again on our journey to Java. I hope everyone is fine and ready to board our train of knowledge. Today we are gonna learn something very interesting and very exciting, yes I am talking about the HashMap class in Java which is the implementation of hash table data structure. In the past, I have shared my thoughts on How HashMap works in Java as well as frequently asked HashMap interview questions but I have never shared an example of how to use HashMap in Java, or when to use HashMap. Today's topic will definitely be very useful in coding and programming. This topic would surely decrease your time complexity if any task very significantly :p
So what's the wait? Let's start!
Sunday, November 7, 2021
How to Check/Uncheck CheckBoxes in a Page using jQuery? Example Tutorial
Difference between Stable and Unstable Sorting Algorithm - MergeSort vs QuickSort
Saturday, November 6, 2021
How to solve java.lang.classnotfoundexception sun.jdbc.odbc.jdbcodbcdriver in Java 8
Does Standard Column Width of 80 On Coding Make Sense in Modern Era of Big Monitors?
Friday, October 29, 2021
How to Split String in SQL Server and Sybase? Example Tutorial
How to Count Number of Leaf Nodes in a Binary Tree in Java ? [ Iterative and Recursive Solution]
Thursday, October 28, 2021
How to Load Resources from Classpath in Java with Example
Wednesday, October 27, 2021
6 ways to declare and initialize a two-dimensional (2D) String and Integer Array in Java - Example Tutorial
Tuesday, October 26, 2021
How to Calculate Difference between two Dates in Java (In Days) - Example Tutorial
Friday, October 22, 2021
How to implement Bucket Sort in Java? [Solved] - Example Tutorial
2 Best Open source Java Libraries to Create PDF documents - iText vs Apache FOP
What is difference between ArrayList and ArrayList<?> in Java?- Raw Type vs Wildcard Example Tutorial
Wednesday, October 20, 2021
Difference between Abstraction and Encapsulation in Java? OOP Question Answer
Recursive Binary Search Algorithm in Java - Example Tutorial
Tuesday, October 19, 2021
3 Ways to Prevent Method Overriding in Java - Private, Static and Final Method Example Tutorial
Monday, October 18, 2021
Java 8 Date Time - 20 Examples of LocalDate, LocalTime, LocalDateTime
Difference between Stack and Queue Data Structure in Java? Example
10 Examples of Converting a List to Map in Java 8
Tuesday, October 12, 2021
How to Remove all Unused imports in a Java file - Eclipse Shortcut Example
Friday, October 8, 2021
How to get just DATE or TIME from GETDATE() in SQL Sever - Example Tutorial
Wednesday, October 6, 2021
5 ways to Convert Java 8 Stream to List - Example, Tutorial
How to distinguish logging per Client or Request in Java? Use MDC or Mapped Diagnostic Context in Log4j Example
Sunday, October 3, 2021
How to find all Checked checkboxes in jQuery? Example Tutorial
$('input[type=checkbox]:checked')
In this, we are first selecting all input elements where type is a checkbox and then adding: checked to filter only those which are checked.
What is Default, Defender or Extension Method of Java 8 with Example
Friday, October 1, 2021
How to convert float to long or int data type in Java? Example
Monday, September 27, 2021
How to Clone a Collection in Java? Deep copy of ArrayList and HashSet Example
How to use Stream with List and Collection in Java 8? filter + map Example Tutorial
How to fix java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver [Solution]
Saturday, September 25, 2021
How to Convert an Array to Comma Separated String in Java - Example Tutorial
Thursday, September 23, 2021
Overriding equals() and hashCode() method in Java and Hibernate
Wednesday, September 22, 2021
Difference between map() and flatMap() in Java 8 Stream - Example
Tuesday, September 21, 2021
10 Example of Lambda Expressions and Streams in Java 8
Monday, September 20, 2021
5 Difference between Constructor and Static Factory method Pattern in Java
How to set Java Path and Classpath in Windows 7, 8 and Windows 10 - Tutorial
Difference between @WebMvcTest and @DataJpaTest in Spring Boot? Example
Sunday, September 19, 2021
How to remove all special characters from String in Java? Example Tutorial
Difference between Comparison (QuickSort) and Non-Comparison (Counting Sort) based Sorting Algorithms? Example
Why Static Code Analysis is Important? Pros and Cons
Saturday, September 18, 2021
How to Read/Write from RandomAccessFile in Java - Example Tutorial
Friday, September 17, 2021
Difference between JAX-RS, Restlet, Jersey, RESTEasy, and Apache CXF Frameworks
Thursday, September 16, 2021
How to compare objects on natural order in Java? Comparable + compareTo Example
Difference between Association, Composition and Aggregation in Java, UML and Object Oriented Programming
How to Filter Stream and Collections in Java 8? Example Tutorial
Wednesday, September 15, 2021
StringTokenizer Example in Java with Multiple Delimiters - Example Tutorial
Tuesday, September 14, 2021
5 ways to check if String is empty in Java - examples
Monday, September 13, 2021
Difference between for loop and Enhanced for loop in Java? Example Tutorial
What is difference between Maven, ANT, Jenkins and Hudson?
Sunday, September 12, 2021
Difference between OCPJP 8 Upgrade Exams 1Z0-813 and 1Z0-810? Which one to take?
5 Free OCEJWCD 6 Mock Exam 1Z0-899 Practice Test
How to create LocalDateTime in Java 8 - Example Tutorial
Saturday, September 11, 2021
3 ways to loop over Set or HashSet in Java? Examples
Friday, September 10, 2021
Java Comparator Example for Custom Sorting Employee by Name, Age and Salary
How to use Lambda Expression in Place of Anonymous Class in Java 8 - Example Tutorial
Reading/Writing to/from Files using FileChannel and ByteBuffer in Java - Example Tutorial
Wednesday, September 8, 2021
Top 5 Blogs Java EE developers should follow
10 Difference between Primitive and Reference variable in Java - Example Tutorial
Tuesday, September 7, 2021
Adapter vs Decorator vs Facade vs Proxy Design Pattern in Java
Difference between extends and implements keywords in Java? Example Tutorial
Why Default or No Argument Constructor is Important in Java Class? Answer
3 Ways to Convert Java 8 Stream to an Array - Lambda Expression and Constructor Reference Example
Monday, September 6, 2021
2 solution of java.lang.OutOfMemoryError in Java
How to enable SSL debugging in Java JVM? Example
Top 5 Java 8 Practice Test and Exam Simulators (OCAJP and OCPJP) - Best of lot
How to convert java.util.Date to java.sql.Timestamp? Example Tutorial
Sunday, September 5, 2021
How to get the last modified date and time of a File or Directory in Java? Example Tutorial
How to create RESTful Web Services using Restlet Framework in Java - Example Tutorial
Difference between GETDATE() vs SYSDATETIME() vs GETUTCDATE() in SQL Server - Examples
Friday, September 3, 2021
Difference between PUT and POST in REST Web Services in Java - Example
Wednesday, September 1, 2021
How to replace a substring in Java? String replace() method Example Tutorial
How to check if ResultSet is empty in JDBC Java - Example Tutorial
Tuesday, August 31, 2021
5 ways to add multiple JAR in to Classpath in Java - Examples
How to implement Post Order Traversal of Binary Tree in Java - Recursion and Iteration Example
Java Enum Tutorial: 10 Examples of Enum in Java
Enum in Java is a keyword, a feature that is used to represent a fixed number of well-known values in Java, For example, Number of days in the Week, Number of planets in the Solar system, etc. Enumeration (Enum) in Java was introduced in JDK 1.5 and it is one of my favorite features of J2SE 5 among Autoboxing and unboxing, Generics, varargs, and static import. One of the common use of Enum which emerged in recent years is Using Enum to write Singleton in Java, which is by far the easiest way to implement Singleton and handles several issues related to thread-safety and Serialization automatically.