Quiz #0 : No score.

In every question multiple correct answers are possible. At least one answer is right.

  1. The Java source code
is performed directly, i.e. without any further preprocessing, on a windows machine
is performed directly, i.e. without any further preprocessing, on a SUN microsystems machine
Has to be compiled into Java bytecode to be interpretable by the Java Virtual Machine
  1. The Java Virtual Machine
is written specifically for different systems, e.g. Apple, PC, Sun, (Amiga...)
is written in Java, and is therefore one and the same code for all systems
what's a Java Virtual Machine ?
  1. The primitive data types DOUBLE and LONG need the same amount of memory (8 Bytes), but LONG covers a smaller range of numbers. Why then sometimes use LONG ?
Never use LONG, it’s only defined due to compatibility reasons
LONG has a constant integer-precision which is often needed
It is not possible to store a number without fraction (e.g. 2.0) in a DOUBLE, it is always converted to LONG
  1. A method declared as PUBLIC STATIC VOID myMethod() of a class PUBLIC myClass
is visible to all classes
is a ‘class method’, i.e. can be used without an instance of myClass by calling myClass.myMethod();
is an ‘instance method’, i.e. an instance of myClass() must be created to access the method
  1. Java...
offers possibilities that open a total new world to computing, things that could have never been done before. Thanks, SUN !
is the SUN clone version of C++ and doesn't make any sense
is a tool that offers certain advantages in appropriate applications
  1. The constructor of a PUBLIC Java-class
is always the only accessible method of a class
is needed to create instances of the class
is a good place to initialize data elements
  1. A Java-class
always contains at least one data element
always contains at least one method
contains either data elements or methods, never both
contains any number of data elements and/or methods
  1. The garbage collector of Java
keeps track of unreferenced memory and therefore prevents from memory leaks
sets all variables to zero every ten minutes and therefore prevents from getting undefined results
  1. Java is a write once, run anywhere – language. This means:
SUN Microsystems gives you a money-back-guarantee that all your programs are error free
your programs runs inside the java virtual machine that hides operating system specific behaviours