What Will Be The Output Of The Following Java Codep Pre #639
What will be the output of the following Java code?</p> <pre><code class="language-java"> public class Program { public static class Char { public void print(int a) { System.out.println((char)c); } } public static void main(String[] args) { Program.Inner i = new Program.Inner(); i.print(97); } } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 Types of Classes (Using Java) - Static Class - Quiz No.1.
What will be the output of the following Java code?
public class Program { public static class Char { public void print(int a) { System.out.println((char)c); } } public static void main(String[] args) { Program.Inner i = new Program.Inner(); i.print(97); } }
A
The unicode character of the integer is A
The unicode character of the integer is a
Error