can we have virtual functions in java?

Answer Posted / bindhu solomon

In java, all methods are virtual functions by default. So
we can override a method in any subclasses .

Is This Answer Correct ?    123 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the most important feature of java? What is an interface?

759


Difference between static synchronization vs. Instance synchronization?

821


What data structures are used to perform recursion?

806


Explain the difference between abstract class and interface in java?

746


What is functional interface in java?

763


What’s a deadlock?

844


Why do we use return statement?

762


What is regex in java?

702


Why is method overloading not possible by changing the return type in java?

784


What is data movement?

880


What is type inference in java8?

795


what is instanceof operator used in java?

783


What is java string pool?

764


what is synchronization and why is it important? : Java thread

841


What flag up means?

797