Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Object/Variables and its Access/Methods

 
eshu khare
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Declaring and mentioning of variable and object confuses in between.Can anyone please illustrate it with a composite good example.
 
eshu khare
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Declaring and mentioning of variable and object confuses in between.Can anyone please illustrate it with a composite good example.

Why anyone is not finding this question answerable please let me know,so that I could also be clear with the topics.

Thanks & Regards
Eshu
 
Adinath Shirsath
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
variables(Object references) are on stack while acutal objects are on Heap

look at this link

http://www.javaranch.com/campfire/StoryCups.jsp


let me know if it is useful
 
eshu khare
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adinath Shirsath Thanks for your kind help.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic