- Interview Questions and Answers for 'Deprecated annotation' | Search Java 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 'Deprecated annotation' - 3 question(s) found - Order By Newest

 Q1. What is the use of Deprecated annotation ?2016-06-23 13:40:01

Ans. Deprecated annotation is for documentation purpose only. It doesn't enforce anything but would mark the method name as crossed to signify that the client should refrain from using it.

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

   Like         Discuss         Correct / Improve     Deprecated annotation


Related Questions

  Difference between == and .equals() ?
  Why is String immutable in Java ?
  Explain the scenerios to choose between String , StringBuilder and StringBuffer ?

or

What is the difference between String , StringBuilder and StringBuffer ?
  What are the difference between composition and inheritance in Java?
  Does garbage collection guarantee that a program will not run out of memory?
  What are different ways to create String Object? Explain.
  Why do we need Inner classes ? Cant we just work with outer classes wherever we implement Inner classes ?
  Why Char array is preferred over String for storing password?
  What do you mean by "Java is a statically typed language" ?
  What is the difference between final, finally and finalize() ?


 Q2. Does Deprecated annotation enforces anything ?2016-06-23 13:40:38

Ans. No. It just marks the method and hence signals the client to refrain from using it.

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

   Like         Discuss         Correct / Improve     Deprecated annotation


Related Questions

  Difference between == and .equals() ?
  Why is String immutable in Java ?
  Explain the scenerios to choose between String , StringBuilder and StringBuffer ?

or

What is the difference between String , StringBuilder and StringBuffer ?
  What are the difference between composition and inheritance in Java?
  Does garbage collection guarantee that a program will not run out of memory?
  What are different ways to create String Object? Explain.
  Why do we need Inner classes ? Cant we just work with outer classes wherever we implement Inner classes ?
  Why Char array is preferred over String for storing password?
  What do you mean by "Java is a statically typed language" ?
  What is the difference between final, finally and finalize() ?


 Q3. If you are supposed to deprecate the method , Will you deprecate the method in the implementation class or will you deprecate the abstract declaration within interface or abstract class ?2016-06-23 13:42:05

Ans. Deprecating the interface / or declaration doesn't make much sense as the implementation is deprecated and not the interface.

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

   Like         Discuss         Correct / Improve     Deprecated annotation


Related Questions

  Difference between == and .equals() ?
  Why is String immutable in Java ?
  Explain the scenerios to choose between String , StringBuilder and StringBuffer ?

or

What is the difference between String , StringBuilder and StringBuffer ?
  What are the difference between composition and inheritance in Java?
  Does garbage collection guarantee that a program will not run out of memory?
  What are different ways to create String Object? Explain.
  Why do we need Inner classes ? Cant we just work with outer classes wherever we implement Inner classes ?
  Why Char array is preferred over String for storing password?
  What do you mean by "Java is a statically typed language" ?
  What is the difference between final, finally and finalize() ?



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: