Re: beginner to Java
- From: "Paul Hamaker" <ph@xxxxxxxxxxxxxx>
- Date: 28 Jun 2006 00:54:46 -0700
Fields declared in a class, on the same 'level' as methods, are visible
in each method of that class.
(Exception: non-static fields are not visible from static methods).
Local vars are just that, locally visible, in a (method) block from the
point of declaration up to the closing bracket, they're gone after the
closing bracket.
In a switch, 'default' means : all other cases than the ones stated
above.
--------------------
Paul Hamaker, SEMM, teaching ICT since 1987
http://javalessons.com
.
- References:
- beginner to Java
- From: Alvin
- beginner to Java
- Prev by Date: What is CRUD?
- Next by Date: Re: generics & their syntax
- Previous by thread: beginner to Java
- Next by thread: Re: beginner to Java
- Index(es):