• What is difference between String, StringBuffer and StringBuilder? When to
use them?
• Why main () in java is declared as public static void main? What if the main
method is declared as private? Can you access a non-static variable in the
static context?
• Which one will you use Statement or PreparedStatement? Or which one to
use when (Statement/PreparedStatement)? Compare PreparedStatement vs
Statement.
• What are the alternatives to Serialization? If Serialization is not used, is it
possible to persist or transfer an object using any other approach?
• Why is a constructor needed in a servlet even if we use the init method?
• What will happen if you put return statement or System.exit () on try or catch
block? Will finally block execute?
• What will happen if we put a key object in a HashMap which is already there?
• How do you ensure that N thread can access N resources without deadlock?
• What is difference between CyclicBarrier and CountDownLatch in Java?
• When Singleton doesn't remain Singleton in Java?
• Why is (Integer) 1 == (Integer) 1 but (Integer) 222! = (Integer) 222 and which
command arguments change this?
• Is it possible for equals () to return false, even if contents of two Objects are
same?
Prognoz Technologies Pvt. Ltd.
S-186 & 184A, Haware Fantasia Business Park, Plot No. 47, Sector 30A, Vashi, Navi Mumbai-400703, India
Tel: 022-27814262 , 8454071212 | E-mail: info@prognoztech.com | Website: www.prognoztech.com
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying this summary from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller endashaan. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy this summary for R149,13. You're not tied to anything after your purchase.