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 Why call int version,not char version? 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 "Why call int version,not char version?" Watch "Why call int version,not char version?" New topic

Why call int version,not char version?

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
First of all I wanna apologize for posting this topic again, but I really do not understand what is going on. I have read each and every ones reply and I still have some question
first of all
I have created the following code

The out put when I run this main method is
int version printed out
Now all I do is interchange the parameters for the printMethod so now my code looks like

Now guess what the output is
char version printed out
I have looked in the previous topic again and again and I am not able to understand this. Also I have looked at the JLS and it does not help either. Please if you guys don't mind can you help me with this one.....
Thanks in advance
Ragu Sivaraman
Ranch Hand

Joined: Jul 20, 2001
Posts: 464
Please scroll down the list of questions posted
you will wide variety of explanations for this question
I agree. Here's the link:
subject: Why call int version,not char version?
It's not a secret anymore!