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, we take a deeper than… Continue reading Java Ternary Operator a.k.a Conditional Operator

Java’s Program Execution Model and WORA: Compilation & Interpretation

In one of the previous lessons, we learnt that one of the main reasons for Java’s popularity is the language’s “Write once, run (any)everywhere” paradigm. This is many a times referred to by acronym WORA. In this lesson we examine all the steps in Java source code execution. These steps contain the magic sauce for enabling WORA in Java. Java achieved… Continue reading Java’s Program Execution Model and WORA: Compilation & Interpretation

Inside JVM 101: What does JVM do and Memory Areas

In one of the previous lessons we saw the difference between JIT,  JVM, JRE and JDK. This lesson looks inside JVM in somewhat greater detail. There are so many components inside JVM that they cannot be covered in a single lesson. So, this lesson focuses on memory areas inside Java and touches upon various other aspects of… Continue reading Inside JVM 101: What does JVM do and Memory Areas