Advertisements
Advertisements
Question
Give the output of the following method definition and also write what mathematical operation it carries out:
void test3(char c)
{
System.out.println( (int) c);
}
if 'm' is passed to c.
Answer in Brief
Solution
109
(The mathematical process carried out is to display the ascii value of a character).
shaalaa.com
Is there an error in this question or solution?