Java Wrapper classes

Java Wrapper classes A wrapper class is a class whose object contains a primitive data type; moreover it provides a way to use primitive data type (int, boolean, etc.) as objects. Wrapper class facilitates with conversion mechanism that converts primitive …

Read moreJava Wrapper classes

Interface in Java

Interface in Java In Java, the interface is just like a class that has only static constants and abstract methods. It is used to achieve polymorphism so that it can also implement multiple inheritance. All the methods in the Interface …

Read moreInterface in Java

Access modifiers in Java

Access modifiers in Java with Example In Java, there are two types of access modifiers one is a non-access modifier, and other is access modifier. If we talk about access modifier, there are four types of access modifier. default private …

Read moreAccess modifiers in Java

Abstract classes in Java

Abstract classes in Java Java uses the ‘abstract’ keyword to make a class abstract. Such classes are known as abstract classes, and the process is known as abstraction. In programming language, abstract classes are generic classes (or types of objects) …

Read moreAbstract classes in Java

Java Abstraction

Java Abstraction Abstraction is an advanced feature of Java to make it transparent. The main motive behind the abstraction is to deal with ideas, not with events. Abstraction is a process for hiding the implementation details from the user. Java …

Read moreJava Abstraction

Java final keyword

Java final keyword The ‘final’ keyword is a non-access modifier. It is used to restrict the user to manipulate the data members (variables, methods, and classes). It is used in different context like Variables Methods Classes Final variables A variable …

Read moreJava final keyword

Java super Keyword

Java super Keyword In Java, the keyword ‘super’ and ‘this’ are very similar. The super keyword is a reference variable that refers to the parent class object. When we talk about super keyword, the Java inheritance comes in our mind, …

Read moreJava super Keyword

Java static keyword

Java static keyword Java uses the static keyword for memory management. It can be used along with variables, methods, blocks, nested class. It is used to share the same variable method for the given class. Generally, the main method of …

Read moreJava static keyword