OOPS
November 29, 2023
Question 15857 – STQC-NIELIT SC-B 2021
November 29, 2023
OOPS
November 29, 2023
Question 15857 – STQC-NIELIT SC-B 2021
November 29, 2023

OOPS

Question 77
Consider the following code segment in JAVA
switch(x)
{
default;
system.out.println(“Hello”);
}
Which of the following data types are acceptable for x?
A
Byte and char
B
Long and char
C
Char and float
D
Byte and float
Question 77 Explanation: 
The possible values are either integer constant or character constant.No other data type values are allowed.
Correct Answer: A
Question 77 Explanation: 
The possible values are either integer constant or character constant.No other data type values are allowed.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!