What happens when main () method is declared as private?


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

Post New Answer

More Core Java Interview Questions

Can we execute a program without main?

0 Answers  


What is the difference between exception and error in java?

0 Answers  


What is the purpose of the return statement?

0 Answers  


What is the difference between Java1.4 and Java1.5

0 Answers   NIIT,


What is singleton service?

0 Answers  


What does you mean in math?

0 Answers  


class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); }

8 Answers   Logica CMG,


Can we override static methods in java?

0 Answers  


How do you remove all elements from an arraylist in java?

0 Answers  


Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?

2 Answers   ADP,


What is complexity and its types?

0 Answers  


What is package protected in java?

0 Answers  


Categories