In Java why we write public static void main(String args[])
why not main()?
Answer Posted / guest
main() will be treated as just another method.
but public static void main(String args[])
is treated as entry point of an java application
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
Tell us something about different types of casting?
What are functions in java?
What do you mean by local class?
How you can force the garbage collection?
Is the milky way in a void?
What is the use of arrays tostring () in java?
What is final variable?
What super () does in java?
Why does abstract class have constructor?
What is function declaration?
What is diamond operator in java?
What is the size of arraylist in java?
What are the uses of synchronized keyword?
What are the advantages of java over cpp?