can we have virtual functions in java?

Answer Posted / magan

By default all the methods are virtual functions in java.
So there is no need of virtual functions.

Is This Answer Correct ?    57 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why an outer class cannot be declared as private?

3904


Can we nested try statements in java?

850


What is the SimpleTimeZone class?

2006


Can we override final method?

749


Can we have static methods in an interface?

786


How to instantiate static nested classes in java?

777


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

822


What is complexity and its types?

727


What do you understand by synchronization?

794


What is a vector in java?

783


What is a package in java? List down various advantages of packages.

978


How do you create a reference in java?

706


What is Java Shutdown Hook?

832


Which is better singleton or static class?

700


What is the use of System class?

842