<< Chapter < Page Chapter >> Page >

Answer 10

Question 11

True or False? The execution of a Java application begins and ends in the method named main .

Answer 11

Question 12

True or False? The two commands shown in Listing 4 can be used to compile and execute a Java application named Prob01 where:

  • The only special class library required is contained in the folder named bookClasses .
  • The path from the root to the folder named bookClasses is represented by ---\bookClasses.
Listing 4 . Question 12.
javac -cp .;---\bookClasses Prob01.java java -cp .;---\bookClasses Prob01

Answer 12

Question 13

True or False? The Java compiler program is named java.exe .

Answer 13

Question 14

True or False? The Prob01.java and Prob01 at the ends of the two commands in Listing 4 specify the files being operated on by the virtual machine and the compilerrespectively.

Answer 14

Question 15

True or False? In Listing 4 , the -cp indicates that a classpath follows.

Answer 15

Question 16

True or False? A classpath consists of one or more path specifications separated by semicolon characters.

Answer 16

Question 17

True or False? The purpose of the classpath in Listing 4 is to tell the compiler and the virtual machine where to look for source codefiles that the application needs in order to successfully compile and execute.

Answer 17

Question 18

True or False? The period ahead of the semicolon in Listing 4 says to search the root folder first.

Answer 18

Question 19

True or False? The first statement in the body of the main method in Listing 1 instantiates a new object of the class named Prob01Runner .

Answer 19

Question 20

True or False? The first statement in Listing 1 saves a reference to a new object of the class named Prob01Runner in a reference variable named obj . In general, the type of the variable must be:

  • The name of the object, or
  • The name of a superclass of the object, or
  • The name of an interface implemented by the object.

Answer 20

Question 21

True or False? In Java, you must save a reference to a newly instantiated object in order to gain access to that object later in the program.

Answer 21

Question 22

True or False? The second statement in the body of the main method in Listing 1 uses the reference stored in the variable named obj to call the method named run encapsulated in the object referred to by the contents of obj .

Answer 22

Question 23

True or False? The following three methods that are called in Listing 1 are of a type that is commonly referred to as accessor methods . They are also sometimes referred to by the slang term getter methods .

  • getMars
  • getJoe
  • getSue

Answer 23

Question 24

True or False? The method named println that is called in Listing 1 is a member of Ericson's multimedia library. The purpose of the println method is to display text on an image.

Answer 24

Question 25

True or False? Java uses four access modifiers to specify the accessibility of various classes and members in a Java application:

  • public
  • private
  • protected
  • package-private

Answer 25

Question 26

True or False? Listing 5 shows the beginning of a class named Prob01Runner .

Listing 5 . Question 26.
class Prob01Runner{ //Instantiate the World and Turtle objects.private World mars = new World(300,274); private Turtle joe = new Turtle(mars);private Turtle sue = new Turtle(mars);

Questions & Answers

how does Neisseria cause meningitis
Nyibol Reply
what is microbiologist
Muhammad Reply
what is errata
Muhammad
is the branch of biology that deals with the study of microorganisms.
Ntefuni Reply
What is microbiology
Mercy Reply
studies of microbes
Louisiaste
when we takee the specimen which lumbar,spin,
Ziyad Reply
How bacteria create energy to survive?
Muhamad Reply
Bacteria doesn't produce energy they are dependent upon their substrate in case of lack of nutrients they are able to make spores which helps them to sustain in harsh environments
_Adnan
But not all bacteria make spores, l mean Eukaryotic cells have Mitochondria which acts as powerhouse for them, since bacteria don't have it, what is the substitution for it?
Muhamad
they make spores
Louisiaste
what is sporadic nd endemic, epidemic
Aminu Reply
the significance of food webs for disease transmission
Abreham
food webs brings about an infection as an individual depends on number of diseased foods or carriers dully.
Mark
explain assimilatory nitrate reduction
Esinniobiwa Reply
Assimilatory nitrate reduction is a process that occurs in some microorganisms, such as bacteria and archaea, in which nitrate (NO3-) is reduced to nitrite (NO2-), and then further reduced to ammonia (NH3).
Elkana
This process is called assimilatory nitrate reduction because the nitrogen that is produced is incorporated in the cells of microorganisms where it can be used in the synthesis of amino acids and other nitrogen products
Elkana
Examples of thermophilic organisms
Shu Reply
Give Examples of thermophilic organisms
Shu
advantages of normal Flora to the host
Micheal Reply
Prevent foreign microbes to the host
Abubakar
they provide healthier benefits to their hosts
ayesha
They are friends to host only when Host immune system is strong and become enemies when the host immune system is weakened . very bad relationship!
Mark
what is cell
faisal Reply
cell is the smallest unit of life
Fauziya
cell is the smallest unit of life
Akanni
ok
Innocent
cell is the structural and functional unit of life
Hasan
is the fundamental units of Life
Musa
what are emergency diseases
Micheal Reply
There are nothing like emergency disease but there are some common medical emergency which can occur simultaneously like Bleeding,heart attack,Breathing difficulties,severe pain heart stock.Hope you will get my point .Have a nice day ❣️
_Adnan
define infection ,prevention and control
Innocent
I think infection prevention and control is the avoidance of all things we do that gives out break of infections and promotion of health practices that promote life
Lubega
Heyy Lubega hussein where are u from?
_Adnan
en français
Adama
which site have a normal flora
ESTHER Reply
Many sites of the body have it Skin Nasal cavity Oral cavity Gastro intestinal tract
Safaa
skin
Asiina
skin,Oral,Nasal,GIt
Sadik
How can Commensal can Bacteria change into pathogen?
Sadik
How can Commensal Bacteria change into pathogen?
Sadik
all
Tesfaye
by fussion
Asiina
what are the advantages of normal Flora to the host
Micheal
what are the ways of control and prevention of nosocomial infection in the hospital
Micheal
what is inflammation
Shelly Reply
part of a tissue or an organ being wounded or bruised.
Wilfred
what term is used to name and classify microorganisms?
Micheal Reply
Binomial nomenclature
adeolu
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




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