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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between overriding and overloading in java?

858


Which is bigger double or float?

764


What is callablestatement? How you can call stored procedure to pass in parameter?

790


When should the method invokelater() be used?

786


What is functional interface in java example?

795


Difference between ‘>>’ and ‘>>>’ operators in java?

917


Why are arrays useful in java?

816


What are the disadvantages of using inner classes?

805


Can we create an object of static class in java?

829


What are the advantages of java over cpp?

840


Name few java.lang classes introduced with java 8 ?

787


Why do we need singleton class?

771


What is the length of a string?

772


What is the difference between jfc & wfc?

830


What is a finally block?

784