Karteikarten
Java certification - OCA
Karten in diesem Stapel (2)
- 1Consider the following two classes defined in two java source files. //in file /root/com/foo/X.java package com.foo; public class X{ public static int LOGICID = 10; public void apply(int i){ System.out.println("applied"); } } //in file /root/com/bar/Y.java package com.bar; //1 <== INSERT STATEMENT(s) HERE public class Y{ public static void main(String[] args){ X x = new X(); x.apply(LOGICID); } } What should be inserted at //1 so that Y.java can compile without any error?Teste
- 2—
Informationen
- Beschreibung
- Karteikarten am Java certification - OCA, erstellt von Guilherme Neres am 16/10/2019.
- Erstellt von
- Guilherme Neres
- Aufrufe
- 2
- Bewertung