What are legal modifiers that we can use to declare an inner class?
public, protected, private, abstract, static and final
| Is This Answer Correct ? | 3 Yes | 0 No |
Sample code to retrieve objects from HashMap in sorted ascending order?
What is an object in java and how is it created?
What is the difference between array and arraylist? what is the difference between arraylist and linkedlist?
What is the Set interface?
Why is the main method static in Java?
what is abstract method with example?
7) Suppose there is Student class like class student { int age; string name; } We want to store these objects in a HashMap. Do we need to override any methods in Student class? If any which ones and why? what if i just override equals or just hashcode? what will be the results in both the cases?
Can we nested try statements in java?
When to use runnable interface vs thread class in java?
What is main string [] args?
What are parameters in a method?
Can we write class inside a class in java?