In Java why we write public static void main(String args[])
why not main()?
Answer Posted / ratna
As said by Prabhakant Prabhakar Rasal
if There are two main reasons to write string args[]
1. TO identify the program
2. To get command_line arguments
How does the string args[] helps in identifying the program ????
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why does java have different data types for integers and floating-point values?
What is difference between printf and scanf?
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread
Differentiate between the constructors and methods in java?
Differece between class and generic class?
Why to use nested classes in java?
What is static method with example?
Can It is possible to synchronize the constructor of a Java Class?
What do you mean by JVM?
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?
What is the importance of finally block in exception handling?
What are nested classes in java?
What is dynamic array in java?
What is incompatible types in java?
define the terminology association.