• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 1 pages
Class notes

All kind of computer program for beginner

Document preview thumbnail
Preview 1 out of 1 pages

All kind of computer program for beginner

Content preview

Prognoz Technologies Pvt. Ltd.


Java Interview Questions (Typical)

• 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: | Website: www.prognoztech.com

Connected book
 image
Mark Lutz Learning Python
Publisher: 2013 ISBN: 9781449355692 Edition: Unknown

Document information

Uploaded on
July 16, 2022
Number of pages
1
Written in
2021/2022
Type
Class notes
Professor(s)
Naseem
Contains
All classes
$8.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
6
Last sold
-




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions