Tag: Character

  • Java Quizs Question & Answers – Character and Boolean Data Types

    Q 1. What will be the output of the following Java program? class mainclass { public static void main(String args[]) { char a = ‘A’; a++; System.out.print((int)a); } } 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:$…