can we have virtual functions in java?

Answer Posted / amar

In object-oriented programming, a virtual function or
virtual method is one whose behavior can be overridden
within an inheriting class by a function with the same
signature. irtual functions are abstract methods in java. by
default
all the methods are abstract in interface.

Is This Answer Correct ?    20 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

583


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1535


How do you remove all elements from an arraylist in java?

512


What will be the default values of all the elements of an array defined as an instance variable?

564


What is a flag and how does it work?

515






What is variable argument in java?

566


What interface is extended by awt event listeners?

599


How can you read content from file in java?

601


Can you explain the cs option of java interpreter?

513


What does this () mean in constructor chaining concept?

568


Explain about interthread communication and how it takes place in java?

550


What are the methods available in a class?

591


Can a static class have a constructor java?

554


Outline the major features of java.

571


Is static variable stored in heap?

511