Exforsys
+ Reply to Thread
Results 1 to 3 of 3

DOUbt on Applications of static method

This is a discussion on DOUbt on Applications of static method within the Java forums, part of the Programming Talk category; I know about static method but I am curious to know where would one use static method in real time ...

  1. #1
    cyrus is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    128

    DOUbt on Applications of static method

    I know about static method but I am curious to know where would one use static method in real time applications while developing applications.


  2. #2
    sammy is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    144
    The main place where static method is applied is when the method is stateless. There is nothing wrong in using the static method is used when there is a state but it will be of no use.


  3. #3
    ashfaque_khan6 is offline Junior Member Array
    Join Date
    May 2007
    Answers
    3
    Generally Static methods are used to load the class prior to execution of the constructor using class.forname methods.
    In real time if u implementing a class for an interface provided by java soft, like while making a driver class or webservers these static methods is used.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...