Flow control statement Interview Questions for Fresher and Experienced


1) How many flow control statements in java?
2) What is the purpose of conditional statements?
3) What is the purpose of looping statements?
4) What are the allowed arguments of switch?
5) When we will get compilation error like “possible loss of precision”?
6) Inside the switch case vs. default vs. Break is optional or mandatory?
7) Switch is allowed String argument or not?
8) Inside the switch how many cases are possible and how many default declarations are< possible?
9) What is difference between if & if-else & switch?
10) What is the default condition of for loop?
11) Inside for initialization & condition & increment/decrement parts optional or mandatory?
12) When we will get compilation error like “incompatible types”?
13) We are able to use break statements how many places and what are the places?
14) What is the difference between break& continue?
15) What do you mean by transfer statements and what are transfer statements present in java?
16) for (; ;) representing?
17) When we will get compilation error like “unreachable statement “?
18) Is it possible to declare while without condition yes -what is default condition nowhat is error?
19) What is the difference between while and do-while?
20) While declaring if , if-else , switch curly braces are optional or mandatory?

Comments

Popular posts from this blog

Exception Handling

Wrapper Class

Collections Framework Interview Questions for Fresher and Experienced