Java review pt 1 CSCI
308 fully solved
2025(graded A+)
Java is - answer a compiled language
Programs are compiled into __________, which are executed through
the Java Virtual machine (JVM) - answer byte-code executable files
A Programmer defines a Java program in advance and saves that
program in a text file known as ________ - answer source code
For Java, source code is conventionally stored in a file named with
the _______ suffix and the byte-code file is stored in a file with a
________ suffix, which is produced by the Java compiler -
answer .java ; .class
In Java Executable statements are placed in functions, known as
______, that belong to class definitions - answer methods
The static method named _____ is the first method to be executed
when running a Java program - answer main
any set of statements between the braces __ and __ define a
program block - answer "{" ; "}"
The name of a class, method, or variable in Java is called an _______,
which can be any string of characters as long as it begins with a
letter and consists of letters - answer identifier
, Java has several _________ which are basic ways of storing data. -
answer base types
An identifier variable can be ________ to hold any base type and it can
later be __________ to hold another value of the same type - answer
declared ; reassigned
Every ______ is an instance of a class, which serves as the type of the
object and as a blueprint, defining the data which the object stores
and the methods for accessing and modifying that data. - answer
object
The critical members of a class in Java are: - answer Instance
variables, and methods
Instance variables - answer also called fields, represent the data
associated with an object of a class. Instance variable must have a
type, which can either be a base type ( int, float , or double) or any
class type
Methods - answer are blocks of code that can be called to perform
actions. Methods can accept parameters as arguments, and their
behavior may depend on the object upon which they are invoked
and the values of any parameters that are passed. A method that
returns information to the caller without changing any instance
variable is known as an accessor method, while an update method is
one that may change one or more instance variable when called.
Accessor method - answer a method that returns information to the
caller without changing any instance variables.
Update method - answer may change one or more instance vairables
when called
308 fully solved
2025(graded A+)
Java is - answer a compiled language
Programs are compiled into __________, which are executed through
the Java Virtual machine (JVM) - answer byte-code executable files
A Programmer defines a Java program in advance and saves that
program in a text file known as ________ - answer source code
For Java, source code is conventionally stored in a file named with
the _______ suffix and the byte-code file is stored in a file with a
________ suffix, which is produced by the Java compiler -
answer .java ; .class
In Java Executable statements are placed in functions, known as
______, that belong to class definitions - answer methods
The static method named _____ is the first method to be executed
when running a Java program - answer main
any set of statements between the braces __ and __ define a
program block - answer "{" ; "}"
The name of a class, method, or variable in Java is called an _______,
which can be any string of characters as long as it begins with a
letter and consists of letters - answer identifier
, Java has several _________ which are basic ways of storing data. -
answer base types
An identifier variable can be ________ to hold any base type and it can
later be __________ to hold another value of the same type - answer
declared ; reassigned
Every ______ is an instance of a class, which serves as the type of the
object and as a blueprint, defining the data which the object stores
and the methods for accessing and modifying that data. - answer
object
The critical members of a class in Java are: - answer Instance
variables, and methods
Instance variables - answer also called fields, represent the data
associated with an object of a class. Instance variable must have a
type, which can either be a base type ( int, float , or double) or any
class type
Methods - answer are blocks of code that can be called to perform
actions. Methods can accept parameters as arguments, and their
behavior may depend on the object upon which they are invoked
and the values of any parameters that are passed. A method that
returns information to the caller without changing any instance
variable is known as an accessor method, while an update method is
one that may change one or more instance variable when called.
Accessor method - answer a method that returns information to the
caller without changing any instance variables.
Update method - answer may change one or more instance vairables
when called