error while using THIS keyword in a static method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ngkrishnan
    New Member
    • Feb 2008
    • 1

    error while using THIS keyword in a static method

    Hello
    i am new to the java technology.....
    will u plz help in understanding the concept of ..."not using the THIS keyword in the STATIC methods........ ..."

    regards
    ngk
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by ngkrishnan
    Hello
    i am new to the java technology.....
    will u plz help in understanding the concept of ..."not using the THIS keyword in the STATIC methods........ ..."

    regards
    ngk
    If you refer to 'me' you're referencing yourself. If you're not there there's no 'me'.
    The same goes for 'this'.

    kind regards,

    Jos

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      Read the section on class methods in the Java tutorial: http://java.sun.com/docs/books/tutor...classvars.html

      Comment

      Working...