Java Enums
A Java Enum is a special Class that is used to defined a collection of constants. An Enum can contain…
A Java Enum is a special Class that is used to defined a collection of constants. An Enum can contain…
Interface in Java defines a IS-A relationship between classes and a mechanism to achieve abstraction. An Interface only consist of…
Problem: Write a Java code to find the longest sequence of consecutive repetitive characters in a String. For example if…
String Class in Java is most commonly used data type to Store sequence of characters and although it is not…
LinkedList in Java are a better alternative to Arrays, and provides almost all functionality that a ArrayList provides. LinkedList uses…
Autoboxing and unboxing is a mechanism provided by Java to automatically convert primitive Data Type into its corresponding Wrapper Class…
ArrayList is part of Collections Framework in Java and is a implementation of List Interface. As opposed to Java Array…
As we have learned about Primitive Data Types and Classes in Java. It is a good time to dig into…
Constructors are the special methods in Java which gets executed as soon as we create an object of the Class.…
Lets take a closer looks at methods in Java. As we have seen Class consist of state and behaviour. Methods…