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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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: 61690
192
  • Mark post as helpful
  • send pies
  • Report post to moderator
Welcome to the Ranch.
Please don't post the same question twice.
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Report post to moderator
Followups go here please.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!