how to execute main()
Answers were Sorted based on User's Feedback
Answer / suresh royal
main() method is the JVM known method so jvm
will start the exicution from main method ,that main() method is static so no need to call
| Is This Answer Correct ? | 16 Yes | 0 No |
Answer / sadikhasan palsaniya
main method is executed by JVM. User cant execute it.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / atul
main() is execute by the jvm.if class have main()method &
class loader is load class in method area.
then Jvm call main() method;
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / karthika
By using object creation,we can execute main method.
| Is This Answer Correct ? | 1 Yes | 7 No |
How do you add an arraylist to an array in java?
Is string pool garbage collected?
solve this is my problem byte a=40,byte b=50 both add value is 90 this is with in range of byte... byte range is -128to 127.... why this pgm gives error like type mismatch.... package javapgms; public class byte1 { public static void main(String args[]) { byte a=40,b=50; byte c=a+b; System.out.println(c); } } note : dont use int k... a,b,c are in byte range... mind it..
what is a static block?
Explain the difference between Unicast and Multicast objects?
Which eclipse is best for java?
Why main method is called first in java?
What access modifiers can be used for methods?
What methods are used to get and set the text label displayed by a button object?
What is the use of flag?
What is the difference between throw and throws in java?
Is java call by reference?