Varun has Published 83 Articles

What is the difference between method overloading and method hiding in Java?

varun

varun

Updated on 30-Jul-2019 22:30:20

708 Views

method hiding − When super class and the sub class contains same methods including parameters, and if they are static and, when called, the super class method is hidden by the method of the sub class this is known as method hiding. Example Live Demo class Demo{ ... Read More

Is main a keyword in Java?

varun

varun

Updated on 30-Jul-2019 22:30:20

744 Views

No, main is not a keyword in Java.

What are static members of a Java class?

varun

varun

Updated on 30-Jul-2019 22:30:20

20K+ Views

In Java, static members are those which belongs to the class and you can access these members without instantiating the class. The static keyword can be used with methods, fields, classes (inner/nested), blocks. Static Methods − You can create a static method by using the keyword static. Static methods can ... Read More

Previous 1 ... 5 6 7 8 9
Advertisements