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

 Q1. 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
Core Java
Ans. abstract and final

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

   Like         Discuss         Correct / Improve     java   java keywords     Asked in 2 Companies      basic


Related Questions

  How does volatile affect code optimization by compiler?
  What is Volatile keyword used for ?
  Can we access instance variables within static methods ?
  What is the use of Transient Keyword ?
  What is a Final Method ?
  Can we override static methods ? Why ?
  What is "super" used for ?
  What is "this" keyword used for ?
  Which of the following keyword is not permitted for outer class ?


 Q2. What is Generalization and Specialization in terms of casting ?Core Java
Ans. Generalization or UpCasting is a phenomenon where a sub class is prompted to a super class, and hence becomes more general. Generalization needs widening or up-casting. Specialization or DownCasting is a phenomenon where a super class is narrowed down to a sub class. Specialization needs narrowing or down-casting.

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

   Like         Discuss         Correct / Improve     java   data types   casting  type casting   up casting  type casting   downcasting  type casting   generalization   specialization     Asked in 2 Companies


Related Questions



 Q3. Why can't we declare a class abstract as well as final ?Core Java
Ans. Abstract means that the class is only meant to be subclassed whereas final means that it cannot be subclassed so both concepts - abstract and final are actually mutually exclusive and hence not permitted together.

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

   Like         Discuss         Correct / Improve     abstract   final   java keywords     Asked in 1 Companies


Related Questions

  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
  How does volatile affect code optimization by compiler?
  What is Volatile keyword used for ?
  Can we access instance variables within static methods ?
  What is the use of Transient Keyword ?
  What is a Final Method ?
  Can we override static methods ? Why ?
  What is "super" used for ?
  What is "this" keyword used for ?
  Which of the following keyword is not permitted for outer class ?



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: