최신Oracle Java SE 8 Programmer I - 1z1-808무료샘플문제
Given the code fragment:

What is the result?
Given:

Given:

What is the result?
Which statement will emoty the contents of a StringBuilder variable named sb?
Given:

What is the result?
Given:
package p1;
public interface DoInterface {
void method1(int n1); // line n1
}
package p3;
import p1.DoInterface;
public class DoClass implements DoInterface {
public DoClass(int p1) { }
public void method1(int p1) { } // line n2
private void method2(int p1) { } // line n3
}
public class Test {
public static void main(String[] args) {
DoInterface doi= new DoClass(100); // line n4
doi.method1(100);
doi.method2(100);
}
}
Which change will enable the code to compile?
Given:

What is the output?
Given:
1. public class Simple {
2. public float price;
3. public static void main (String [] args) {
4. Simple price = new Simple();
5. price = 4;
6. }
7. }
Which will make this code compile and run?