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.
|Interview Questions and Answers
|Ans. We should use singleton scope for beans when they are stateless and prototype when they are stateful.
|Help us improve. Please let us know the company, where you were asked this question :
|Like Discuss Correct / Improve  spring   bean scope   general electric   ge  singleton
|Does garbage collection guarantee that a program will not run out of memory?
|Why Char array is preferred over String for storing password?
|What are different ways to create String Object? Explain.
|What do you mean by "Java is a statically typed language" ?
|What are the benefits of JSON over XML ?
|Describe, in general, how java's garbage collector works ?
|What are the advantages and disadvantages of static variables and static methods ?
|What are concepts introduced with Java 5 ?
|Describe what happens when an object is created in Java ?
|What is session tracking and how do you track a user session in servlets?