This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Instance variable & static Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Instance variable & static " Watch "Instance variable & static " New topic
Author

Instance variable & static

Rahul Ravindran
Greenhorn

Joined: Sep 03, 2012
Posts: 3



Is a class variable same as the instance variable marked static .
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4377
    
    8

Hi Rahul. Welcome to the Ranch!

Almost. "Instance variable marked static" is actually a contradiction, because if it's marked static it isn't an instance variable (because it doesn't belong to instances of the class). But yes, a class variable is a static variable.
R. Jain
Ranch Hand

Joined: Aug 11, 2012
Posts: 375
    
    1

Rahul Ravindran wrote:


Is a class variable same as the instance variable marked static .

Yes
Rahul Ravindran
Greenhorn

Joined: Sep 03, 2012
Posts: 3
Thank you mr mathew .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Instance variable & static