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 synchronization? How it can be achieved?

2 Answers  


Is java a digit method?

0 Answers  


what is difference betwwen hashmap and hashtable ?

7 Answers   Fidelity,


can two class in a code be public??if yes then how??

2 Answers  


Why we used break and continue statement in java?

0 Answers  


Which is bigger float or double?

0 Answers  


How hashmap works in java?

0 Answers  


What is the purpose of the main method?

0 Answers  


How HashMap implemented in java? how it internally works when values are added or searched from hashMap?What is the difference betweenthe implementation of hashmap and Linked Hashmap?

3 Answers   IBM,


Can we have multiple catch block for a try block?

0 Answers  


How many types of threads are there in java?

0 Answers  


difference between vectorlist and hash

1 Answers   TCS,


Categories