Floating-point in Java, as in any other modern day programming language, is a complex subject. The versatility, power and the complexity of floating-point numbers is cloaked in innocent looking, simple digits. To harness the real power of floating-point numbers and to use them correctly in Java, it is essential to understand how they are represented […]

## Java Ternary Operator a.k.a Conditional Operator

The conditional operator is very similar to the if/else or switch conditional statements and is the only operator in Java that takes three operands. Therefore, conditional operator is also known as ternary operator. This operator not only has three operands but can also be used in variety of ways to make the code more concise. So, […]

## Java Collections: Sets

A Set is a Java Collection that does not allow duplicate elements. A Java Set is embodiment of a Mathematical Set, which comprises of zero or more distinct, possibly infinite distinct unordered elements. Like all other collections, Sets in Java comprise of an interface aptly named Set and a number of concrete implementations. Differences Between Java […]