Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Switch Statement

 
Anjana Ravindran
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me know whats this question talks about. What does parameters mean here? R they referring to case constants?

Question
What are the valid parameters for Switch statement?
 
pravin kumar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess..it's regarding all possible input parameters to the switch statement which are int,short,byte,char
 
Bert Bates
author
Sheriff
Posts: 8900
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
don't forget enums
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic