what is the difference between if statement and a switch statement job interview
768 views · Published 20 November 2012 · 2:09 · Indexed 3 October 2026
Channel: Interview DOT · 2012 · Science & Technology
Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. You can submit your resume for right Job http://www.interviewdot.com/upload-resume/uploadresume.htm http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com Welcome to www.InterviewDot.com What is the difference between an if statement and a switch statement ? Job Java Interview Questions What is the difference between an if statement and a switch statement ? The if statement is used to select among two alternatives. It uses a boolean expression to decide which alternative should be executed. The switch statement is used to select among multiple alternatives. It uses an int expression to determine which alternative should be executed. Can a method be overloaded based on different return type but same argument type ? No, because the methods can be called without using their return type in which case there will be a chaos for the compiler. You can submit your resume for right Job http://www.interviewdot.com/upload-resume/uploadresume.htm http://www.interviewdot.com http://www.interviewdot.com http://www.interviewdot.com
More from this channel
-
7:19
java pass by value
-
3:19
java interview best books
-
8:03
Explain java finally block
-
4:29
what are the advantages of OOPL Java Interview
-
5:51
Top 4 Job Interview Tips How to prepare for Job interview
-
5:29
Top Job Interview TIPS What are your strengths How to answer
-
3:49
Top 16 Job Interview Questions Best Job Interview Questions
-
3:52
Core Java Interview Questions and Answers Collections Interview Tips