Results 1 to 2 of 2
  1. #1
    venkatch is offline Member
    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    0

    Post difference between static methods and instantce methods?

    hi
    friends

    my doubt is we can call every static method with class name,

    here we prevented the creation of object , what is main difference between method calling through Object and class name

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default Re: difference between static methods and instantce methods?

    hi.
    You can't get access to not static variable and method in static methods. It is a mean difference.
    Skype: petrarsentev
    http://TrackStudio.com

Similar Threads

  1. Replies: 8
    Last Post: 04-16-2012, 11:00 PM
  2. Static and non static class methods question
    By silverglade in forum New To Java
    Replies: 2
    Last Post: 05-14-2011, 10:10 PM
  3. Recursion with static and non static methods
    By sh4dyPT in forum New To Java
    Replies: 14
    Last Post: 03-27-2009, 06:56 AM
  4. Static methods
    By carderne in forum New To Java
    Replies: 10
    Last Post: 01-03-2009, 05:27 PM
  5. Static methods
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-04-2007, 05:56 PM

Tags for this Thread

Posting Permissions

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