exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 82 discussion

Actual exam question from Oracle's 1z0-808
Question #: 82
Topic #: 1
[All 1z0-808 Questions]

Given:

What is the result?

  • A. a, e i, i
  • B. a, e o, o
  • C. e, e i, i
  • D. a, a o, o
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DarGrin
3 months, 1 week ago
Selected Answer: A
aeii is correct
upvoted 1 times
...
Vicky_65
9 months, 2 weeks ago
Selected Answer: A
A is correct.Because for obj2 is obj1.So,if we assign i to obj2 .var it will change obj1 also.
upvoted 1 times
...
odzio33
11 months ago
Selected Answer: A
public class Vowel { private char var; public static void main (String[] args){ char var1= 'a'; char var2 = var1; var2 = 'e'; Vowel obj1 = new Vowel(); Vowel obj2 = obj1; obj1.var = 'o'; obj2.var = 'i'; System.out.println(var1 +", " +var2); System.out.print(obj1.var +", " + obj2.var); } } a, e i, i
upvoted 1 times
...
iSnover
1 year, 3 months ago
Selected Answer: A
Answer is A and correct, because the obj2 is a same object of obj1 (Vowel obj2 = Vowel obj1), then when change obj2.var to 'i' changes too obj1.var to 'i'. Then print "a, e, i, i".
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago