Technical Interview Questions and Answers :: Virtusa
- Select All
- SQL
- C++
- .NET
- Oracle PLSQL
- Informatica
- WebMethod
- DBMS
- Soft. Engineering
- Data Structure
- Networking
- C
- Operating System
- HR Question in TR
- Java
41 / 221
A pure virtual member function is a member function that the base class forces derived classes to provide. Normally these member functions have no implementation. Pure virtual functions are equated to zero.
class Shape { public: virtual void draw() = 0; };
42 / 221
No Discussion on this question yet!
43 / 221
No Discussion on this question yet!
44 / 221
There are 5 ways to create an object in java.
1. using new keyword
2. using Object class clone() method
3. using deserialization readObject()
45 / 221
Classes are user defined data types and behave like the built-in type of a programming language. The wrapping up of data and functions into a single unit called class.
Objects are the basic run-time entities in an object-oriented system. When a program is executed, the objects interact by sending messages to one another.
46 / 221
arrays store only primitive type values and arraylist store primitive type
47 / 221
No Discussion on this question yet!
48 / 221
No Discussion on this question yet!
49 / 221
A collection is an object that can hold references to other objects. The collection interfaces declare the operations that can be performed on each type ofcollection. The classes and interfaces of thecollections framework are in package java.util.
50 / 221
An exception (or exceptional event) is a problem that arises during the execution of a program. When an Exception occurs the normal flow of the program is disrupted and the program/Application terminates abnormally.