Tag: Object Oriented Programming
- Difference between ArrayBlockingQueue and ArrayDequeArrayBlockingQueue stores elements in FIFO order. Insertion of element always happened at the tail of the queue and removal of the element always happened from the head of the queue. It is thread safe and It is bounded array queue therefore
- Difference between ArrayBlockingQueue and LinkedBlockingQueueBlocking queue interface is the part of Java.util.concurrent package. Blocking queue is specially designed for producer consumer queues and also support collection. This interface is divided into four parts of methods to support all types of opera
- How to implement LongToDoubleFunction using lambda and method reference in Java?LongToDoubleFunction is a built-in functional interface and part of java.util.function package. This functional interface accepts a long-valued parameter as input and produces a
- How to implement LongToIntFunction using lambda and method reference in Java?LongToIntFunction is a functional interface from java.util.function package introduced in Java 8. This functional interface accepts a long-valued parameter as i
- What are the main features and enhancements introduced in Java 9?Oracle has released Java 9 version with a rich set of new features and brings a lot of new enhancements.Below are a few important features and enhanc
- What are the rules for private methods in an interface in Java 9?Java 9 added a new feature of private methods to an interface. The private methods can be defined using a private modifier. We can add both private