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

Almost sure to be asked in every company using any Dependency Injection framework ( Spring, Guice etc )
  Q1. What is Dependency Injection or IOC ( Inversion of Control ) ?Design
Ans. It is a Design Pattern that facilitates loose coupling by sending the dependency information ( object references of dependent object ) while building the state of the object. Objects are designed in a manner where they receive instances of the objects from other pieces of code, instead of constructing them internally and hence provide better flexibility.

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

   Like         Discuss         Correct / Improve     design patterns   ioc ( Inversion of Control )  dependency injection     Asked in 83 Companies      intermediate        frequent


Related Questions

 What are the benefits of Dependency Injection or IOC ?
 What are different types of dependency injections ?
  Name few Dependency Injection frameworks ?
 Why do we need polymorphism in Java ?
  What are the various Auto Wiring types in Spring ?
  What is the difference betweeen @Inject and @Autowired ?
 Which of the following Java features facilitates Dependency Injection - Inheritance or Composition ?
 What are the different ways in which dependency injection can be done using Spring Framework ?
 Difference between constructor and setter injection ?


Frequently asked to fresh graduates.
 Q2. What is the difference between yield() and sleep()?Operating System
Ans. When a object invokes yield() it returns to ready state. But when an object invokes sleep() method enters to not ready state.

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

   Like         Discuss         Correct / Improve     java   threads   multi threading   yield   sleep   scheduling   operating system     Asked in 4 Companies      basic        frequent


Related Questions

  Which keyword is used to provide explicit access of a code block to single thread ?

a. Transient
b. Final
c. Explicit
d. Synchronized
  Can constructors be synchronized in Java ?
  Explain multithreading in Java ?
  What is a Deadlock ?
  Why Struts 1 Classes are not Thread Safe whereas Struts 2 classes are thread safe ?
  Explain Thread States ?
  Why do we need Thread class even in case we execute thread using runnable interface ?
  What is the difference between time slicing and preemptive scheduling ?
  Difference between Process and Thread ?
  What is race condition ?


 Q3. What is the use of constructors in Java ?Core Java
Ans. Constructors are used to initialize the state of an object. If there are no constructor , objects won't have any initialized state and hence it's elements may contain garbage values. If the memory were used as is, the behavior of the object would also be unpredictable.

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

   Like         Discuss         Correct / Improve     constructor     Asked in 5 Companies


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?
  Does Constructor creates the object ?
  Can constructors be synchronized in Java ?
 What are constructors and Destructors in Java ?
  Are constructors inherited? Can a subclass call the parent's class constructor? When?
  Difference between object instantiation and construction ?
  How can we create objects if we make the constructor private ?
  Difference Between this() and super() ?



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: