Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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.)

Show Suggested Answer Hide Answer
Suggested Answer: C, D

Contribute your Thoughts:

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
...

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  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77