If an application has multiple classes in it, is it okay to have a main method in more than one class?


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

Post New Answer

More Core Java Interview Questions

What's the difference between int and integer in java?

0 Answers  


I was asked to draw the class diagram for the below scenario which should obey OOPS concept. A Portal is to be developed for a school , which has 3 main divisions viz , Education , Admin & Trust. Each division has 2 sub divisions Kinder Garden & Higer Secondary.

3 Answers   Amtek, Huawei,


Does .length start 0 java?

0 Answers  


What is not object oriented programming?

0 Answers  


Can you override static method in java?

1 Answers  






Why is a singleton bad?

0 Answers  


Suppose there is an Online shopping cart application having different objects like Cart, SelectionItem, Billing, COnfiguration, Authentication, Authorization, PersonalDetails etc. Out of this which one can be made a singleton pattern and why?

2 Answers   RBS,


When should I use singleton pattern?

0 Answers  


Where is jre installed?

0 Answers  


Explain scope or life time of local variables in java?

0 Answers  


List implementations of list interface?

0 Answers  


What is downcasting?

0 Answers  


Categories