How do i know which if will be excuted first??help | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How do i know which if will be excuted first??help

6th Mar 2016, 8:25 PM
NORA warsame
NORA warsame - avatar
5 Antworten
+ 4
It will execute in the order the if conditions are written in. For example if your code has two if statements and last and else statement. The first if statement condition will be checked, then the second if statement and final will be the else.
17th Mar 2016, 2:41 AM
David
David - avatar
0
First in line.
27th Mar 2016, 5:25 PM
Adrian-Valentin Corcodel
Adrian-Valentin Corcodel - avatar
0
first the external an then the internal "if"
3rd Apr 2016, 8:32 PM
Andreas Heil
Andreas Heil - avatar
0
it wil chck in seq order not in random order like from 1st if thn 2nd n 3rd ....so on
31st Jul 2016, 2:42 AM
Aravind
0
Java executes in orderly manner. So the first, second, etc if statement works the same way.
2nd Sep 2016, 10:24 AM
Amanyoh Edward Kwame Senu
Amanyoh Edward Kwame Senu - avatar