Java - Interview Questions and Answers for 'Bmc software' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Java Interview Questions


 2098 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Label / Company      Label / Company / Text

   



BMC Software


   




Interview Questions and Answers for 'Bmc software' - 2 question(s) found - Order By Newest

 Q1. What are the different uses of Interfaces in Java ?Core Java2016-07-20 15:14:43

Ans. 1. Regulation / Enforcement / Policy / Contract , It's primary use

2. Use as a collection of utility methods(since java 8 through default methods)

3. Collecting constants together, As Interface are lighter, it makes sense to use them instead of classes if no getters and setters required.

4. Creation of Custom Annotations

5. Special services like marker interface

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

   Like      Discuss      Correct / Improve     interfaces   uses of interfaces in java     BMC Software


Related Questions

  What are Marker Interfaces ? Name few Java marker interfaces ?
  Differences between abstract class and interface ?
  Which of the following doesn't extend Collection interface ?
  What is an API ( Application Programming Interface ) ?
  Can we declare interface methods as private ?
  What is a nested interface ?
  What is an Externalizable interface ?
  Difference between serializable and externalizable interface ?
  What are the design considerations while making a choice between using interface and abstract class ?


 Q2. What is the difference between constructor and instance initialization blocks ?Core Java2016-07-19 11:25:30

Ans. Constructor has the same name as class name whereas instance initialization block just have a body without any name or visibility type.

instance initialization blocks are useful if we want to have some code run regardless of which constructor is used or if we want to do some instance initialization for anonymous classes.

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

   Like      Discuss      Correct / Improve     instance initialization blocks  constructor  constructor vs instance initialization blocks     BMC Software  Ericsson

Try 1 Question(s) Test


Related Questions

  What are the common uses of "this" keyword in java ?
  Can we use both "this()" and "super()" in a constructor ?
  Why every object constructor automatically call super() in Object before its own constructors?
  Are constructors inherited? Can a subclass call the parent's class constructor? When?
  Difference between object instantiation and construction ?
  Difference Between this() and super() ?
  Which of the following is false about Constructors ?
 What are constructors and Destructors in Java ?
  Does Constructor creates the object ?
  Can constructors be synchronized in Java ?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

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:
         

X Close this

1 person from are looking for questions for 'Bmc software'. Connect with them to better prepare for your interview.Click here and post a message

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: