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
Why do we need data serialization?
What are the common uses of "this" keyword in java ?
Give an example of call be reference significance.
How many decimal digits is 64 bit?
What is the purpose of object oriented programming?
what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent
If a variable is declared as private, where may the variable be accessed?
If an object is garbage collected, can it become reachable again?
Can you use this() and super() both in a constructor?
What is a lock or purpose of locks in java?
What is an immutable class?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
How do you create immutable object in java?
java Technical questions asked by JPMC
whatis Home interface and Remoteinterface? with example?