• Post Reply Bookmark Topic Watch Topic
  • New Topic

Miscellenous Code for Transient Variable  RSS feed

 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




This code is giving error I don't know why? Please give the reason
whereas following code is working fine.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only fields can be static and/or transient - it doesn't make any sense for local variables.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!