Skip to content

Tag Archives: java-interfaces

Java language is one of the most popular languages among all programming languages. There are several advantages of using the java programming language, whether for… Read More
Maintenance is one of the important aspects of software development, and experience has shown that software that maintains its component’s visibility low is more maintainable… Read More
java.lang.Runnable is an interface that is to be implemented by a class whose instances are intended to be executed by a thread. There are two… Read More
Interface contains only abstract methods that can’t be instantiated and it is declared by keyword interface. A class that is declared with the abstract keyword… Read More
In Java, the interface is called a blueprint of a class and it is used to achieve abstraction in java. By using interfaces only we… Read More
Generics make a class, interface and, method, consider all (reference) types that are given dynamically as parameters. This ensures type safety. Generic class parameters are… Read More
A lock is a device for commanding access to an assigned resource by multiple threads. Usually, a lock grants exclusive access to a shared resource:… Read More
A Closeable is a source or destination of the data that needs to be closed. The close() method is invoked when we need to release… Read More
The Java.lang.Cloneable interface is a marker interface. It was introduced in JDK 1.0. There is a method clone() in the Object class. Cloneable interface is… Read More
The Java Iterator interface represents an object capable of iterating through a collection of Java objects, one object at a time. The Iterator interface is… Read More
Prerequisite: Interface and Abstract class in Java. A Constructor is a special member function used to initialize the newly created object. It is automatically called… Read More
Java is one of the most popular and widely used programming languages. Java has been one of the most popular programming languages for many years.… Read More
Enumerations serve the purpose of representing a group of named constants in a programming language. For example, the 4 suits in a deck of playing… Read More
Inheritance is an important pillar of OOPs(Object Oriented Programming). It is the mechanism in java by which one class is allowed to inherit the features(fields… Read More
The push(E e) method of BlockingDeque pushes an element onto the stack represented by this deque. It inserts the element passed in the parameter to… Read More