ArrayList is a mostly used collection class in java. This is used to store different lists of objects We have seen List in Java. Now
Category: Java
Java is a powerful, object-oriented programming language that’s the backbone of countless modern technologies, from enterprise systems to mobile apps. Launched by Sun Microsystems in 1995, Java’s philosophy of “write once, run anywhere” makes it platform-independent and incredibly versatile.
If we want to store a list of elements in java, Java has a List interface in java. List in java allows us to maintain
Taking input from the user From java, we can take the user’s entered output from the console. There are four types to get user’s input
What is Enum in java? An enum is a class that represents a group of constants. Constants are the final variables and we can not
What is polymorphism in java? Poly means Many and Morphism means Forms. The ability to have more than one form is called Polymorphism. In this
What is Encapsulation (Data-Hiding) in Java? Encapsulation is the process of hiding the object’s properties from the outside of the class. And providing the methods
How interface in java works and how to achieve abstraction using the interface. In java, we can achieve abstraction in two ways, using abstract class
