Answer Posted / amit
look guys,we use main() method inside java cause whenever we
compile .java file then jvm call classname.main() first
without make any object.main method must be public and static
cause public for wide accessing and jvm call main() without
creating any object its only possible when main() is static
method.and all the argument taken by main in form of string
thats why we write as.......
public static void main(String args[])
it canbe
public final static void main(String args[])
| Is This Answer Correct ? | 24 Yes | 0 No |
Post New Answer View All Answers
Do I need to import javlang package any time? Why ?
What is the difference between java class and bean?
Why a component architecture for the java platform?
Brief description about local interfaces?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
Difference between new operator and class.forname().newinstance()?
What is in-memory replication?
What happens when a thread cannot acquire a lock on an object?
How database connectivity in XML is achieved?
Explain the steps in details to load the server object dynamically?
What modifiers may be used with an interface declaration?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
Why are my checkboxes not being set from on to off?
Can I run seam with jdk 1.4 and earlier?
what are the activation groupworks?