Author: Sanjay Mishra

Collections

What are the various ways to iterate over a list ? To iterate over a list in two different ways : 1. Using iterator. 2. Using for-each loop. Is Listiterator inherits from Iterator interface ? Yes, ListIterator inherits from...

Read More

Core Java Basics Part 2

Define the marker interface in java ? Interfaces with no methods are known as marker interfaces for example: Clonable, Serializable, Event listener, SingleThreadModel. These interfaces are implemented by the classes or their...

Read More

Core Java Basics

What is the most important feature that makes Java different to other language? Platform independent feature makes Java different to other language. What is  platform independence means ? It means that we can write and compile...

Read More