wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Trouble with Development Chapter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Trouble with Development Chapter" Watch "Trouble with Development Chapter" New topic
Author

Trouble with Development Chapter

Harshit Sethi
Ranch Hand

Joined: Jul 16, 2010
Posts: 75
I am having trouble with the development chapter in kathy sierra.Please someone suggest me what should i do.Is this chapter in SCJP syllaybus??
Prasad Kharkar
Ranch Hand

Joined: Mar 07, 2010
Posts: 438

this chapter is in SCJP syllabus
but what is the trouble there?
can you post the question?

SCJP 6 [86%] June 30th, 2010
OCPWCD [84%] March 26th, 2013
If you find any post useful, click the "plus one" sign on the right
Harshit Sethi
Ranch Hand

Joined: Jul 16, 2010
Posts: 75
Actually i am having problem with the type of questions in which one class in some package needs to access some other class in other package for example it inherits that class,then what statements can be used to compile and run the program.
Sahil Kapoor
Ranch Hand

Joined: Sep 12, 2009
Posts: 316
If you need to compile A class which is usint B class and B class Inherits C class.
First of all you just need to import B class.

Moreover you need to set CLASSPATH or -cp appropriately so that JVM could find A class and B class.

If B class is as follows com.kapoor.B.class then

1) It should be in the same directory structure as mentioned package.
2) you need to direct JVM upto the directory just above com. Dont help it beyond that directory otherwise it would no be able to find your B class.


Similar concept goes for A class too.

Remember your JVM should be able to find both the classes to complete java command without any error.

SCJP 6.0 96%

(Connecting the Dots ....)
 
jQuery in Action, 2nd edition
 
subject: Trouble with Development Chapter
 
Similar Threads
SCJP 1.5 and K&B
Pro Jakarta Struts Question : Struts + XDoclet
Question Patterns
What exactly is in the SCJP exam?
Core JavaServer Faces Book