ITSC 1213 QUESTIONS AND CORRECT ANSWERS
What is the name of the Java compiler? - Answers - Javac
A____is a template for a(n)___ - Answers - Class; object
Class definitions have two parts the ___ and the ___ - Answers - Field; methods
What are the two types of access to class members we have done? - Answers - Public;
private
What is the purpose of the constructor method? - Answers - Initialized the new object
and instantiate object
What is the name of the constructor method - Answers - Same as the class
What data type does the constructor method return? - Answers - Constructors don't
return anything
What keyword is used to crest an object from the class definition? - Answers - New
Creating an object is called - Answers - instantiation
A Java project is made up of ___ definitions - Answers - Class
Putting the data for an object and the methods that can access and change this data
together in the same file is called - Answers - Encapsulation
What are the two categories of data types in Java? - Answers - primitive and reference
What is the keyword use to create an instance from a class template - Answers - New
What numeric data type holds an exact value? - Answers - Double
What is the use of javadoc comments? - Answers - Make code easier to read
Can a field declared as type boolean hold a value of 1? - Answers - No
What primitive Java data type can hold the largest integer value? - Answers - long
The public class name in a Java source code file must have the same names as the___
- Answers - Constructor
Usually fields have___access and methods have___acess - Answers - Private; public
What is the name of the Java compiler? - Answers - Javac
A____is a template for a(n)___ - Answers - Class; object
Class definitions have two parts the ___ and the ___ - Answers - Field; methods
What are the two types of access to class members we have done? - Answers - Public;
private
What is the purpose of the constructor method? - Answers - Initialized the new object
and instantiate object
What is the name of the constructor method - Answers - Same as the class
What data type does the constructor method return? - Answers - Constructors don't
return anything
What keyword is used to crest an object from the class definition? - Answers - New
Creating an object is called - Answers - instantiation
A Java project is made up of ___ definitions - Answers - Class
Putting the data for an object and the methods that can access and change this data
together in the same file is called - Answers - Encapsulation
What are the two categories of data types in Java? - Answers - primitive and reference
What is the keyword use to create an instance from a class template - Answers - New
What numeric data type holds an exact value? - Answers - Double
What is the use of javadoc comments? - Answers - Make code easier to read
Can a field declared as type boolean hold a value of 1? - Answers - No
What primitive Java data type can hold the largest integer value? - Answers - long
The public class name in a Java source code file must have the same names as the___
- Answers - Constructor
Usually fields have___access and methods have___acess - Answers - Private; public