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

Can we have more than one package statement in source file ?

793


Can we create our own wrapper class in java?

756


What is string in java with example?

712


What methodology can be employed to locate substrings inside a string?

745


Explain the difference between extends thread vs implements runnable in java?

828


What is the exception hierarchy in java?

741


What is the difference between a factory and abstract factory pattern?

910


What does flagged out mean?

816


How do you compare arrays in java?

719


What is the difference between size and length in java?

750


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

864


What is the type of lambda expression?

746


What is a generic code?

742


What is jrmp?

750


What is sleep method?

828