Quiz
2
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (20)
1None of the wrapper classes own any static methods.
- ARichtig
- BFalsch
2You can invoke String methods from a String literal.
- ARichtig
- BFalsch
3Two instances of the Integer wrapper class can be compared for equality, on the basis of their int values, using ==.
- ARichtig
- BFalsch
4The StringTokenizer .nextToken() method actually removes tokens from the tokenizer object.
- ARichtig
- BFalsch
5If a method performs an action that could result in an Exception, that action must be contained in a try/catch block.
- ARichtig
- BFalsch
6The code that might generate an exception that you wish to catch must be written just before the beginning of the try block.
- ARichtig
- BFalsch
7A try/catch block is used to catch exceptions.
- ARichtig
- BFalsch
8Exceptions are Objects
- ARichtig
- BFalsch
9The value contained in a static attribute can be different for every instance of the class that defines that attribute.
- ARichtig
- BFalsch
10A class definition determines and limits the behaviour of an instance of that class.
- ARichtig
- BFalsch
11Classes can contain static or non-static methods, but not both.
- ARichtig
- BFalsch
12A constructor method is only invoked once during the instantiation of an object.
- ARichtig
- BFalsch
13When writing Java programs, it is good programming practice to close all open files before the program terminates.
- ARichtig
- BFalsch
14Reading data from a file does not modify the contents of the file.
- ARichtig
- BFalsch
15Opening a text file for ‘write’ from a Java program with a FIleOutputStream object can throw a FileNotFoundException.
- ARichtig
- BFalsch
16In a Java program, it is possible to have the same file open for output at one point in the program, and open for input at a different point in the program.
- ARichtig
- BFalsch
17If a method assigns a new value to an "int" parameter, that value is also assigned to the variable that was passed to the parameter.
- ARichtig
- BFalsch
18Suppose Fish is a defined class. It is possible to have two variables myFish1 and myFish2 that refer to the same Fish object.
- ARichtig
- BFalsch
19A comparison of two objects using == will yield true only if the attribute contents of both objects are exactly the same.
- ARichtig
- BFalsch
20The == equality operator will always return "true" when applied to two Strings if the two Strings appear the same when printed.
- ARichtig
- BFalsch
Informationen
- Beschreibung
- Quiz am 2, erstellt von Ricky Zhang am 18/04/2018.
- Autor
- Ricky Zhang
- Sprache
- English
- Aufrufe
- 13
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz