File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Help! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Help!" Watch "Help!" New topic
Author

Help!

Albert Wong
Greenhorn

Joined: Apr 02, 2002
Posts: 9
Hi,
I am preparing the SCWCD exam, when I download Miftah's notes from javaranch. I find that in the
servlet thread-safe section he mention the "instance variables" , I just get confused.
what is "instance variables" ?
Could you guys get me some example?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16617

Instance variables are the variables that are declared in a class, usually at the top, there are created for each Instance of the class that is created.
example
public class myClass{
int myClassInt;
String aString;
myClass(){
}
public void aMethod(){
}
}

myClassInt and aString are instance variables.
Mark
p.s. While your handle Sunny2000 is a cool handle. Javaranch has a policy for all users to be registered with their full first and last names. Please change your name.
[ April 02, 2002: Message edited by: Mark Spritzler ]

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
No offense Sunny, but "instance variables" is a term that you must know if you have already finished your SCJP, which BTW is a requirement for SCWCD.
Doesn't this thread belong to Java In General (Beginners).... :roll:
- satya


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
IntelliJ Java IDE
 
subject: Help!
 
Threads others viewed
loading the class and initialization of class
Handling Threading Issue ???
Encapsulation??
output of this code
K&B Chapter 1 Question 5
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture