Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: what is the use/effect calling static method using object reference in java

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    11
    My Mood
    Sad
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default what is the use/effect calling static method using object reference in java

    Hi,
    Calling static method using object reference is possible. using this approach what are uses or effects,
    Any one please explain about this


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: what is the use/effect calling static method using object reference in java

    Calling static method using object reference
    Same as calling it the class name.
    static methods can not see the contents of its class's instance variables.

Similar Threads

  1. Replies: 9
    Last Post: November 5th, 2011, 10:22 AM
  2. calling a method from other object: thred
    By Sudheera in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 18th, 2011, 05:19 AM
  3. Replies: 10
    Last Post: September 6th, 2010, 04:48 PM
  4. Calling a void method into a static void main within same class
    By sketch_flygirl in forum Object Oriented Programming
    Replies: 3
    Last Post: November 15th, 2009, 05:24 PM
  5. Java Code Help - Calling Method
    By KevinGreen in forum Object Oriented Programming
    Replies: 5
    Last Post: September 18th, 2009, 12:55 AM

Tags for this Thread