+ 1

Conditional statements

is there if else statement in java or only if

14th Mar 2018, 12:35 PM
Harish Vellala
Harish Vellala - avatar
1 Antwort
+ 10
both are available in java , according to need of program these are used //if else behave like switch() with break after each case //if() executes only when condition evaluates to true
14th Mar 2018, 12:55 PM
Gaurav Agrawal
Gaurav Agrawal - avatar