RSS Feed for This PostCurrent Article

Basic Java Interview Questions

What if the main method is declared as private?The program compiles properly but at runtime it will give “Main method not public.” message.
What is meant by pass by reference and pass by value in Java?
Pass by reference means, passing the address itself rather than passing the value. Pass by value means passing [...]

Trackback URL

Post a Comment