exam questions

Exam 1z0-808 All Questions

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

Exam 1z0-808 topic 1 question 131 discussion

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

Given:

What is the result?

  • A. 10 Hello Hello 11
  • B. 10 Hello Hello 121
  • C. 100 Hello 121
  • D. 100 Hello Hello 121
  • E. 10 Hello 11
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

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
WeeChungus
2 weeks, 3 days ago
Selected Answer: E
Answer is E.
upvoted 1 times
...
akbiyik
6 months, 2 weeks ago
Selected Answer: E
Answer is E.
upvoted 1 times
...
carloswork
7 months, 1 week ago
Selected Answer: E
Answer is E. To test: public class Test { int a1; public static void doProduct(int a) { a = a * a; } public static void doString(String s) { s.concat(" " + s); } public static void main (String [] args) { Test item = new Test(); item.a1 = 11; String sb = "Hello"; Integer i = 10; doProduct(i); doString(sb); doProduct(item.a1); System.out.println(i + " " + sb + " " + item.a1); } }
upvoted 1 times
...
iSnover
8 months, 1 week ago
Selected Answer: E
The answer is the letter E, the values ​​were not changed because in the lines where the methods were started, they were not registered in any variable since "sb" and "i" are not objects and there is no operation with "a1 " , it's just an instance variable of the Test class and is not used by any methods.
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