Quiz
Sem título
Perguntas do quiz (2)
1Assume that SimpleInput is a class whose JavaDoc contains information about the following method:
----------------------------
public static double readDouble()
This method will display a graphical input box and prompt the user for a valid numeric value, which is returned.
---------------------------
Which of the following code segments correctly invokes readDouble from a main method that is not part of the SimpleInput class?- AreadDouble(SimpleInput);
- Binput.readDouble(); // where input is an instance of SimpleInput
- CSimpleInput.readDouble();
2Which of the following are true about a datatype? (Check all that dont apply)
- AA datatype defines the set of allowable values that can be stored.
- BTo avoid compiler errors, values of a type must only be used in ways that are defined by the datatype.
- CThe 8 primitive types are the only datatypes provided by Java.
- DClasses in Java are datatypes.
Informações
- Descrição
- Quiz sobre Sem título, criado por Brandon Leute em 14-10-2020.
- Autor
- Brandon Leute
- Idioma
- English
- Visualizações
- 0
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz