JAVA TERMS LATEST UPDATED
many forms - ANSWER Polymorphism
key word used to define class variables and class methods - ANSWER static
bunch of classes - ANSWER Package
*, /, %, +, - - ANSWER Arithmetic operators
<, >, <=, >=, instanceof - ANSWER Relational operators
&&, || - ANSWER Logical operators
-expression, +expression, ++expression,!, etc. - ANSWER Unary operators
import the JOptionPane class - ANSWER import javax.swing.JOptionPane
A void method returns? - ANSWER nothing
Declare a new variable - rand - in the random class - ANSWER Random rand
= new Random();
What does rand.nextInt(10); return? Where rand is an object of the Random
Class. - ANSWER random integer between 0 and < 10
, import statement to use the Random class? - ANSWER import
java.util.Random;
Methods consist of these two elements? - ANSWER header and body
decision statements like (if - else) and loops can be called? - ANSWER control
structures
JavaDoc produces what type of documentation? - ANSWER HTML
The method header definition contains arguments or parameters? - ANSWER
parameters
In the method call statement that uses variables, they are called? - ANSWER
arguments
Process of breaking down a problem into smaller pieces? - ANSWER
functional decomposition
When using System.out.printf or System.out.format should you use \
or %n for a new line character? - ANSWER %n
import statement goes before or after Javadoc comment? - ANSWER before
References and Acknowledgements from CS 139 go before or after the import
statement? - ANSWER before
many forms - ANSWER Polymorphism
key word used to define class variables and class methods - ANSWER static
bunch of classes - ANSWER Package
*, /, %, +, - - ANSWER Arithmetic operators
<, >, <=, >=, instanceof - ANSWER Relational operators
&&, || - ANSWER Logical operators
-expression, +expression, ++expression,!, etc. - ANSWER Unary operators
import the JOptionPane class - ANSWER import javax.swing.JOptionPane
A void method returns? - ANSWER nothing
Declare a new variable - rand - in the random class - ANSWER Random rand
= new Random();
What does rand.nextInt(10); return? Where rand is an object of the Random
Class. - ANSWER random integer between 0 and < 10
, import statement to use the Random class? - ANSWER import
java.util.Random;
Methods consist of these two elements? - ANSWER header and body
decision statements like (if - else) and loops can be called? - ANSWER control
structures
JavaDoc produces what type of documentation? - ANSWER HTML
The method header definition contains arguments or parameters? - ANSWER
parameters
In the method call statement that uses variables, they are called? - ANSWER
arguments
Process of breaking down a problem into smaller pieces? - ANSWER
functional decomposition
When using System.out.printf or System.out.format should you use \
or %n for a new line character? - ANSWER %n
import statement goes before or after Javadoc comment? - ANSWER before
References and Acknowledgements from CS 139 go before or after the import
statement? - ANSWER before