
- Forum
- Programming Talk
- Java
- DOUbt on Applications of static method
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 ...
-
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.
-
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.
-
05-01-2007, 12:42 PM #3
- 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

Reply With Quote





