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 a protected method?

702


What is the difference between jfc & wfc?

692


What is a website container?

590


What is functional interface in java example?

624


What is the difference between form & report?

670






What is meant by class?

642


How will you call an Applet using Java Script Function?

635


What are the states of thread in java?

615


What is the implementation of destroy method in java. Is it native or java code?

590


What is boolean logic?

644


How do you replace a string in java?

639


Explain an intermediate language?

587


How many bytes is double?

633


Can we write method inside a method in java?

649


What is arraylist e?

653