This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Switch Statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Switch Statement" Watch "Switch Statement" New topic

Switch Statement

Anjana Ravindran
Ranch Hand

Joined: Aug 22, 2005
Posts: 76
Let me know whats this question talks about. What does parameters mean here? R they referring to case constants?

What are the valid parameters for Switch statement?
pravin kumar
Ranch Hand

Joined: Nov 03, 2005
Posts: 30
i's regarding all possible input parameters to the switch statement which are int,short,byte,char
Bert Bates

Joined: Oct 14, 2002
Posts: 8898
don't forget enums

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
I agree. Here's the link:
subject: Switch Statement
It's not a secret anymore!