Flashcards
Java certification - OCA
Flashcards do conjunto (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—
Informações
- Descrição
- FlashCards sobre Java certification - OCA, criado por Guilherme Neres em 16-10-2019.
- Criado por
- Guilherme Neres
- Visualizações
- 2
- Avaliação