Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

STATIC FUNCTIONS

 
dipayan chatterjee
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all
does a static field created in a method keeps the same value between calls
 
al nik
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't use static for a filed in a method!
 
Jithu Joijoide
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah gotcha... Thanks al nik... sorry for the error from this old multilinguist.

Dipayn ,
Al is right.. I found a nice discussion on this topic at the below link

http://www.velocityreviews.com/forums/t135242-static-local-variables-not-allowed-in-java-.html

Rgs
Jithu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic