What all access modifiers are allowed for top class ?
No Answer is Posted For this Question
Be the First to Post Answer
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.
What is flush () in java?
What is the smallest package in Java API?
What is the difference between synchronized and synchronized block?
What is anonymous class?
why the constructor should be used in class,if there is no constructor what will happen?
What is java in detail?
What are the uses of java?
What is boolean false?
What are the types of classes in java?
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?
Explain the reason behind ending a program with a system.exit(0)?