This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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!
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 20037
    
  44

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: arrays
 
jQuery in Action, 3rd edition