What all access modifiers are allowed for top class ?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

0 Answers  


What is flush () in java?

0 Answers  


What is the smallest package in Java API?

5 Answers   iGate,


What is the difference between synchronized and synchronized block?

0 Answers  


What is anonymous class?

2 Answers  






why the constructor should be used in class,if there is no constructor what will happen?

4 Answers  


What is java in detail?

0 Answers  


What are the uses of java?

0 Answers  


What is boolean false?

0 Answers  


What are the types of classes in java?

4 Answers   HCL,


If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?

5 Answers  


Explain the reason behind ending a program with a system.exit(0)?

0 Answers  


Categories