Java67
Learn Java and Programming through articles, code examples, and tutorials for developers of all levels.
Preparing for Java and Spring Boot Interview?
3 Difference between Web Server vs Application Server vs Servlet Containers - Apache vs JBoss vs Tomcat
Top 10 Microservices Design Principles with Examples
10 Examples of Comparator, Comparable, and Sorting in Java 8
Hello guys, the Comparator class is used to provide code or logic for comparing objects in Java, while sorting a list of objects or a collection of objects. It's close cousin of Comparable which provides natural order sorting e.g. ascending and descending orders for numbers like int, short, long or float, and lexicographic order for String i.e. the order on which words are arranged in dictionaries. The Comparators are used while sorting arrays, lists and collections. You pass logic to compare objects and sorting methods like Collections.sort() use that logic to compare elements until they are arranged in sorted order.
How to Convert String to LocalDate, LocalTime, LocalDateTime and ZonedDateTime in Java? Example Tutorial
The JDK 8 added a new Date and Time API (JSR 310) which introduces new date and time classes like LocalDate, LocalTime, LocalDateTime, and ZonedDateTime. Now, if you have a String e.g. "2016-12-14 03:30" then how do parse it to LocalDate, LocalTime, LocalDateTime and ZonedDateTime? Similarly, if you have an instance of those classes how you can format to the String you want e.g. in dd/MM/yyyy format, or USA or UK format? Well, Java 8 provides a utility class called DateTimeFormatter which can be used to parse/format dates in Java 8. It also provides several built-in formatter e.g. ISO date format and other to facilitate formatting of dates to String.
How to convert JSON to Map in Java 8 without using third party libraries like Jackson or Gson
Hello guys, If you are working with JSON data then you may know that JSON is collection of key value pairs and that's why many times, you also need to convert them into a Map in Java. While there are many Java libraries like Jackson and Gson which provides support of parsing JSON to Java objects, there is not much support for JSON parsing or manipulation on standard JDK. While JSON parsing is still a long overdue, starting with JDK 8u60+ the built-in Nashorn engine is capable to convert JSON content into java.util.Map. No external dependencies are required for parsing JSON in to Map as you will learn in this article.
Top 10 Online Courses to Learn Python in 2024 - Best of Lot
Can You Override static method in Java? Method Hiding Example
Top 95 Programming Interview Questions Answers to Crack Any Coding Job Interview
Top 5 Free Object-Oriented Programming Courses for Java Programmers in 2024 [UPDATED]
Top 10 Free Courses for Java Developers to Learn Online in 2024 - Best of Lot
Top 30 Stack and Queue Data Structure Interview Questions for Practice
Top 5 Java Performance Courses for Experienced Developers in 2024 - Best of Lot
Top 7 Free Amazon Web Services or AWS Courses to Learn in 2024- Best of Lot [UPDATED]
Top 10 Online Courses to Learn Data Structure and Algorithms in 2024 - Best of Lot
Top 10 Free Core Spring, Spring MVC, and Spring Boot Courses for Beginners in 2024 - Best of Lot
Top 5 System Design Newsletter You Can Read in 2024
8 Free Linux Courses for Programmers and IT Professionals to Learn Online [2024]
Top 10 JavaScript Online Courses for Beginners in 2024 - Best of Lot
Hello guys, JavaScript is one of the most powerful programming languages, and if you want to learn JavaScript, now is the best time. If you are looking for the best and advanced JavaScript courses, then you have come to the right place. Earlier, I have shared JavaScript websites, JavaScript projects, and free JavaScript courses, and in this article, I am going to share some of the best courses to learn JavaScript in 2024. I have compiled this list by collecting a lot of recommended JavaScript courses from online learning platforms like Udemy, Coursera, Pluralsight, Educative, CodeCademy, edX, Udacity, and others. This is a decent collection of different types of JavaScript courses from different platforms. While you don't need to join all these courses, joining one or two will be enough.