Menu
Question Index
...

What will be the output of the following program?

public class System {
    public static void main(String args[]) {
        char keyboard = 'K';
        char chair = 'C';
        Character table = new Character(keyboard);
        Character table1 = new Character(chair);
        System.out.println(table + table1);
        System.out.print(table + " " + table1);
    }
}


KC
K C
142
KC
142
K C
Compilation Error
Runtime Error

Doubts

Problems

Topic: Java Character Class

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App