in a console we r giving java <class name> if r pressing
enter where it'll goes
Answer Posted / srujan jack
it transfers the class name to JVM then the JVM calls main() method using class name.
there fore the main() method must be declared with public & static.....
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Why do we need strings in java?
Is main is a keyword?
What are different access specifiers in java?
What are the two types of java programming?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
Define how can we find the actual size of an object on the heap?
Which list does not allow duplicates in java?
How many ways can you break a singleton class in java?
What is the memory leak in java?
How is java created?
Explain java heap space and garbage collection?
Can an unreferenced object be referenced again?
How does arrays sort work in java?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What makes a function well defined?