Programming Languages Java Objective
Jan 02, 2013

Consider:

switch(x)

{

/* some code */

}

 

Which data types is/are acceptable for x?

Choose the correct answer:
A) float & long
B) byte & char
C) float & char
D) long & short
Detailed Explanation

There are two data types which can be used in switch e.g byte & char.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback