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 Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Objects" Watch "Objects" New topic
Author

Objects

Terry McKee
Ranch Hand

Joined: Sep 29, 2000
Posts: 173
Is it correct to assume that if a constructor or method takes an Object argument that passing primitives will cause a compiler error?
Bin Zhao
Ranch Hand

Joined: Oct 04, 2000
Posts: 73
I think it is correct since primitive can not be converted to reference type
Sagar Sharma
Ranch Hand

Joined: Aug 31, 2000
Posts: 92
yes i think it is true.
Sagar
 
IntelliJ Java IDE
 
subject: Objects
 
developer file tools