1z1-808 무료 덤프문제 온라인 액세스
시험코드: | 1z1-808 |
시험이름: | Java SE 8 Programmer I |
인증사: | Oracle |
무료 덤프 문항수: | 398 |
업로드 날짜: | 2025-09-05 |
Given the code fragment:
And given the requirements:
- If the value of the qty variable is greater than or equal to 90,
discount = 0.5
- If the value of the qty variable is between 80 and 90, discount = 0.2 Which two code fragments can be independently placed at line n1 to meet the requirements?
Given:
public class FieldInit {
char c;
boolean b;
float f;
void printAll() {
System.out.println("c = " + c);
System.out.println("c = " + b);
System.out.println("c = " + f);
}
public static void main(String[] args) {
FieldInit f = new FieldInit();
f.printAll();
}
}
What is the result?
Given:
public class CheckIt {
public static void main (String[] args) {
if (doCheck()) {
System.out.print("square ");
}
System.out.print("...");
}
public static int doCheck() {
return 0;
}
}