GoConqr has a new look! Let us know what you think.

Flashcards

Java Study

warrenj3000 English 30 cards

Cards in this deck (30)

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

Information

Description
Flashcards on Java Study, created by warrenj3000 on 07/12/2013.
Created by
warrenj3000
Views
62
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?