switch(a){ System.out.println("Hello World");}
a) int and float
b) byte and short
c) char and long
d) byte and char
What is the valid data type for variable “a” to print “Hello World”?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the valid data type for variable “a” to print “Hello World”?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!