why we write public static void main (String args[])
in core java plz explain briefly??????????????????
Answer Posted / anand kumar jha
we write public because it can be called from outside the envornment and as we know that by using public keyword we will be able to access all the codes from outside,static is used because the JVM(java virtual machine which is also called as the interpreter calles the main function when there is no declaration of class instances so if we dont use static then the interprter will not check for it ,we use string and its a kind of class.It is also known as the commad line argument.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain some best practices you would apply while using collection in java?
make a method which any number and any type of argument and print sum of that arguments.....
What are the differences between include directive and include action?
What loop means?
What are computer functions?
How to perform merge sort in java?
What are the concepts of 'OOPS'?
how we can make a read-only class in java?
How do you include a string in java?
What is java in detail?
What is struts in java?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
Can we overload destructor in java?
What are the elements of java?
What is number data type in java?