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

what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

1820


What does I ++ mean?

711


Can we pass a primitive type by reference in java? How

615


How do weakhashmap works?

716


How do you bind variables?

642






What is the purpose of the System class?

671


How to disable caching on back button of the browser?

609


How do you escape a string?

602


Why does java not support pointers?

657


What advantage do java's layout managers provide over traditional windowing systems?

633


Why for each loop is used?

609


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

2329


What is boolean keyword in java?

726


What is a functional interface?

648


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

657