we have a 100 classes at that time which class we have to
write main method? pls help me

Answers were Sorted based on User's Feedback



we have a 100 classes at that time which class we have to write main method? pls help me..

Answer / ankit sangal

we should write the main method in that class from where we want to start the compilation.

Is This Answer Correct ?    16 Yes 1 No

we have a 100 classes at that time which class we have to write main method? pls help me..

Answer / pravallika

we can write main method in any class is possible.

Is This Answer Correct ?    9 Yes 1 No

we have a 100 classes at that time which class we have to write main method? pls help me..

Answer / venky

yes,we can write in any class

Is This Answer Correct ?    8 Yes 0 No

we have a 100 classes at that time which class we have to write main method? pls help me..

Answer / dinesh tiwari

Hey All,
I Think if we have 100 class we write main method wihin
any class just we should mention class name in mainifest
file before calling.mainfest main work is tp provide main
class name to jvm.

Is This Answer Correct ?    2 Yes 0 No

we have a 100 classes at that time which class we have to write main method? pls help me..

Answer / pravallika

But compile time point of view main method is not required.so we can write main method in any one class is possible.

Is This Answer Correct ?    1 Yes 1 No

we have a 100 classes at that time which class we have to write main method? pls help me..

Answer / john kennedy

The class which has the connection or relationship with all
other classes can be main class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the relationship between a method?s throws clause and the exceptions that can be thrown during the method?s execution?

2 Answers  


what is servlet filter?

2 Answers  


How can we find the sum of two linked lists using stack in java?

0 Answers  


java can provide security ,how can provide?

8 Answers   Aspire, BNP Paribas, Genpact, IBM,


Is java 1.7 the same as java 7?

0 Answers  






How to provide security in java

0 Answers   Infosys, TCS, Tech Mahindra,


How many types of array are there?

0 Answers  


Is 'null' a keyword?

8 Answers  


if num=687; U have to get num=6+8+7;

4 Answers   CMC,


Where can I find data structures question and answers with comprehensive working code written in Java

0 Answers   Amazon,


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

0 Answers  


How to perform binary search in java?

0 Answers  


Categories