In the Java EE, or J2EE or JEE world, there is a lot of confusion between terminology, which is quite evident that now we have three words (J2EE, Java EE, and JEE) to describe the same technology platform. You will see Java developers using the terms like Web Server, Application Server, and Servlet containers interchangeably but they are not exactly the same. The main difference between a Web server and an application server is that a web server is meant to serve static pages like HTML and CSS, while an Application Server is responsible for generating dynamic content by executing server-side code like JSP, Servlet, or EJB.
Wednesday, July 24, 2024
Tuesday, July 23, 2024
Top 10 Microservices Design Principles with Examples
Hello guys, today's world is about Microservices because Microservices goes
hand-in-hand with Cloud Computing. They are designed better to run on Cloud
Computing. Since all new Software development is most likely going to happen
cloud-native, it's important for developers to learn about Microservices,
particularly Java developers. To help with that, I have shared
best Microservices courses
and
books
in the past as well as
10 Microservices design patterns and in this article, I am going to share 10 common Microservices design
principles. If you are wondering what is difference between patterns and
principles?
Sunday, July 21, 2024
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.