<< Chapter < Page Chapter >> Page >
This module contains review questions and answers keyed to the module titled Jb0170: Java OOP: A little more information about classes.

Revised: Mon Mar 28 10:56:27 CDT 2016

This page is included in the following Books:

Table of contents

Preface

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.

Questions

Question 1 .

List two of the many names commonly used for variables defined within a class in Java.

Answer 1

Question 2

List two of the many names commonly used for the functions defined within a class in Java.

Answer 2

Question 3

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)__________.

Answer 3

Question 4

What keyword is used to cause a variable or method to become a class variable or class method in Java?

Answer 4

Question 5

True or false? Instance variables and instance methods can only be accessed through an object of the class in Java.

Answer 5

Question 6

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.

Answer 6

Question 7

True or false? Show the general syntax of an empty class definition in Java.

Answer 7

Question 8

True or false? The syntax for a class definition in Java requires a semicolon following the closing curly bracket.

Answer 8

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.

Missing image

This image was also inserted for the purpose of inserting space between the questions and the answers.

Missing image

Answers

Answer 8

False. Java does not require the use of a semicolon following the closing curly bracket in a class definition.

Back to Question 8

Answer 7

class NameOfClass{}

Back to Question 7

Answer 6

False. A colon is not used in Java. Instead, a period is used in Java.

Back to Question 6

Answer 5

True.

Back to Question 5

Answer 4

static

Back to Question 4

Answer 3

  • (a) instance variables
  • (b) methods

Back to Question 3

Answer 2

Member functions and instance methods.

Back to Question 2

Answer 1

Instance variables and attributes.

Back to Question 1

Miscellaneous

This section contains a variety of miscellaneous information.

Housekeeping material
  • Module name: Jb0170r: Review: A little more information about classes
  • File: Jb0170r.htm
  • Published: 11/21/12
Disclaimers:

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-

Questions & Answers

does psychology deal with love?
Mohammed Reply
Maybe, i think
edem
I definitely would say yes
Clara
how so
Isaiah
*triarchic
Meredith
there are so many different reasons why you can fall in love with someone, many of them develope subconsciously -> psychology
Clara
love messes with the brain, a lot, ergo I believe that Psychology does indeed deal with love
what is synapse
Katie Reply
In the central nervous system, a synapse is a small gap at the end of a neuron that allows a signal to pass from one neuron to the next. synapse are found where nerve cells connect with other nerve cells
Najeem
can you do auto book auto
Mariah Reply
WHT u mean?
usef
yes
MD
heyy, may i join the conversation please?
edem Reply
who is the father of psychology
Richy Reply
aristatil
Ramadevi
and please, how would you guys, describe the study of psychology at college ?
edem
psychologist student?
Aspen
i mean not yet but am about to start college so wanna know how is it(college in general and psychology course) please
edem
Psychology is the study of mind and behaviour. So if you will take psychology as a subject so you will get to know how your everything (physical, mental, social, spiritual aspects) effects your behaviour
sakina
With this brief knowledge you can help people to cope up with their problems and only you can guide them correctly
sakina
And if you go for further specialisations you can study hypnosis, face reading, body language etc
sakina
Thanks a lot🙏🏾 And ik some of the stuffs u said but i am also going to write thesis, right ?
edem
ok no prob, thanks a lot🙏🏾✨
edem
cerebellum
Khan
hae everyone, hope you are well this evning my question is what is the difference between drive and motivation
Michael
good question
Rainee
drive is more like an impulse or urge and i think they both go together (drive and motivation) even if there is a slight difference
edem
@ Michael Drive is delivered to be innate without the use of an external stimuli, motivation normally evolves an outside stimuli which may include praise, appreciate, or reward.
Reginald
*believed...sorry for typo
Reginald
@Reginald, can't the motivation come from the inner self?
edem
Good question, please give an example.
Reginald
can we say desire of success for example
edem
Wilhelm Wundt is the father of psychology
ipau
Wilhem Wundt thank you for the road that you opened.
Qwanta
You mean who is the father of having a great educated argumentative guess? nothing is more wrong than this question. The question is you should ask yourselfs is, how sure are you abour their scientific studying? one's percieved assimilated approach to judging another person and saying they are
Roger
the biggest problem with scientific research and data is that ya you could get the same result 1000 times then it could go the other way 1000 times, but we would never know that and we did, we would still say ya but the proof is there. The only thing science proves is that humanity has
Roger
no facts about human behavior in the scientific context, but more in the trial and error.. sorry to tell you, but so far no one has proven Father of anything, thats up to you and i, judgement is bias, science is good enough lazy
Roger
cognitive development is the growing and development of the brain.
Jessy Reply
Anyone knows about Techno-fascism?
Hussein Reply
Ecofascism is a theoretical political model in which an authoritarian government would require individuals to sacrifice their own interests to the "organic whole of nature". The term is also used as a rhetorical pejorative to undermine the environmental movement.
ipau
what's the big difference between prejudice and discrimination?
Danice Reply
A prejudiced person may not act on their attitude.  Therefore, someone can be prejudiced towards a certain group but not discriminate against them.  Also, prejudice includes all three components of an attitude (affective, behavioral and cognitive), whereas discrimination just involves behavior
Nancy Lee
hi
basher
hello
Rahul
what is all about cognitive development?
Kamohelo
cognitive development is the growing and development of the brain
Jessy
how do you control a variable when using spss whilst running a pearsons correlation analysis?
Jessie Reply
it dependa on your study. according to what you want to say and explain your result
Pouran
why does it say her and she
Jayla Reply
stages of cognitive development
brivia Reply
sensory preoperatinal concrete formal
Rajendra
what is psychology
Chethani Reply
the study of insecurities and the effect on the host .
Sera
Psychology is the scientific study of behavior & mental processes
Angela
psychology is science about learning human behaviour
Zhamshid
behaviorosm
Khan
In thinking about the case of Candace described earlier, do you think that Candace benefitted or suffered as a result of consistently being passed on to the next grade?
Nene Reply
what is reward
Angeles Reply
reward is a technique to change behaviour
Rajendra
Reward is a way to promote a specific behaviour or to teach someone/ something to behave a specific way or perform a specific task.
Johan
a reward is something that is usually associated with desirable behavior. The child got a reward for winning the game. A reinforcer is different in that a reinforcer is anything that increases behavior, even if it is increasing an undesirable behavior.
Meredith
reward is earned effort realized
freweini
why heroine addicted people smoke heroine in a dirty and polluted place ?
Najeem Reply
?
Sera
?
Sera
G
ky
/i don't know
Rajendra
🤔
Hammam
I believe they don't wanna be seen
Ruphine
Rajendra Singh I'm asking from those who know thanks for your comment
Najeem
Ruphine it's not a scientific answer
Najeem
Ok
Ruphine
more my personal opinions and experiences than a real answer but more of an answer than the question marks
Jehsika
what's the data or fact that actually say that heroine smokers host in dirty and polluted place.
amaan
Generally the more time an addict is using and the harder they use the more their life and everything around them crumbles. it's quite common to find neat respectable clean users but over time the addiction increases and their health declines along with their ability to keep up day to day duties.
Jehsika
I'll see if I can find some links for you to have a read.
Jehsika
hi. as heroine affedted exactly on the brain, it should be because the chages heroine makes on frintal lobe and sensory and motor parts. after a while the cannot behave in a normal way. in a way heroine ruines the neurones
Pouran
The things said in the thread are some of the most horridly presumptuous & unwarrantedly pretentious statements I've read in my entire life. It's distastefully disrespect, to say the least.
Kaytee
Pouran Hi! thanks for answering I'm agree with your opinion and may the answer be the same
Najeem
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!





Source:  OpenStax, Object-oriented programming (oop) with java. OpenStax CNX. Jun 29, 2016 Download for free at https://legacy.cnx.org/content/col11441/1.201
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Object-oriented programming (oop) with java' conversation and receive update notifications?

Ask