최신 1Z1-803 무료덤프 - Oracle Java SE 7 Programmer I

Given:

What is the result?

정답: D
Given:
public class MainMethod {
void main() {
System.out.println("one");
}
static void main(String args) {
System.out.println("two");
}
public static void main(String[] args) {
System.out.println("three");
}
void mina(Object[] args) {
System.out.println("four");
}
}
What is printed out when the program is excuted?

정답: B
Given the code fragment:
1.ArrayList<Integer> list = new ArrayList<>(1);
2.list.add(1001);
3.list.add(1002);
4.System.out.println(list.get(list.size()));
What is the result?

정답: D
설명: (DumpTOP 회원만 볼 수 있음)
Identify two benefits of using ArrayList over array in software development.

정답: C,D
설명: (DumpTOP 회원만 볼 수 있음)
Which statement will empty the contents of a StringBuilder variable named sb?

정답: B
public class Two {
public static void main(String[] args) {
try {
doStuff();
system.out.println("1");
}
catch {
system.out.println("2");
}}
public static void do Stuff() {
if (Math.random() > 0.5) throw new RunTimeException(); doMoreStuff();
System.out.println("3 ");
}
public static void doMoreStuff() {
System.out.println("4");
}
}
Which two are possible outputs?

정답: C,D
설명: (DumpTOP 회원만 볼 수 있음)
Given: What is the result?

정답: D
Given:
class MarksOutOfBoundsException extends IndexOutOfBoundsException { }
public class GradingProcess {
void verify(int marks) throws IndexOutOfBoundsException {
if (marks > 100) {
throw new MarksOutOfBoundsException();
}
if (marks > 50) {
System.out.print("Pass");
} else {
System.out.print("Fail");
}
}
public static void main(String[] args) {
int marks = Integer.parseInt(args[2]);
try {
new GradingProcess().verify(marks));
} catch(Exception e) {
System.out.print(e.getClass());
}
}
}
And the command line invocation:
Java grading process 89 50 104
What is the result?

정답: C
설명: (DumpTOP 회원만 볼 수 있음)
Given:

Which two are possible outputs?

정답: A,D
설명: (DumpTOP 회원만 볼 수 있음)
Which three statements are true about the structure of a Java class?

정답: D,E,F
설명: (DumpTOP 회원만 볼 수 있음)
View the exhibit:
public class Student {
public String name = "";
public int age = 0;
public String major = "Undeclared";
public boolean fulltime = true;
public void display() {
System.out.println("Name: " + name + " Major: " + major); }
public boolean isFullTime() {
return fulltime;
}
}
Which line of code initializes a student instance?

정답: C
Given: What is the result?

정답: C
Which three are valid types for switch?

정답: B,C,D
설명: (DumpTOP 회원만 볼 수 있음)
Given:
public class Painting {
private String type;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public static void main(String[] args) {
Painting obj1 = new Painting();
Painting obj2 = new Painting();
obj1.setType(null);
obj2.setType("Fresco");
System.out.print(obj1.getType() + " : " + obj2.getType());
}
}
What is the result?

정답: A
Which two are valid instantiations and initializations of a multi dimensional array?

정답: B,E
Given the following code fragment:

What is the result if the integer value is 33?

정답: D
설명: (DumpTOP 회원만 볼 수 있음)

우리와 연락하기

문의할 점이 있으시면 메일을 보내오세요. 12시간이내에 답장드리도록 하고 있습니다.

근무시간: ( UTC+9 ) 9:00-24:00
월요일~토요일

서포트: 바로 연락하기