What happens when a main method is declared as private?
Answer Posted / subha narayan mohapatra
it will generate an error message because main() method is
the start or execution point in our java program.
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How do you ensure that n threads can access n resources without deadlock?
What is the difference between JDBC 1.0 and JDBC 2.0?
When do I need to use reflection feature in java?
What are the loops in java?
Can we declare register variable as global?
What are the procedures?
What is supplier in java?
What is ph and buffers?
Can sleep() method causes another thread to sleep?
Why singleton is not thread safe?
What is the default access specifier for variables and methods of a class?
Can we clone singleton object in java?
Why is stringbuffer faster than string?
How to read and write image from a file ?
What is autoboxing and unboxing?