class test
{
private static void main(String []adsf)
{
}
}
explain me that the above code is error or exception
Answer Posted / bhargava
Code will throw exception. Because usually every stand
alone program execution should start with main method. It
should be public other wise this method doesnt exposed to
out side to run.
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What does those terms actually mean included in the j.d.k i.6?
What is a method in programming?
What is bytecode verifier?
Can we declare a constructor as final?
What are the two environment variables that must be set in order to run any java programs?
Can singleton class be cloned?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
How many arguments can be passed to main ()?
Can variables be used in java without initialization?
How does regex work?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
What are constants and how to create constants in java?
Is a boolean variable?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
What do you understand by the term string pool?