can we have virtual functions in java?

Answers were Sorted based on User's Feedback



can we have virtual functions in java?..

Answer / jana

Virtual function means it doesnot contain any body.In C++
we have virtual functions.

In java also we have virtual functions.abstract methods is
nothing but virtual functions.

Jana

Is This Answer Correct ?    4 Yes 18 No

Post New Answer

More Core Java Interview Questions

Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time?

3 Answers   Aricent,


Explain an algorithm to find depth of a binary tree.

0 Answers   Akamai Technologies,


When we serialize an object does the serialization mechanism saves its references too?

0 Answers  


Difference between string s= new string (); and string s = "abv";?

0 Answers   Cap Gemini,


Who developed JScript language?

3 Answers  


Write a program to print fibonacci series

0 Answers  


What is the difference between JDK and JVM?

0 Answers  


Explain about version control?

0 Answers  


what is the use of clone() in real time scenario?

2 Answers   Quinnox,


what is use of functional interface in java 8?

0 Answers  


What is the char data type?

0 Answers  


what is auto boxing

3 Answers   UHG,


Categories