<< 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

Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
what school?
biomolecules are e building blocks of every organics and inorganic materials.
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
sciencedirect big data base
Introduction about quantum dots in nanotechnology
Praveena Reply
what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
Damian Reply
absolutely yes
how to know photocatalytic properties of tio2 nanoparticles...what to do now
Akash Reply
it is a goid question and i want to know the answer as well
characteristics of micro business
for teaching engĺish at school how nano technology help us
Do somebody tell me a best nano engineering book for beginners?
s. Reply
there is no specific books for beginners but there is book called principle of nanotechnology
what is fullerene does it is used to make bukky balls
Devang Reply
are you nano engineer ?
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
what is the actual application of fullerenes nowadays?
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
what is the Synthesis, properties,and applications of carbon nano chemistry
Abhijith Reply
Mostly, they use nano carbon for electronics and for materials to be strengthened.
is Bucky paper clear?
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
so some one know about replacing silicon atom with phosphorous in semiconductors device?
s. Reply
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Do you know which machine is used to that process?
how to fabricate graphene ink ?
for screen printed electrodes ?
What is lattice structure?
s. Reply
of graphene you mean?
or in general
in general
Graphene has a hexagonal structure
On having this app for quite a bit time, Haven't realised there's a chat room in it.
what is biological synthesis of nanoparticles
Sanket Reply
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?