Flashcards
Java Study
Flashcards do conjunto (30)
- 1Performing a task in a program requires amethod
- 2to build an objectInstantiation
- 3after an object has been created the object is referred as a " " of its class.instance
- 4tells a method of the object to perform its task.method call
- 5An object, has attributes that it carries along as it’s used in a program calledinstance variables
- 6wraps attributes and methods into objectsencapsulation
- 7new class absorbs the characteristics of an existing class, possibly customizing them and adding unique characteristics of its own.inheritance
- 8The software that contains the core components of the operating system is called thekernel
- 9Rich collections of existing classes and methodsJava Class Libraries
- 10this is also calledJava APIs (Application Programming Interfaces).
- 11Java programs normally go through five phasesedit
compile
load
verify
execute. - 12debuggers are used to locatelogic errors
- 13If the program compiles, the compiler produces a.class file for each class in program
- 14Java compiler translates Java source code intobytecode
- 15How would you draw java commentsDelimited by /** and */
or // anything - 16how do you start mainpublic static void main( String[] args )
- 17indicates that this method will not return any information.void
- 18how would you print a statement with print lineSystem.out.println("like this");
- 19System.out is aStandard output object.
- 20System.out’s method print displays astring
- 21how would you display a welcome message using printf and then go to a new line afterSystem.out.printf("%s \n", "hey");
- 22how would you import a scanner and then instantiate itimport java.util.Scanner;
Scanner input = new Scanner (System.in); - 23is this variable initialized? int num1;no just declared in memory
- 24is this variables initialized? int num2 = 2;yes
- 25if you had a scanner named input and an int variables named num1 how would you input data?num1 = input.nextInt();
- 26The equals sign (=) in a declaration indicates that the variable should beinitialized (i.e., prepared for use in the program) with the result of the expression to the right of the equals sign.
- 27The new keyword creates aobject
- 28Standard input object, System.in, enables applications toread bytes of information typed by the user.
- 29Scanner object translates these bytes intotypes that can be used in a program.
- 30which import does not need an import declaration?java.lang, system is apart of this import
Informações
- Descrição
- FlashCards sobre Java Study, criado por warrenj3000 em 07-12-2013.
- Criado por
- warrenj3000
- Visualizações
- 62
- Avaliação