1Z0-850 무료 덤프문제 온라인 액세스
| 시험코드: | 1Z0-850 |
| 시험이름: | Java Standard Edition 5 and 6, Certified Associate Exam |
| 인증사: | Oracle |
| 무료 덤프 문항수: | 242 |
| 업로드 날짜: | 2025-10-13 |
Given:
1 . class Test {
2 . public static void main(String args[]) {
3 . String str = "Hello!";
4 . String str2 = "Bye!";
5 . str += str2;
6 . str -= str2;
7 .
8 . if ( str == str2 ) {
9 . System.out.println("str = str2");
1 0. } else {
1 1. System.out.println("str != str2");
1 2. }
1 3. }
1 4. }
What is the result?
Given:
1 . public class Boat{
2 . // insert code here
3 . public void setGas(int v){
4 . gas = v;
5 . }
6 . }
Which, inserted at line 2, is valid and demonstrates encapsulation?