Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
PL
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Cisco
Amazon
Google
CompTIA
SAP
VMware
Oracle
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ISC2
ServiceNow
Dell EMC
CheckPoint
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Oracle Discussions
Exam 1Z0-819 Topic 7 Question 92 Discussion
Oracle Exam 1Z0-819 Topic 7 Question 92 Discussion
Actual exam question for Oracle's 1Z0-819 exam
Question #: 92
Topic #: 7
[All 1Z0-819 Questions]
Given:
Which make class thread safe?
A
Make foo and sets synchronized.
B
Make setB synchronized.
C
Make foo synchronized.
D
Class A is thread safe.
E
Make a synchronized.
Show Suggested Answer
Hide Answer
Suggested Answer:
E
by
Lizbeth
at
Sep 18, 2024, 10:54 AM
Limited Time Offer
25%
Off
Get Premium 1Z0-819 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Osvaldo
2 months ago
I'm going with C. Synchronizing the 'foo' method seems like the most logical way to make the entire class thread-safe.
upvoted
0
times
Nana
1 months ago
User3: Yeah, synchronizing foo seems like the best option here.
upvoted
0
times
...
Amina
1 months ago
User2: I agree, that would make the class thread-safe.
upvoted
0
times
...
Hoa
1 months ago
User1: I think making foo synchronized is the way to go.
upvoted
0
times
...
...
Vincenza
2 months ago
I'm not sure, but I think making setB synchronized could also make the class thread safe.
upvoted
0
times
...
Staci
2 months ago
I agree with Novella, because both foo and sets need to be synchronized to make the class thread safe.
upvoted
0
times
...
Clay
2 months ago
Haha, I bet the correct answer involves the word 'synchronized' in some way. That's the go-to solution for threading issues!
upvoted
0
times
...
Latonia
3 months ago
D can't be right, since the question says 'which make class thread safe?' not 'which class is thread safe?'
upvoted
0
times
Nickie
2 months ago
C) Make foo synchronized.
upvoted
0
times
...
Tashia
2 months ago
B) Make setB synchronized.
upvoted
0
times
...
Rachael
2 months ago
A) Make foo and sets synchronized.
upvoted
0
times
...
...
Novella
3 months ago
I think the answer is A) Make foo and sets synchronized.
upvoted
0
times
...
Colton
3 months ago
I think the answer is C. Making the 'foo' method synchronized will make the entire class thread-safe.
upvoted
0
times
Heidy
2 months ago
Got it, thanks for clarifying.
upvoted
0
times
...
Rolf
2 months ago
I think that's not necessary, 'foo' is the critical section.
upvoted
0
times
...
Ceola
2 months ago
But what about making setB synchronized?
upvoted
0
times
...
Alease
2 months ago
Agreed, making 'foo' synchronized will ensure thread safety.
upvoted
0
times
...
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
az-700
pass4success
az-104
200-301
200-201
cissp
350-401
350-201
350-501
350-601
350-801
350-901
az-720
az-305
pl-300
Osvaldo
2 months agoNana
1 months agoAmina
1 months agoHoa
1 months agoVincenza
2 months agoStaci
2 months agoClay
2 months agoLatonia
3 months agoNickie
2 months agoTashia
2 months agoRachael
2 months agoNovella
3 months agoColton
3 months agoHeidy
2 months agoRolf
2 months agoCeola
2 months agoAlease
2 months ago