File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Languages and the fly likes Difference in local & automatic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "Difference in local & automatic" Watch "Difference in local & automatic" New topic

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: 632

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: 1183
Ot also stack variable.

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

Joined: Aug 16, 2005
Posts: 15046

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 8 API documentation
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45364
Moving to "other languages" forum. Beware of the moderator there.
I agree. Here's the link:
subject: Difference in local & automatic
It's not a secret anymore!