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 command line used for?

845


What is the relationship between clipping and repainting under awt?

883


Is a string literal?

754


What is a newline character in java?

802


how to prepare for IT Officers Interview in Banks

1725


Define linked list and its features with signature?

783


What is a 16 bit word?

787


Is java still necessary?

848


What is difference between static and abstract class?

779


Why does java have two ways to create child threads? Which way is better?

804


What is use of static in java?

826


What is map and hashmap in java?

838


What is a generic data type?

766


What's the default access specifier for variables and methods of a class?

811


Can we call the constructor of a class more than once for an object?

859