Exforsys

Online Training

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 ...


Go Back   Exforsys > Programming Talk > Java

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-07-2006, 02:01 AM
Senior Member
 
Join Date: Apr 2006
Posts: 153
cyrus is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-07-2007, 09:40 AM
Senior Member
 
Join Date: Apr 2006
Posts: 162
sammy is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-01-2007, 12:42 PM
Junior Member
 
Join Date: May 2007
Posts: 3
ashfaque_khan6 is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Objective-C FAQ stes@pandora.be Tech FAQ 0 06-18-2004 02:58 PM
Objective-C FAQ stes@pandora.be Tech FAQ 0 05-18-2004 02:59 PM
comp.lang.eiffel Frequently Asked Questions (FAQ) Franck Arnaud Tech FAQ 0 04-17-2004 08:27 AM
Smalltalk FAQ (v.1.0) Vikas Malik Tech FAQ 0 04-17-2004 08:27 AM
Objective-C FAQ stes@pandora.be Tech FAQ 0 04-16-2004 02:51 PM


All times are GMT -4. The time now is 07:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.