Bookmark Topic Watch Topic
  • New Topic

Abt Memory  RSS feed

 
Venkatesh Ganesh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi...

I have learnt from a book that a constructor and a method(both in the same class)might have the same name.And the answer given by the author was:
They both occupy different 'namespaces'so no collision.

1.I want to know what is meant by 'namespaces'.?
2.In Memory where the class,variables,methods are stored?

Thanks
Venkatesh
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Report post to moderator
what a conincidence... someone with exactly your name posted exactly the same question in the intermedidate forum. maybe you two guys could get in contact and discuss the question first?
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Jan Groth:
what a conincidence... someone with exactly your name posted exactly the same question in the intermedidate forum. maybe you two guys could get in contact and discuss the question first?


Meow! Very catty
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!