Become Oracle Certified with updated 1Z0-808 exam questions and correct answers
Given the code fragment:

Given the code fragment:

Consider below codes of 3 java files:
1. //Super.java
2. package com.sampleproject.oca;
3.
4. public interface Super {
5. String name = "SUPER"; //Line n1
6. }
1. //Sub.java
2. package com.sampleproject.oca;
3.
4. public interface Sub extends Super { //Line n2
5.
6. }
1. //Test.java
2. package com.sampleproject.oca;
3.
4. public class Test {
5. public static void main(String[] args) {
6. Sub sub = null;
7. System.out.println(sub.name); //Line n3
8. }
9.
Which of the following statements is correct?
Given this code for a Planet object:

Given the code fragments:


© Copyrights DumpsCertify 2026. All Rights Reserved
We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsCertify.