Vidyalelo
Java Programming · Q95

Operators

Programming · Java Programming · question 95

Q95

What is the valid data type for variable "a" to print "Hello World"? switch(a) System.out.println("Hello World");

A.
int and float
B.
byte and short
C.
char and long
D.
byte and char
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board