what is an virtual function
Answers were Sorted based on User's Feedback
Answer / ejp
There are no virtual functions in Java so the question is
futile. There are non-final functions, which can be
overridden by a derived class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / nishi tomar
A virtual function is a member function of a class, whose
functionality can be over-ridden in its derived classes. It
is one that is declared as virtual in the base class using
the virtual keyword. The virtual nature is inherited in the
subsequent derived classes and the virtual keyword need not
be re-stated there. The whole function body can be replaced
with a new set of implementation in the derived class.
| Is This Answer Correct ? | 3 Yes | 5 No |
What are the important features of Java 10 release?
Can we have this () and super () together?
Can java list be null?
What are Transient and Volatile Modifiers?
3 Answers SAP Labs, TUP Manila,
An inner class can actually be a subclass of the outer class? a. true b. false
Question 6 [9] 6.1 In what situations (in general) would you use a TreeMap? (3) 6.2 In what situations (in general) would you use a HashSet to store a collection of values?
When finally clause is executed?
What is java volatile?
What are MalformedURLException and UnknownHost Exceptions and whey they will be thrown?
When do we use synchronized methods in java?
Which collection is ordered in java?
How to find the length and capacity of a string buffer ?