aspose file tools
The moose likes Other Languages and the fly likes Difference in local & automatic Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Other Languages
Reply Bookmark "Difference in local & automatic" Watch "Difference in local & automatic" New topic
Author

Difference in local & automatic

Vishnu Sharma
Ranch Hand

Joined: Feb 03, 2010
Posts: 55
What is difference between Automatic variable & Local variable??
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 623

Both are same. variables declared inside methods are called local or automatic.


Life is easy because we write the source code.....
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1173
Ot also stack variable.


JDBCSupport - An easy to use, light-weight JDBC framework -
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 11642

The term "automatic variable" comes from the C programming language. It's not a term that used in Java.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 26710
Moving to "other languages" forum. Beware of the moderator there.
 
IntelliJ Java IDE
 
subject: Difference in local & automatic
 
Threads others viewed
Automatic Variable vs. Local Variable
Variables
answer this
Encapsulation
variables in static methods
IntelliJ Java IDE

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