Suppose x is a char variable with a value 'b'. What is the output of the statement System.out.println(++x)?

a. a
b. b
c. c
d. d


c The ++ and -- operators can be applied to a char variable. ++x is preincrement. x is 'b' before ++x. After ++x, x becomes c.

Computer Science & Information Technology

You might also like to view...

If there is an if-else block within another if-else block, then the block is said to be __________.

A. compound B. nested C. cascading D. you can’t write if-else blocks within an if-else block.

Computer Science & Information Technology

Union queries are can be created in Design view or SQL view

Indicate whether the statement is true or false

Computer Science & Information Technology

The number of frames per second (fps) in a movie is called the ____.

A. frame rate B. frame speed C. point of view D. aspect ratio

Computer Science & Information Technology

The topic "Fly fishing in western Colorado" focuses the presentation based on _____.

A. point of view B. time C. geography D. element

Computer Science & Information Technology