Java Exam 2025 Questions and
Answers
class - ANSWER✔✔-data type of an object, description of a kind of object
identifier - ANSWER✔✔-consists of alphabetical characters and digits, first character
must be alphabetical, the remaining characters can be mixed alphabetic characters and
digits, no spaces allowed inside the name
reserved word - ANSWER✔✔-a word like class that has a special meaning to the
system, must only use reserved words for their intended purpose
main method - ANSWER✔✔-where the java virtual machine starts running the
program
statement - ANSWER✔✔-a command for the computer to do something, followed by a
semicolon
methods - ANSWER✔✔-built out of statements
, statement - ANSWER✔✔-a command for the computer to do something, followed by a
semicolon
methods - ANSWER✔✔-built out of statements
string literal - ANSWER✔✔-a sequence of characters, consists of characters between
quote marks, but does not include the quote marks, can contain any valid character,
including white space and punctation
comment - ANSWER✔✔-a note written to a human reader of a program
package - ANSWER✔✔-a collection of classes which may be used in your program
input stream - ANSWER✔✔-a source of input data
output stream - ANSWER✔✔-the output data
nextInt() - ANSWER✔✔-method of scanner object reads in a string of digits and
converts them into an int type, scans through the input stream character by character,
gathering characters into a group that can be converted into numeric data
data type - ANSWER✔✔-a scheme for using bits to represent values; values are not just
numbers, but any kind of data that a computer can process; all values in a computer are
represented using one data type or another
primitive data - ANSWER✔✔-uses a small, fixed number of bytes, means a
fundamental component that is used to create other, larger parts
Answers
class - ANSWER✔✔-data type of an object, description of a kind of object
identifier - ANSWER✔✔-consists of alphabetical characters and digits, first character
must be alphabetical, the remaining characters can be mixed alphabetic characters and
digits, no spaces allowed inside the name
reserved word - ANSWER✔✔-a word like class that has a special meaning to the
system, must only use reserved words for their intended purpose
main method - ANSWER✔✔-where the java virtual machine starts running the
program
statement - ANSWER✔✔-a command for the computer to do something, followed by a
semicolon
methods - ANSWER✔✔-built out of statements
, statement - ANSWER✔✔-a command for the computer to do something, followed by a
semicolon
methods - ANSWER✔✔-built out of statements
string literal - ANSWER✔✔-a sequence of characters, consists of characters between
quote marks, but does not include the quote marks, can contain any valid character,
including white space and punctation
comment - ANSWER✔✔-a note written to a human reader of a program
package - ANSWER✔✔-a collection of classes which may be used in your program
input stream - ANSWER✔✔-a source of input data
output stream - ANSWER✔✔-the output data
nextInt() - ANSWER✔✔-method of scanner object reads in a string of digits and
converts them into an int type, scans through the input stream character by character,
gathering characters into a group that can be converted into numeric data
data type - ANSWER✔✔-a scheme for using bits to represent values; values are not just
numbers, but any kind of data that a computer can process; all values in a computer are
represented using one data type or another
primitive data - ANSWER✔✔-uses a small, fixed number of bytes, means a
fundamental component that is used to create other, larger parts