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.
|Java - 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?|
|What are different ways to create String Object? Explain.|
|Why Char array is preferred over String for storing password?|
|What do you mean by "Java is a statically typed language" ?|
|What are the benefits of JSON over XML ?|
|Can you provide some implementation of a Dictionary having large number of words ?|
|What are the advantages and disadvantages of static variables and static methods ?|
|Describe what happens when an object is created in Java ?|
|Describe, in general, how java's garbage collector works ?|
|What is session tracking and how do you track a user session in servlets?|