Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Data Types Converison :Array to Object  RSS feed

 
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
  • Report post to moderator
As in Java ,WE can aasign an array object to object of Object class.
ie
Object o;
int arr[]={1,2,3};
o=arr; //legal
Since arr refers to some list of values in memory ,After o=arr ,o also points to same memory location ,
Can'nt we access to the values beging refernced (list of values) through object o.

Thnx
 
Marshal
Posts: 60125
188
  • Mark post as helpful
  • send pies
  • Report post to moderator
Welcome to the Ranch.
Please don't post the same question twice.
 
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Report post to moderator
Followups go here please.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!