can we have virtual functions in java?

Answer Posted / jana

Virtual function means it doesnot contain any body.In C++
we have virtual functions.

In java also we have virtual functions.abstract methods is
nothing but virtual functions.

Jana

Is This Answer Correct ?    4 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can list contain null in java?

633


What is local declaration?

495


What is immutable in java?

550


Explain the difference between static and dynamic binding in java?

549


What is the difference between C++ and Java and your preferences?

618






Why doesn't the java library use a randomized version of quicksort?

552


How can a gui component handle its own events in java programming?

544


Is null keyword in java?

534


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

551


How do you do absolute value in java?

527


Can you extend singleton class?

606


How to change the priority of thread or how to set priority of thread?

568


How to implement a multithreaded applet?

2206


What class allows you to read objects directly from a stream in java programming?

518


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

569