can we have virtual functions in java?

Answer Posted / rakesh kumar jha

In java all method use dynamic method lookup and therefore
are be default virtual. so there is no way to explicity
call an overriden base class method, but overwriting can be
prevented by declare a method final.

Is This Answer Correct ?    29 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between hashmap and hashtable in java?

550


What is an class?

587


What is identifier with example?

564


What are advantages of exception handling in java?

576


Explain the importance of finalize() method.

560






What is use of valueof () in java?

551


What is floor math?

509


What is <> used for in java?

663


How to call one constructor from the other constructor ?

596


What is static synchronization?

571


Is singleton class thread safe?

531


What is the base class of all exception classes?

577


What is the difference between stringbuffer and stringbuilder class?

560


What is variable explain with example?

566


Define the term string pool?

582