What data type Variable can be used in a switch statement ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. What data type Variable can be used in a switch statement ?Core Java
Ans. Variables used in a switch statement can only be a byte, short, int, or char ( and String with Java 7 and above )

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   switch   variable   data type      basic        rare


Related Questions

  Which of the following was not introduced with Java 5 ?
  Strings in switch were introduced in Which Java version ? a. Java 5 b. Java 6 c. Java 7 d. Java
 Difference between if and switch ? Can we replace all switch statements with if statements ?
 What is context switching wrt Threads in Java?
 How can we switch log4j to print logging on console / file ?
 Explain switch and router
 how to switch to the parent webpage?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: