Results 1 to 3 of 3
  1. #1
    sivasayanth's Avatar
    sivasayanth is offline Member
    Join Date
    Dec 2007
    Posts
    20
    Rep Power
    0

    Default what does it mean:confused:

    "Non-static fields are also known as instance variables because their values are unique to each instance of a class "



    what does it mean above hided one?:confused:

  2. #2
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    8

    Default

    Run this code as is, then run it again with the keyword static in front of the keyword int - do this until you can infer what is going on... hack away at it. If you're still having trouble understanding - Google is your best friend. ;)
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

  3. #3
    sivasayanth's Avatar
    sivasayanth is offline Member
    Join Date
    Dec 2007
    Posts
    20
    Rep Power
    0

Similar Threads

  1. [SOLVED] Confused by the textField
    By jamesfrize in forum New To Java
    Replies: 4
    Last Post: 03-28-2008, 06:30 PM
  2. a lot confused
    By vineethraj in forum New To Java
    Replies: 4
    Last Post: 01-18-2008, 01:36 AM
  3. Java confused over Generics?
    By Bibendum in forum New To Java
    Replies: 3
    Last Post: 12-26-2007, 07:23 AM
  4. bit confused on this question
    By money123 in forum New To Java
    Replies: 2
    Last Post: 07-27-2007, 01:14 PM
  5. confused code
    By creativehacker in forum New To Java
    Replies: 6
    Last Post: 07-02-2007, 09:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •