Interview Questions

Q:

How do you decide when to use HashMap and when to use TreeMap ?

Answer

For inserting, deleting, and locating elements in a Map, the HashMap offers the best alternative. If, however, you need to traverse the keys in a sorted order, then TreeMap is your better alternative. Depending upon the size of your collection, it may be faster to add elements to a HashMap, then convert the map to a TreeMap for sorted key traversal.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Java

1 2040
Q:

What are wrapped classes ?

Answer

Wrapped classes are classes that allow primitive types to be accessed as objects.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2040
Q:

What is Constructor?

Answer

Constructor is not a special method.


Constructor is block of code that is executed automatically whenever object of the class is created.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2039
Q:

What is the use of overloading ? or why overloading?

Answer

By using overloading we can add new functionality to the sub class.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2038
Q:

Video advertising on YouTube lets you

A) use pay-per-report analytics and pay for click-through only B) use pay-per-report analytics and pay a single monthly fee
C) use free video analytics D) pay a single monthly fee
 
Answer & Explanation Answer: C) use free video analytics

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Advertising and Media

5 2037
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 2037
Q:

In which of the following cases will total revenue increase?

A) Price rises and demand is inelastic B) Price falls and supply is inelastic
C) Price rises and demand is elastic D) Price falls and demand is inelastic
 
Answer & Explanation Answer: A) Price rises and demand is inelastic

Explanation:

In the case of, "Price rises and demand is inelastic", the total revenue increases.

Report Error

View Answer Report Error Discuss

Filed Under: Bank Interview
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2036
Q:

Cheque deposited but not cleared means

Answer

A Bank Reconciliation Statement is a statement prepared periodically by a customer to explain the divergence (difference) between the bank balance as per cash book and the bank balance as per Pass Book. It clearly shows the two differing balances and the outstanding items which causes the balances to disagree.


The objective of preparing such a statement is to know the causes of differences between the two balances and pass necessary correcting or adjusting entries in the books of the firm. But it is to be noted that some differences are automatically adjusted. For example - A cheque that has been sent for collection, but not yet collected, causes a difference between the balance as shown by the pass book and the balance as shown by the cash book, but no adjusting entry is required in the cash book for such a difference because, the bank will credit the firm’s account as soon as the cheque is collected.

Report Error

View answer Workspace Report Error Discuss

Subject: Finance Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2035