Interview Questions and Answers for 'Target' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers for 'Target' - 3 question(s) found - Order By Newest

Very frequently asked. Favorite question in Walk in Drive of many Indian service companies. Frequently asked in HCL Technologies, TCS and Accenture.
  Q1. What is the difference between final, finally and finalize() ?Core Java
Ans. final - constant variable, objects cannot be de-referenced, restricting method overriding, restricting class sub classing.

finally - handles exception. The finally block is optional and provides a mechanism to clean up regardless of what happens within the try block. Use the finally block to close files or to release other system resources like database connections, statements etc.

finalize() - method helps in garbage collection. A method that is invoked before an object is discarded by the garbage collector, allowing it to clean up its state.

  Sample Code for final

  Sample Code for finally

  Sample Code for finalize

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   oops   final   finally   finalize   final vs finally vs finalize     Asked in 61 Companies      basic        frequent

Try 4 Question(s) Test


Related Questions

  Difference between final and effectively final ? Why is effectively final even required ?
  Which of the following combination of keywords is illegal in Java ?

a. static and transient
b. transient and final
c. static and synchronized
d. abstract and final
  What is a final method ?
  Which keyword is used to provide explicit access of a code block to single thread ?

a. Transient
b. Final
c. Explicit
d. Synchronized
  Enums cannot be declared ..
  What is a Final Variable ?
  Should we override finalize method ?
  Will the static block be executed in the following code ? Why ?
  Can we override compareTo method for Enumerations ?


Frequently asked Generic Question.
  Q2. Why do you want to work for our company ?General
Ans. [Open Ended Answer]

Usually answered stating your keen interest in the role offered and challenges and opportunities the role offers.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 42 Companies        frequent


Related Questions

  Describe, in general, how java's garbage collector works ?
  What is a ConcurrentHashMap ?
  What is Generalization and Specialization in terms of casting ?
 Which java frameworks have you used ?
  What the Bean scopes provided by Spring ?
  What are the various Auto Wiring types in Spring ?
  When should we use prototype scope and singleton scope for beans ?
 When do we generally get this database error - integrity constraint violated - parent key not found ?
 Write a program for Coin Changer application ?
 When do we generally get the database error - Unique Constraint Violated ?


 Q3. What is the use case for Geo Targeting / Price Class within AWS CloudFront ?Amazon Web Services (AWS)
Ans. Saving cost by optimizing content retrieval or upload in certain Geographies.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws cloudfront  amazon cloudfront  aws cloudfront  amazon cloudfront geo targeting



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: