What is the difference between a switch statement and an if statement?

What is the difference between a switch statement and an if statement?

Both the statements provides the condition checking of the expressin but Switch statement reduces the complexity of using the multiple if-else clause.

By:Jalees
Date:2015-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher