<< Chapter < Page | Chapter >> Page > |
Revised: Mon Mar 28 10:56:27 CDT 2016
This page is included in the following Books:
This module contains review questions and answers keyed to the module titled Jb0170: Java OOP: A little more information about classes .
The questions and the answers are connected by hyperlinks to make it easy for you to navigate from the question to the answer and back again.
List two of the many names commonly used for variables defined within a class in Java.
List two of the many names commonly used for the functions defined within a class in Java.
An object is said to have state and behavior . At any instant in time, the state of an object is determined by the values stored in its (a)___________ and its behavior is determined by its (b)__________.
What keyword is used to cause a variable or method to become a class variable or class method in Java?
True or false? Instance variables and instance methods can only be accessed through an object of the class in Java.
True or false? In Java, the class name alone is sufficient for accessing class variables and class methods by joining the name of the class with the name of the variable or method using a colon.
True or false? Show the general syntax of an empty class definition in Java.
True or false? The syntax for a class definition in Java requires a semicolon following the closing curly bracket.
What is the meaning of the following two images?
This image was inserted here simply to insert some space between the questions and the answers to keep them from being visible on the screen at thesame time.
The image is also an example of the kinds of things that we do in my course titled ITSE 2321, Object-Oriented Programming.
This image was also inserted for the purpose of inserting space between the questions and the answers.
False. Java does not require the use of a semicolon following the closing curly bracket in a class definition.
class NameOfClass{}
False. A colon is not used in Java. Instead, a period is used in Java.
True.
static
Member functions and instance methods.
Instance variables and attributes.
This section contains a variety of miscellaneous information.
Financial : Although the Connexions site makes it possible for you to download aPDF file for this module at no charge, and also makes it possible for you to purchase a pre-printed version of the PDF file, youshould be aware that some of the HTML elements in this module may not translate well into PDF.
I also want you to know that, I receive no financial compensation from the Connexions website even if you purchase the PDF version ofthe module.
In the past, unknown individuals have copied my modules from cnx.org, converted them to Kindle books, and placed them for sale onAmazon.com showing me as the author. I neither receive compensation for those sales nor do I know who does receive compensation. If youpurchase such a book, please be aware that it is a copy of a module that is freely available on cnx.org and that it was made andpublished without my prior knowledge.
Affiliation : I am a professor of Computer Information Technology at Austin Community College in Austin, TX.
-end-
Notification Switch
Would you like to follow the 'Object-oriented programming (oop) with java' conversation and receive update notifications?