Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer
- 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-808 Topic 3 Question 114 Discussion
Oracle Exam 1Z0-808 Topic 3 Question 114 Discussion
Actual exam question for Oracle's 1Z0-808 exam
Question #: 114
Topic #: 3
[All 1Z0-808 Questions]
Which two initialization statements are valid? (Choose two.)
A
Boolean available = ''TRUE'':
B
String tmpAuthor = author, author =''Mc Donald'';
C
Double price = 200D;
D
Integer pages = 20;
Show Suggested Answer
Hide Answer
Suggested Answer:
C, D
by
Junita
at
Mar 21, 2025, 05:41 AM
Limited Time Offer
25%
Off
Get Premium 1Z0-808 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Gracia
2 months ago
Ha! 'Mc Donald' - that's a pretty funny book title. I'd go with A and D as the valid ones.
upvoted
0
times
Fletcher
1 months ago
Definitely, A and D are the correct choices.
upvoted
0
times
...
Fletcher
1 months ago
I agree, A and D are the valid ones.
upvoted
0
times
...
...
Cherelle
2 months ago
I agree with Evan, option A is incorrect. Option C and D are the valid ones.
upvoted
0
times
...
Evan
2 months ago
But initializing a Boolean with ''TRUE'' is not valid in Java.
upvoted
0
times
...
Desmond
2 months ago
Hmm, I think B is not valid because you can't assign a new value to 'author' in the same statement. And who would name a book 'Mc Donald'?
upvoted
0
times
Shakira
14 days ago
D) Integer pages = 20;: Integer variables can be initialized with a value like 20.
upvoted
0
times
...
Lorean
18 days ago
C) Double price = 200D;: Yes, initializing a double variable with a value is valid.
upvoted
0
times
...
Dominga
19 days ago
B) String tmpAuthor = author, author = 'Mc Donald';: You're right, it's not valid to assign a new value to 'author' in the same statement.
upvoted
0
times
...
Long
22 days ago
A) Boolean available = 'TRUE': That's correct, boolean values can be assigned using 'TRUE' or 'FALSE'.
upvoted
0
times
...
Tammi
24 days ago
D) Integer pages = 20;: Integer variables can be initialized with numerical values like 20.
upvoted
0
times
...
Carissa
2 months ago
C) Double price = 200D;: Yes, initializing a double variable with a value of 200D is valid.
upvoted
0
times
...
Vesta
2 months ago
B) String tmpAuthor = author, author ='Mc Donald';: You're right, you can't assign a new value to 'author' in the same statement.
upvoted
0
times
...
Barb
2 months ago
A) Boolean available = 'TRUE': That's correct, boolean values can be assigned using 'TRUE' or 'FALSE'.
upvoted
0
times
...
...
Stephen
2 months ago
I disagree, I believe option A and D are the correct ones.
upvoted
0
times
...
Joseph
2 months ago
D is definitely valid, but I'm not sure about the rest. The syntax for Booleans and Strings looks a bit off to me.
upvoted
0
times
...
Lashandra
3 months ago
I'm pretty sure A and C are valid. The Boolean should be 'true' without quotes, and the Double should have the 'D' suffix.
upvoted
0
times
Whitney
2 months ago
That's correct. The Boolean should not have quotes and the Double needs the 'D' suffix.
upvoted
0
times
...
Teresita
2 months ago
Yes, A should be Boolean available = true and C should be Double price = 200D.
upvoted
0
times
...
Aleisha
2 months ago
I think A and C are valid.
upvoted
0
times
...
...
Evan
3 months ago
I think option C and D are valid.
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
Gracia
2 months agoFletcher
1 months agoFletcher
1 months agoCherelle
2 months agoEvan
2 months agoDesmond
2 months agoShakira
14 days agoLorean
18 days agoDominga
19 days agoLong
22 days agoTammi
24 days agoCarissa
2 months agoVesta
2 months agoBarb
2 months agoStephen
2 months agoJoseph
2 months agoLashandra
3 months agoWhitney
2 months agoTeresita
2 months agoAleisha
2 months agoEvan
3 months ago