100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

All kind of computer program for beginner

Rating
-
Sold
-
Pages
1
Uploaded on
16-07-2022
Written in
2021/2022

All kind of computer program for beginner

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Connected book

Written for

Course

Document information

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

Subjects

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
$7.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
endashaan

Also available in package deal

Get to know the seller

Seller avatar
endashaan Rajarata University Of Sri Lanka
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
4 year
Number of followers
0
Documents
6
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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

Frequently asked questions