Java Enums

A Java Enum is a special Class that is used to defined a collection of constants. An Enum can contain…

tgugnani

Interface in Java

Interface in Java defines a IS-A relationship between classes and a mechanism to achieve abstraction. An Interface only consist of…

tgugnani

Program: Java Code to find longest character sequence in a random String.

Problem: Write a Java code to find the longest sequence of consecutive repetitive characters in a String. For example if…

tgugnani

Java String Practice Programming Questions and Solutions.

String Class in Java is most commonly used data type to Store sequence of characters and although it is not…

tgugnani

LinkedList in Java.

LinkedList in Java are a better alternative to Arrays, and provides almost all functionality that a ArrayList provides. LinkedList uses…

tgugnani

AutoBoxing and UnBoxing in Java

Autoboxing and unboxing is a mechanism provided by Java to automatically convert primitive Data Type into its corresponding Wrapper Class…

tgugnani

ArrayList in Java

ArrayList is part of Collections Framework in Java and is a implementation of List Interface. As opposed to Java Array…

tgugnani

String Class in Java

As we have learned about Primitive Data Types and Classes in Java. It is a good time to dig into…

tgugnani

Constructors in Java

Constructors are the special methods in Java which gets executed as soon as we create an object of the Class.…

tgugnani

Methods In Java

Lets take a closer looks at methods in Java. As we have seen Class consist of state and behaviour. Methods…

tgugnani