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 4 Question 109 Discussion
Oracle Exam 1Z0-808 Topic 4 Question 109 Discussion
Actual exam question for Oracle's 1Z0-808 exam
Question #: 109
Topic #: 4
[All 1Z0-808 Questions]
Given the code fragment:
What is the result?
A
1:2:3:4:5:
B
1:2:3:
C
Compilation fails.
D
An ArrayOutOfBoundsException is thrown at runtime.
Show Suggested Answer
Hide Answer
Suggested Answer:
B
by
Cristina
at
Dec 05, 2024, 09:06 AM
Limited Time Offer
25%
Off
Get Premium 1Z0-808 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Nana
2 months ago
D is the way to go. Those void methods are really tripping up the compiler. Maybe the dev who wrote this code needs to brush up on their Java basics.
upvoted
0
times
Vivienne
9 days ago
Definitely seems like the developer needs to review their Java basics.
upvoted
0
times
...
Vivienne
23 days ago
Yeah, it looks like the compiler is having trouble with them.
upvoted
0
times
...
Vivienne
1 months ago
I agree, those void methods can be tricky.
upvoted
0
times
...
...
Adelle
2 months ago
Haha, this question is a real head-scratcher! I'm going with C just to see what happens. 'Expect the unexpected', that's my motto!
upvoted
0
times
Reed
1 months ago
User2: I'm going with D, let's find out.
upvoted
0
times
...
Kasandra
1 months ago
User1: I think it's C too, let's see if we're right.
upvoted
0
times
...
...
Sage
2 months ago
I think it's B. Line 9 has an error because you can't assign a value to a final variable.
upvoted
0
times
...
Minna
2 months ago
Can you explain why you think it prints 1?
upvoted
0
times
...
Shawnda
2 months ago
The correct answer is D. The code has a compile error at lines 12 and 15 because you cannot have a void method return a value.
upvoted
0
times
Halina
25 days ago
The correct answer is C) It prints : 1
upvoted
0
times
...
Junita
1 months ago
I'm pretty sure it's D) It results in a compile time error at lines at lines 12 and 15.
upvoted
0
times
...
Sherman
1 months ago
No, I believe it's B) It results in a compile time error at line 9.
upvoted
0
times
...
Berry
2 months ago
I think the answer is A) It results in a compile time error at line 18.
upvoted
0
times
...
...
Hermila
2 months ago
I disagree, I believe the answer is C) It prints : 1
upvoted
0
times
...
Minna
2 months ago
I think the answer is A) It results in a compile time error at line 18.
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
Nana
2 months agoVivienne
9 days agoVivienne
23 days agoVivienne
1 months agoAdelle
2 months agoReed
1 months agoKasandra
1 months agoSage
2 months agoMinna
2 months agoShawnda
2 months agoHalina
25 days agoJunita
1 months agoSherman
1 months agoBerry
2 months agoHermila
2 months agoMinna
2 months ago