Quiz
Test
Fragen in diesem Quiz (2)
1Which of the following are valid Java identifiers? (Choose all that apply)
- AA$B
- B_helloWorld
- Ctrue
- Djava.lang
- EPublic
- F1980_s
2What is the output of the following program?
public class WaterBottle {
2: private String brand;
3: private boolean empty;
4: public static void main(String[] args) {
5: WaterBottle wb = new WaterBottle();
6: System.out.print("Empty = " + wb.empty);
7: System.out.print(", Brand = " + wb.brand);
8: } }- ALine 6 generates a compiler error.
- BLine 7 generates a compiler error.
- CThere is no output.
- DEmpty = false, Brand = null
- EEmpty = false, Brand =
- FEmpty = null, Brand = null
Informationen
- Beschreibung
- Curso Interno de Empresa Ingenieria Quiz am Test, erstellt von Juan Carlos Duarte Amaya am 10/02/2017.
- Sprache
- English
- Aufrufe
- 10
- Verlauf
- Erstellt am 10 Feb 2017 · aktualisiert am 10 Feb 2017
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz