Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

core java

 
baban kakde
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are different ways to hide variables in java ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64969
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing to do with JSP, so I'm moving this along to the Java in General(beginner) forum.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  •  
    Kris Adams
    Greenhorn
    Posts: 17
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic