Browsing Category
Java
Description of Java is a general-purpose programming language that is class-based, object-oriented, and designed to have as few implementation dependencies as possible. Java is a general-purpose programming language that is class-based, object-
Java Multithreading Example | Multithreading in Java
Usually, in a standard Java program, the entire program runs as a single “thread.” What it means that if a part of the program is demanding some I/O resource, for example, to proceed further, and if that I/O resource is not available at the…
Java Inheritance Example | Inheritance in Java
Java Inheritance is a property of Object-Oriented Programming Concepts by which we can access some methods of a class in another class. The class whose methods is inherited know as Parent class/ Base class/ Superclass, and the class which…
Java Encapsulation Example | Encapsulation in Java
Java Encapsulation Encapsulation is one of the four fundamental (inheritance, abstraction, and polymorphism) Object-Oriented Programming concepts. It a kind of mechanism of wrapping data in a single unit. In encapsulation variables of a…
Java Abstract Class Example | Abstract Class in Java
Java abstract class that is declared using the “abstract” keyword is known as an abstract class. In C++ programming language to make a class abstract we need to declare a pure virtual function in that class. But in Java, it’s different. To…
Java Arrays Example | Arrays in Java Explained
Java Arrays store a value into the variable. Now if we required more values then have to declare more variables, i.e., one variable for one value. So, here then the program will consume a lot of memory space. To resolve this problem, we…
Java Constructor Example | Constructor in Java
Java Constructor is a code of blocks in java like methods. It is called when an object instance is created, and memory is allocated for the object. We can say Constructor is a particular type of method by which we can initialize the object…
Java Scanner Class Example | Scanner Class in Java
Java Scanner class is present in the java.util package. Java has various way to take input from the keyboard and java.uti.Scanner class is one of them. Java Scanner class breaks an input into the2e tokens using the delimiter which is…
Java Interface Example | Interface in Java Tutorial
Java Interface is similar to a class that is capable of handling multiple inheritance. It is nothing but a collection of abstract methods. In class, multiple inheritance is not possible. To remove this disadvantage, we use an interface that…
Java Hashmap Example | HashMap in Java
Java HashMap is the part of Collections since JDK1.2. Java HashMap provides the underlying implementation of the Map interface of Java. The HashMap is the hash table based implementation of Java’s Map interface.
A Map, as you might know,…
Java ArrayList Example | Array List in Java Tutorial
Java ArrayList is a part of the inbuilt collection framework that is used to save the dynamically sized collection of items. Arrays are fixed in size; an ArrayList grows its size automatically when new items are added to it. ArrayList is…