can you use the two main method in same class?how?

Answer Posted / reddy

yes
it is possible in java by passing different parametes to
the main method

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the preferred size of a component in java programming?

545


What are the topics in core java?

539


Why vector is used in java?

566


What is the difference between a static and a non-static inner class in java programming?

535


Why do we need array in java?

537






Difference between concurrent hashmap and hashtable and collections

570


What are the advantages of java inner classes?

563


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

839


What is autoboxing and unboxing?

589


What all methods are used to prevent thread execution ?

559


What are peerless components?

626


What is an empirical question?

546


Why java is call by value?

552


Which is better list or arraylist in java?

499


What is difference between local variable and global variable?

480