Wednesday, September 24, 2008

JAVA Interview Questions and Answers -virtual functions in Java

Can you have virtual functions in Java?
Yes, all functions in Java are virtual by default। This is actually a pseudo trick question because the word "virtual" is not part of the naming convention in Java (as it is in C++, C-sharp and VB.NET), so this would be a foreign concept for someone who has only coded in Java. Virtual functions or virtual methods are functions or methods that will be redefined in derived classes.


What does a well-written OO program look like?
A well-written OO program exhibits recurring structures that promote abstraction, flexibility, modularity and elegance.

No comments:

Post a Comment

Thanks to given comments.......

My Blog List