Thread: datatypes
View Single Post
  #2 (permalink)  
Old 11-28-2007, 12:16 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,122
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
depending on where do you declare this variable?
if you declare this variable within a method, then this variable is only available for the specific method. If you declare this variable within the class without declaring public or private, I think the default in Java will automatically declare it as proctected, meaning that it will be available for the whole package. Let me know if i'm wrong, you probably want to double check... I don't remember this on the top of my head haha...

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote