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
What’s jboss jbpm?
What do you mean by Socket Programming?
What is the form of storage space in java?
What is a class loader?
Why won’t the jvm terminate when I close all the application windows?
What is the purpose of the wait() method?
Can you give me a simple example of using the requiredif validator rule?
Write a program to show synchronization?
Can you control when passivation occurs?
What are the diff types of exception?
Should synchronization primitives be used on bean methods?
Explain about local interfaces.
Difference between swing and awt?
What is the difference between a static and a non-static inner class?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..