Home / MCQ Bank / Computer
Computer Data Types And Variables Difficulty: Medium

What will be the output of the following Java code? class char_increment { public static void main(String args[]) { char c1 = 'D'; char c2 = 84; c2++; c1++; System.out.println(c1 + " " + c2); } }

Select the correct option to test your answer:

More Computer Questions

Which of the following is used to read data from a file in C++? What is the output of getOption("defaultPackages") in R studio? What is the main difference between a mainframe and a super computer? Which of the following can be seen as a switch-case statement? Which of the following is not a branch and bound strategy to generate branches?