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|
|Why Char array is preferred over String for storing password?|
|Does garbage collection guarantee that a program will not run out of memory?|
|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 ?|
|Describe what happens when an object is created in Java ?|
|What is session tracking and how do you track a user session in servlets?|
|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 ?|