Ternary Operator in Java

In the post conditional operators in Java we talked about the Conditional-AND and Conditional-OR operators, here we’ll talk about another conditional operator known as ternary operator in Java (?:). Ternary operator uses three operands thus the name ternary operator and it can be used in place of if-else statement or…

Continue reading

ArrayList Vs LinkedList in Java

In Java Collections framework there are two general-purpose List implementations— ArrayList and LinkedList. In this post we’ll see the differences between ArrayList and LikedList in Java to understand these two implementations better. Knowing the differences between ArrayList and LikedList will also help you to determine which implementation is better in…

Continue reading