File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes cross parameter cant compile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "cross parameter cant compile" Watch "cross parameter cant compile" New topic

cross parameter cant compile

Mansi Agarwal
Ranch Hand

Joined: Apr 11, 2012
Posts: 53

I just read somewhere that cross parameters cant compile. But when I made a sample program it is working fine?
Did I get the cross parameters in wrong way? Here is the example I made-

Please help!!
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 29233

That is perfectly legal. I'm not sure what you mean by cross parameters, but it isn't this.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mansi Agarwal
Ranch Hand

Joined: Apr 11, 2012
Posts: 53
Even I am not sure. If someone has more explanation related to cross parameters then please provide!!
In between I will check my resources!!
Paul Clapham

Joined: Oct 14, 2005
Posts: 18121

I never heard of "cross parameters" either.
I agree. Here's the link:
subject: cross parameter cant compile
Similar Threads
static methods and NULL
Overloading var-args and array
Casting int to long
var-args and overloading
reference to method1 is ambiguous ..... java can't decide whic one to call.