Will there be a performance penalty if you make a method synchronized? If so, can you make any design changes to improve the performance
Performance does take a hit when using synchronization. I think the way to reduce this hit is to synchronize only a block of code that will be accessed by threads and not synchronize the entire method.
There is degradation in performance when you make a method synchronized. Even when a program contains only a single thread running on a single processor, a synchronized method call is still slow...
The Synchronization may be useful in avoiding the deadlock, helpful in maintaining the consistent object state etc,. Only one thread will be accessed at a time by acquiring lock on the synchronized bl...
What do you like most with ant
Memory leaks are caused by writting poor program design where Object reference are long lived and the garbage collector is unable to reclaim those objects..
I guess the best thing about ANT is that it's easier to learn and works cross platform and cross programming language - which is a real bonus.
Explain servlet and JSP life cycle
A Servlet is a Java class which faclitates a web developer to write dynemic web pages. JSP is the presentation componant that used with Servlets to make a page dynamic. Generally a JSP is a HTML docum...
Life cycles are pretty same, as the JSP will be translated into a servlet during the translation phase, the important point to be considered here is if we include another JSP by making use o...
Has there been a time when you were presented a problem and solved it?
BPO Career for BTech Graduates
Describe a time when you had to listen to someone.
How do you approach a problem?
Aptitude Test Preparation Tips
Provide an example of a goal that you successfully attained.
Do you seek advice from others when you have a question?
Importance of an MBA for an entrepreneur
How to handle academic gap while applying for a job?
What do you do when things do not go as planned? Cite an example.
Ask Interview Question?
Have Career Question?
Ask Only Career questions.