What are legal modifiers that we can use to declare an inner class?



What are legal modifiers that we can use to declare an inner class?..

Answer / javamasque

public, protected, private, abstract, static and final

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Core Java Interview Questions

Sample code to retrieve objects from HashMap in sorted ascending order?

2 Answers  


What is an object in java and how is it created?

0 Answers  


What is the difference between array and arraylist? what is the difference between arraylist and linkedlist?

8 Answers   EDS, Matrix,


What is the Set interface?

2 Answers  


Why is the main method static in Java?

1 Answers  


what is abstract method with example?

6 Answers   Infosys, Virtusa,


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?

4 Answers   CSC, Nagarro, RBS,


Can we nested try statements in java?

1 Answers  


When to use runnable interface vs thread class in java?

1 Answers  


What is main string [] args?

1 Answers  


What are parameters in a method?

1 Answers  


Can we write class inside a class in java?

1 Answers  


Categories