Tags:JAVA Questions | 339 views
What is the difference between Abstract class and Interface Or When should you use an abstract class, when an interface, when both? Or What is similarities/difference between an Abstract class and Interface? Or What is the difference between interface and an abstract class?1. Abstract class is a class which contain one or more abstract methods, [...]
Tags:JAVA Questions | 72 views
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 a [...]