Inicia sesión
Crear juego
Tipos de juegos
Centro de ayuda
Game Pin
Noticias
Planes
Crear juego
Inicia sesión
Todos los juegos
Jugar Test
Imprimir Test
Exam Sample Question
Author :
Elena Conde
1.
Which of the following are true about the "default" constructor?
A.
It is provided by the compiler only if the class does not define any constructor.
B.
It is provided by the compiler if the class does not define a 'no- args' constructor.
C.
It initializes the instance members of the class.
D.
It calls the default 'no-args' constructor of the super class.
E.
It initializes instance as well as class fields of the class.
2.
You want to find out whether two strings are equal or not, in terms of the actual characters within the strings. What is the best way to do this?
A.
Use String's equals method.
B.
Use String's --equalsIgnoreCase-- method.
C.
Use == operator.
D.
Use String's match method.
3.
Which of the following statements are true?
A.
For any non-null reference o1, the expression (o1 instanceof o1) will always yield true.
B.
For any non-null reference o1, the expression (o1 instanceof Object) will always yield true.
C.
For any non-null reference o1, the expression (o1 instanceof o1) will always yield false.
D.
For any non-null reference o1, the expression (o1 instanceof Object) may yield false.
E.
None of the above.