- World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.

  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!

    Send your Resume to 6000 Companies

    Question :
    What are static methods?
    Category Core Java Interview Questions
    Rating (1.3) By 171 users
    Added on 9/23/2009
    Views 1543
    Rate it!

    Methods declared with the keyword static as modifier are called static methods or class methods. They are so called because they affect a class as a whole, not a particular instance of the class. Static methods are always invoked without reference to a particular instance of a class.
    Note:The use of a static method suffers from the following restrictions:

    * A static method can only call other static methods.
    * A static method must only access static data.
    * A static method cannot reference to the current object using keywords super or this.

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

    Related Questions
    View Answer
    What is the difference between static and non-static variables?
    View Answer
    What are static variables?
    View Answer
    What is static block?
    View Answer
    What are the uses of final method?
    View Answer
    What is final modifier?
    View Answer
    What are Access Specifiers available in Java?
    View Answer
    What are Access Specifiers?
    View Answer
    How are this() and super() used with constructors?
    View Answer
    What are the differences between Class Methods and Instance Methods?
    View Answer
    How are this() and super() used with constructors?
    View Answer
    What are the differences between Contructors and Methods?
    View Answer
    Can constructor be inherited?
    View Answer
    How does the Java default constructor be provided?
    View Answer
    What is Constructor?
    View Answer
    Can there be an abstract class without abstract methods in it?
    View Answer
    When you declare a method as abstract, can other nonabstract methods access it?
    View Answer
    When should I use abstract classes and when should I use interfaces?
    View Answer
    What are the differences between Interface and Abstract class?
    View Answer
    Can we instantiate an abstract class?
    View Answer
    What is an abstract class?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL Core Java Interview Questions

    User Options
    Sponsored Links

    Copyright ©2003-2015, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Cache = 0.09375 Seconds