This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes core java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "core java" Watch "core java" New topic

core java

baban kakde

Joined: Jul 13, 2004
Posts: 2
what are different ways to hide variables in java ?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

Nothing to do with JSP, so I'm moving this along to the Java in General(beginner) forum.

[Asking smart questions] [About Bear] [Books by Bear]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, baban kakde!

Concerning variable hiding in Java, I suggest taking a look at the following sections of the Java Language Specification, Second Edition:
  • Example: Hiding of Class Variables
  • Example: Hiding of Instance Variables
  • 8.4.6 Inheritance, Overriding, and Hiding
  • Example: Overloading, Overriding, and Hiding
  • Example: Invocation of Hidden Class Methods
  • Example: Invocation of Hidden Class Methods

  • [How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
    Kris Adams

    Joined: Jul 02, 2004
    Posts: 17
    Hey Baban
    good start. Thinking in java by bruce eckel has thorough explanation with example code snippets. I think it would give you good understanding of the concepts.

    It is sorta covered in the JavaRanch Style Guide.
    subject: core java
    It's not a secret anymore!