Search Interview Questions
| 3304 questions in repository.|
There are more than 200 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|
|What are different ways to create String Object? Explain.|
|Does garbage collection guarantee that a program will not run out of memory?|
|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 ?|
|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 ?|
|Describe, in general, how java's garbage collector works ?|