aspose file tools*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "core java" Watch "core java" New topic
Author

core java

baban kakde
Greenhorn

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

Joined: Jan 10, 2002
Posts: 61187
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Dirk Schreckmann
Sheriff

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:
  • 8.3.3.1 Example: Hiding of Class Variables
  • 8.3.3.2 Example: Hiding of Instance Variables
  • 8.4.6 Inheritance, Overriding, and Hiding
  • 8.4.8.2 Example: Overloading, Overriding, and Hiding
  • 8.4.8.5 Example: Invocation of Hidden Class Methods
  • 8.4.8.5 Example: Invocation of Hidden Class Methods


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

    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.

    ~krishna
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: core java