Interview Questions

Q:

What is the purpose of the wait(), notify(), and notifyAll() methods ?

Answer

The wait(), notify(), and notifyAll() methods are used to provide an efficient way for threads to wait for a shared resource. When a thread executes an object's wait() method, it enters the waiting state. It only enters the ready state after another thread invokes the object's notify() or notifyAll() methods..

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1960
Q:

How do you calculate gratuity?

Answer

Gratuity is paid to all such employees after their resignation or retirement.Incase of resignation gratuity is paid to such employees who have completed 5 years of service.


Calculation of gratuity = Basic + DA x (15/26) x Total no. yrs service


15- Half month


26- Excluding 4 sundays

Report Error

View answer Workspace Report Error Discuss

1 1954
Q:

What is a ResultSet ?

Answer

A table of data representing a database result set, which is usually generated by executing a statement that queries the database.


 


ResultSet object maintains a cursor pointing to its current row of data. Initially the cursor is positioned before the first row. The next method moves the cursor to the next row, and because it returns false when there are no more rows in the ResultSet object, it can be used in a while loop to iterate through the result set.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1954
Q:

Assume that your app is running in the foreground but is currently not receiving events. In which sate it would be in?

Answer

An app will be in InActive state if it is running in the foreground but is currently not receiving events. An app stays in InActive state only briefly as it transitions to a different state.

Report Error

View answer Workspace Report Error Discuss

0 1951
Q:

What does Customer Satisfaction mean to you?

Answer

Customer Satisfaction means, dealing with the customer in a proper or positive way. Every individual mindset is  different so their cause and satisfactory leave also changed. So the main challenge of a worker of a call center is to make them understand that they are also concerned about their trouble.

Report Error

View answer Workspace Report Error Discuss

Subject: Call Center

3 1950
Q:

What is ADB in Android ?

Answer

Adb is short for Android Debug Bridge. It allows developers the power to execute remote shell commands. Its basic function is to allow and control communication towards and from the emulator port.

Report Error

View answer Workspace Report Error Discuss

3 1948
Q:

Explain how garbage collection manages the reclamation of unused memory?

Answer

The garbage collector assumes that all objects in the managed heap are garbage. It starts walking the roots and builds a graph of all objects reachable from the roots recursively. It stops when it attempts to add an object to the graph that it previously added. The graph contains the set of all objects that are reachable from the application's roots. Any object/s that is not in the graph is not accessible by the application, and is considered garbage. Collection only occurs when the heap is full. In such a case, each and every garbage object calls the Finalize method and reclaims the unused memory

Report Error

View answer Workspace Report Error Discuss

Subject: .NET
Job Role: Software Architect

0 1946
Q:

What is the difference between SAP memory and ABAP memory?

Answer

sap memory is a global memory whereas abap memory is local memory.

For example, we have four programs in abap memory and assigned some varibles to a particular program in abap memory then those varibles can't be used by anyother program in abap memory i.e., the variables are only for that program and also local to that memory,whereas sap memory can access all the abap memory or else it can perform any kind of modifications.

Report Error

View answer Workspace Report Error Discuss

Subject: ABAP

0 1945