
Comparable vs Comparator in Java
We often need to compare objects. Sorting, for example, is based on comparison according to some criteria. So it is important to understand the difference between Comparable and Comparator.

We often need to compare objects. Sorting, for example, is based on comparison according to some criteria. So it is important to understand the difference between Comparable and Comparator.

You’ve heard the term “canonical class”, but what does it mean? In Java, a canonical class is simply a well-formed or well-behaved class. The canonical class form is most often used for model classes (also called domain or entity classes).

You’ve heard of JavaBeans. But what are they actually? Java 1.1. introduced the term JavaBean to describe a self-contained, reusable, high-granularity component. The original idea was to create high-level building blocks for graphical user interfaces (GUI).

You often use the Java concatenation operator (+) to concatenate (join) two strings together. And you use it with both string literals and string variables. But what’s going on behind the scenes?

Every experienced programmer has a favourite language, and a not-so-favourite language. Lewis loves Java — that’s why he develops and presents all the Java-related courses. I once heard Renier describe C as being like poetry. But I think very few programming languages have inspired as much passion and playfulness as

When last did you see ++i in a C, C++, C#, Java, or JavaScript program? On the other hand, you would have seen i++ numerous times. Why is this the preferred choice?
Check that incusdata.com is an approved sender, so that your Java tips don’t land up in the spam folder.
Our privacy policy means your data is safe. You can unsubscribe from these tips at any time.
Thank you for completing the form. We're excited that you have chosen to contact us about training. We will process the information as soon as we can, and we will do our best to contact you within 1 working day. (Please note that our offices are closed over weekends and public holidays.)
Our privacy policy ensures your data is safe: Incus Data does not sell or otherwise distribute email addresses. We will not divulge your personal information to anyone unless specifically authorised by you.
If you need any further information, please contact us on tel: (27) 12-666-2020 or email info@incusdata.com