Explore Library
Code QuizBeginner

Char Literal Quotes

Spot the type error in this char declaration.

Codejava
public class Chars {
    public static void main(String[] args) {
        char grade = "A";
        System.out.println(grade);
    }
}

What is the bug in this code?