Java Classes Question:

What is enumeration?

Java Classes Interview Question
Java Classes Interview Question

Answer:

public interface Enumeration . An object that implements the Enumeration interface generates a series of elements, one at a time. Successive calls to the nextElement method return successive elements of the series.


Previous QuestionNext Question
It is possible to define a class within another class; such classes are known as ____________

A) Nested Classes
Explain when we are overloading or overriding the methods how we want to take care about the acess specifiers?