Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 02-11-06, 04:57 PM   #1 (permalink)
Senior Member
 
Join Date: Aug 2006
Age: 28
Posts: 275
Thanks: 0
Thanked 5 Times in 5 Posts
Thanks: 0
Thanked 5 Times in 5 Posts
Rep Power: 5 radhika743 is on a distinguished road
Static Method in JAVA?

Friends can anybody throw your light on this Question ?


Give an example of where you might use a static method ?
radhika743 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-11-06, 05:03 PM   #2 (permalink)
Member
 
harikotha's Avatar
 
Join Date: Oct 2006
Posts: 66
Thanks: 2
Thanked 1 Times in 1 Posts
Thanks: 2
Thanked 1 Time in 1 Post
Rep Power: 3 harikotha will become famous soon enough
Re: Static Method in JAVA?

Hi,
main method is static method this is one the best example ,i mean when ever u want to run a java program with out creating an object then u can use this static keyword






Quote:
Originally Posted by radhika743 View Post
Friends can anybody throw your light on this Question ?


Give an example of where you might use a static method ?
harikotha is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 13-11-06, 08:06 PM   #3 (permalink)
Senior Member
 
jasmine84's Avatar
 
Join Date: Oct 2006
Posts: 426
Thanks: 10
Thanked 29 Times in 25 Posts
Thanks: 10
Thanked 29 Times in 25 Posts
Rep Power: 12 jasmine84 is a glorious beacon of light jasmine84 is a glorious beacon of light jasmine84 is a glorious beacon of light jasmine84 is a glorious beacon of light jasmine84 is a glorious beacon of light jasmine84 is a glorious beacon of light
Re: Static Method in JAVA?

when a method doesnot act on instance variables but act only on local variables ,it is cald static method.
JVM executes static blocks initially and den executes objects.
we can also execute static method without main method.
static variables are stored on method area.
jasmine84 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-11-06, 11:39 AM   #4 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 1 Times in 1 Posts
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 3 naveenvattipalli is on a distinguished road
Re: Static Method in JAVA?

Hi

Static is like the global variable,where it is given the single memory location
what ever the updations u do in the complete program those will be reflected to it.

well abt static methods we can call the methods with the class name,with out the instance of the class.
naveenvattipalli is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
JAVA Q&A part1 naga JAVA Technologies 2 27-04-07 12:53 PM
JAVA Downloads yathish JAVA Technologies 2 22-01-07 01:37 PM
java notes naga JAVA Technologies 5 22-09-06 10:30 PM
java JSP naga JAVA Technologies 4 21-08-06 05:03 PM
JAVA PART3 naga JAVA Technologies 0 18-02-06 07:48 AM


All times are GMT +6.5. The time now is 10:04 AM.





Search Engine Optimization by vBSEO 3.1.0