can we have virtual functions in java?

Answer Posted / krishna

First of all that I would like to tell u that there is no keyword like virtual in Java. and all the guys are saying that all methods are virtual in Java. But it is not true.
While we try to override private methods then it is not override. this shows all the methods are not virtual in Java.

Is This Answer Correct ?    5 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between JVM and JRE?

616


Explain about main thread in java?

606


How dead lock situation occurs in java and how you can identify it?

538


Why do you canvas?

602


How are variables stored?

527






What is methodological theory?

522


How do you create immutable object in java?

535


What is treeset in java?

534


Is map sorted in java?

564


What is the default value of float and double datatype in java?

528


what are abstract functions?

557


How is hashcode calculated in java?

496


how many types of Inheritance?

641


What is the dot operator?

563


Explain about exception propagation?

583