Interview Questions

Q:

Why do we need wrapper classes in Java?

Answer

Dealing with primitives as objects is easier at times. Most of the objects collection store objects and not primitive types. Many utility methods are provided by wrapper classes. To get these advantages we need to use wrapper classes. As they are objects, they can be stored in any of the collection and pass this collection as parameters to the methods.


 


Features of the Java wrapper Classes:


- Wrapper classes convert numeric strings into numeric values.


- The way to store primitive data in an object.


- The valueOf() method is available in all wrapper classes except Character


- All wrapper classes have typeValue() method. This method returns the value of the object as its primitive type.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 3295
Q:

Who is a more senior creditor, a bondholder or stockholder?

Answer

According to the classification, the claim of bond holder should be accounted first. After fulfilling all the claims of bond holder company should look after the stock holder.

Report Error

View answer Workspace Report Error Discuss

Subject: Finance

0 3291
Q:

What is an error-first callback ?

Answer

Error-first callbacks are used to pass errors and data as well. You have to pass the error as the first parameter, and it has to be checked to see if something went wrong. Additional arguments are used to pass data.


 


fs.readFile(filePath, function(err, data) {
if (err) {
// handle the error, the return is important here
// so execution stops here
return console.log(err)
}
// use the data object
console.log(data)
})

Report Error

View answer Workspace Report Error Discuss

2 3280
Q:

What do you mean by ‘cheque endorsing’?

Answer

‘Endorsing cheque’ ensures that the cheque get deposited into your account only. It minimizes the risk of theft. Normally, in endorsing cheque, the cashier will ask you to sign at the back of the cheque. The signature should match the payee. The image over here shows the endorsed cheque.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Bank Interview

0 3280
Q:

All of these are exemptions from local real property taxes EXCEPT :

A) Low-income homeowner's exemption B) Homeowner's exemption
C) Veteran's exemption D) Senior citizen's tax exemption
 
Answer & Explanation Answer: A) Low-income homeowner's exemption

Explanation:

Under state law limited exemptions from local real property taxes for individuals who qualify are senior citizens(blind and disabled persons), who may defer their taxes; Veterans, who receive $4000 off assessed value; and homeowners, who receive $7000 off assessed value.

Report Error

View Answer Report Error Discuss

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

1 3278
Q:

So if md5( ) generates the most secure hash, why would you ever use the less secure crc32( ) and sha1( )?

Answer Crypto usage in PHP is simple, but that doesn’t mean it’s free. First off, depending on the data that you’re encrypting, you might have reasons to store a 32-bit value in the database instead of the 160-bit value to save on space. Second, the more secure the crypto is, the longer is the computation time to deliver the hash value. A high volume site might be significantly slowed down, if frequent md5() generation is required.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 3273
Q:

When do you override hashcode and equals() ?

Answer

HashCode method return int value. So the Hash value is the int value returned by the hash function .


If you want to do equality check or want to use your object as key in HashMap, we must override hashcode and equals() method.

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: Analyst , IT Trainer

5 3265
Q:

What is an exit and entry criteria in a Test Plan ?

Answer

Generally,test plan document is prepared by TL&QM.


Entry &Exit criteria is part of test plan document


 


Entry criteria is 


- Testing environment established


- Test cases prepared


- Build received from development team


 


Exit criteria is


- All modules are covered or not


- All test cases are completely executed or not


- All bugs resolved or not


 

Report Error

View answer Workspace Report Error Discuss

Subject: QA Testing

0 3260