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 meant by overloading?

590


Is void a return type?

555


Explain different states of a thread in java?

592


what is anonymous class in java?

550


What is use of static in java?

535






What is tostring () method?

546


Which is a valid identifier?

548


Difference between predicate, supplier and consumer ?

585


What is the difference between static method and instance method in Java?

573


Implement two stacks using a single array.

575


What are triggers in DB? Explain their types. How do they work?

630


When should you use arraylist and when should you use linkedlist?

498


What is array length?

507


What is a control variable example?

532


Explain about interthread communication and how it takes place in java?

547