Tag: Character
-
Java Quizs Question & Answers – Character and Boolean Data Types
Q 1. What will be the output of the following Java program? A. 64B. 65C. 67D. 66 Show Answer Answer:-D. 66 Explanation ASCII value of ‘A’ is 65, on using ++ operator character value increments by one. output:$ javac mainclass.java $ java mainclass 66 Q 2. What will be the output of the following Java…