Why do we need public static void main(String args[])
method in Java...?
Answer / shadow
We need
• public: The method can be accessed outside the
class / package
• static: You need not have an instance of the class
to access the method
• void: Your application need not return a value, as
the JVM launcher would return the value when it exits
• main(): This is the entry point for the application
If the main() was not static, you would require an instance
of the class in order to execute the method.
....!
$HADOW
| Is This Answer Correct ? | 14 Yes | 0 No |
if i have one string class then how can you achive this class functionality of this class?
What does isempty () do in java?
Write a java program to count the number of words present in a string?
program to find 25 square = 625 here the 625 of last two digits is equal to 25, i don't know excatly what this type of number is called
How to access arraylist elements in java?
What is entry in java?
What is the difference between reader/writer and inputstream/output stream?
what is abstract method with example?
Is a method a function?
What is module in project?
What is the r character?
Explain hashset and its features?