Interview Questions

Q:

How to call a constructor in java?

Answer

Constructor chaining is the process of calling one constructor from another constructor with respect to current object.





Within same class: It can be done using this() keyword for constructors in same class


From base class: by using super() keyword to call constructor from the base class.

Report Error

View answer Workspace Report Error Discuss

10 8377
Q:

I want to print "Hello" even before main() is executed. How will you acheive that?

Answer Print the statement inside a static block of code. Static blocks get executed when the class gets loaded into the memory and even before the creation of an object. Hence it will be executed before the main() method. And it will be executed only once.
Report Error

View answer Workspace Report Error Discuss

Subject: Java

6 8368
Q:

To which type of class, We can apply RTTI?

A) Encapsulation B) Polymorphic
C) Derived D) None of these
 
Answer & Explanation Answer: B) Polymorphic

Explanation:

RTTI is available only for classes which are polymorphic, which means they have at least one virtual method.

Report Error

View Answer Report Error Discuss

Filed Under: C++

0 8361
Q:

Explain in your words about Channel of communication, Skipper and Sundry Services.

Answer

Channel of communication : It is a floe of communication within a department.


Skipper : This term is used for the status of a room, which indicates that a guest has left the hotel room without arranging to settle his or her account. 


Sundry Services :These are the extra services, which are provided to the guests. For e.g. message, handling of guests.

Report Error

View answer Workspace Report Error Discuss

Subject: Hospitality

7 8338
Q:

What is the importance of having an emulator within the Android environment?

Answer

The emulator lets developers “play” around an interface that acts as if it were an actual mobile device. They can write and test codes, and even debug. Emulators are a safe place for testing codes especially if it is in the early design phase.

Report Error

View answer Workspace Report Error Discuss

4 8327
Q:

Difference between DDE and OLE?

Answer

DDE (Dynamic Data Exchange) a communication protocol that let applications call each other.


OLE was the first protocol that enabled users and programmers to create compound documents?that is documents that contain data from different applications (for example an Excel worksheet inside a Word document).

Report Error

View answer Workspace Report Error Discuss

6 8324
Q:

Classify and explain the functions performed by trade unions.

Answer

The functions performed by trade unions can be classified into two groups: 


i.) Militant Functions


ii.) Fraternal Functions


 


Militant functions :


These activities include strike, lock outs, gherao etc which means putting up a fight with the management. Hence, they are called militant functions. They are carried out for following purposes: 


a.) Rise in wages


b.) Rise in the status of workers


c.) Protection against injustice


 


Fraternal functions :


These functions are carried out by the trade unions for the welfare of their employees which includes: 


a.) Measures to boost up the workers’ morale


b.) Foster self confidence


c.) Develop sincerity and discipline


d.) Protection to women workers against discrimination

Report Error

View answer Workspace Report Error Discuss

Subject: Law

7 8256
Q:

Can you tell me how your legal organisation/law firm defines success?

Answer

Tips


It would be wise to save this question for the interviewing manager, and not for a peer/technical discussion. Nobody likes a kiss-up, but letting management know that you will communicate openly and honestly with them, always scores big points. The last part of the question can be a good barometer about how easy it will be to become a top performer. You can follow up with a discussion of how you have been successful in your previous jobs.

Report Error

View answer Workspace Report Error Discuss

Subject: Law

6 8213