| Author |
How to use
|
James Tharakan
Ranch Hand
Joined: Aug 29, 2008
Posts: 580
|
|
I just came across this statement Object c = new long[4]; How do i use use this . please explain
|
SCJP 6
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
|
 |
Satish Chilukuri
Ranch Hand
Joined: Jun 23, 2005
Posts: 266
|
|
An array is a subclass of Object. To use the variable as an array just do cast and use it. long[] array = (long[])c;
|
 |
 |
|
|
subject: How to use
|
|
|