Tuesday, August 31, 2010

Topic: Java Collection Interview Question

Q:   What is the Collections API?
A:   The Collections API is a set of classes and interfaces that support operations on collections of objects.

Q:   What is the List interface?
A:   The List interface provides support for ordered collections of objects.

Q:   What is the Vector class?
A:   The Vector class provides the capability to implement a growable array of objects. 

Java Interview Questions 4

What is a virtual function in C++?

Simply put, the virtual keyword enables a function to be 'virtual' which then gives possibility for that function to be overridden (redefined) in one or more descendant classes. It is a good feature since the specific function to call is determined at run-time. In other words, a virtual function allows derived classes to replace the implementation provided by the base class.