File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "arrays" Watch "arrays" New topic
Author

arrays

adam Lui
Ranch Hand

Joined: Sep 03, 2007
Posts: 186
"when both source type and target type are arrays, the elements of both arrays must be object reference types and not primitive types. also, the object reference type of the source array must be (implicitly) convertible to the object reference type of the target array."

can anyone pls give any example?

i dont get the points here at all!


boolean b = true;<br />System.out.println ("I believe in Java.<br />Java will make my dream come " + b);
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18508
    
  40

i dont get the points here at all!


Well, since we don't have the context. We don't get the point that this is referring to either.


As a guess, this is describing the two parameters to a method. And the restrictions on those parameters, which are...

- Both parameters must be array of Objects.
- The elements of the source array must be the same as elements of the target array, or a subclass of elements of the target array.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: arrays
 
Similar Threads
Question on array conversion
Casting arrays.
Object array & primitives array
Array upcasting
Conversion of object references