최신 1Z1-803 무료덤프 - Oracle Java SE 7 Programmer I
Which three are valid types for switch?
정답: B,C,D
설명: (DumpTOP 회원만 볼 수 있음)
Given the following four Java file definitions:
// Foo.java
package facades;
public interface Foo { }
// Boo.java
package facades;
public interface Boo extends Foo { }
// Woofy.java
package org.domain
// line n1
public class Woofy implements Boo, Foo { }
// Test.java
package.org;
public class Test {
public static void main(String[] args) {
Foo obj=new Woofy();
Which set modifications enable the code to compile and run?
// Foo.java
package facades;
public interface Foo { }
// Boo.java
package facades;
public interface Boo extends Foo { }
// Woofy.java
package org.domain
// line n1
public class Woofy implements Boo, Foo { }
// Test.java
package.org;
public class Test {
public static void main(String[] args) {
Foo obj=new Woofy();
Which set modifications enable the code to compile and run?
정답: B
Given a java source file:
What changes will make this code compile? (Select Two)
What changes will make this code compile? (Select Two)
정답: C,D
설명: (DumpTOP 회원만 볼 수 있음)
Which three statements are benefits of encapsulation?
정답: A,C,F
Given:
What code should be inserted?
What code should be inserted?
정답: C
설명: (DumpTOP 회원만 볼 수 있음)
Given the code fragment: What could expression1 and expression2 be, respectively, in order to produce output -8, 16?
정답: A
Give: What is the result?
정답: E
Given: What is the result?
정답: C
Given: What is the result?
정답: E
Give:
What value should replace kk in line x to cause jj = 5 to be output?
What value should replace kk in line x to cause jj = 5 to be output?
정답: D
설명: (DumpTOP 회원만 볼 수 있음)
Given the code format:
Which code fragment must be inserted at line 6 to enable the code to compile?
Which code fragment must be inserted at line 6 to enable the code to compile?
정답: B
View the exhibit.
Given the code fragment:
Which change enables the code to print the following?
James age: 20 Williams age: 32
Given the code fragment:
Which change enables the code to print the following?
James age: 20 Williams age: 32
정답: B
Given:
interface Pet { }
class Dog implements Pet { }
public class Beagle extends Dog{ }
Which three are valid?
interface Pet { }
class Dog implements Pet { }
public class Beagle extends Dog{ }
Which three are valid?
정답: A,D,F
설명: (DumpTOP 회원만 볼 수 있음)
Given:
Which code fragment, when inserted at line 7, enables the code print true?
Which code fragment, when inserted at line 7, enables the code print true?
정답: A
Given a code fragment: What is the result?
정답: A
Given:
public class DoBreak1 {
public static void main(String[] args) {
String[] table = {"aa", "bb", "cc", "dd"};
for (String ss: table) {
if ( "bb".equals(ss)) {
continue;
}
System.out.println(ss);
if ( "cc".equals(ss)) {
break;
}
}
} }
What is the result?
public class DoBreak1 {
public static void main(String[] args) {
String[] table = {"aa", "bb", "cc", "dd"};
for (String ss: table) {
if ( "bb".equals(ss)) {
continue;
}
System.out.println(ss);
if ( "cc".equals(ss)) {
break;
}
}
} }
What is the result?
정답: E
Given the code fragment:
int a = 0; a++;
System.out.printIn(a++);
System.out.printIn(a);
What is the result?
int a = 0; a++;
System.out.printIn(a++);
System.out.printIn(a);
What is the result?
정답: C
설명: (DumpTOP 회원만 볼 수 있음)