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 best definition for data?

721


Can we have static methods in an interface?

794


Can variables be used in java without initialization?

800


What is variable explain?

730


Does treeset use compareto?

750


What is difference between an object and a class?

829


Can constructor be static or final?

861


Explain methods specific to list interface?

748


What is a JAR file?

802


How will you communicate between two applets?

862


What is use of map in java?

750


What is meant by 'Class access modifiers'?

809


placement papaers of spring computing technology

1196


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

937


What is your platform?s default character encoding and how to know this?

2009