5.2 If Else in Java Tutorial Part 8 | Lecture

preview_player
Показать описание
If else in java programming conditional statements.
Suppose you want to check the number is prime or not so first we check is it divisible by 2 if yes then its even else its odd.Similary if we checking a is greater than b or c then so we will check if a is greater than b and b is greater than c if no than c is greater.

Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO20 (20% Discount)

Subscribe to the channel and learn Programming in easy way.

Рекомендации по теме
Комментарии
Автор

Am from chennai working in a Private company
Really much appreciated for your way of explanation,
Am going to Selenium Java class they teach me core java and above concept something i can understand, But am watching this video i completely undersood the Conditional statements concept.
Thanks :) :) :) :) :) a lot for your valuable teaching.

deivasigamanimurugan
Автор

nice one sir, already know this concept but learned few more, thanks 🙂🙂

SmartProgramming
Автор

Very nice video. Just 1 correction - at 6:07 it should be "a b &&"
&& is AND operation. I know this was unintentional error, like a typo, but just adding a comment if somebody gets confused by this.

kunalalshi
Автор

Hi Naveen, the second condition you have entered is incorrect. That should be b>a && b>c.

adharsh
Автор

In AND operation if the result has to be true only when both A and B are True, So in the if statement we are not sure if either of the one a>b and a>c are true in that case in the else if statement shouldn't we check for both b>c && b>a ??

jithendrabaswareddy
Автор

Hello sir.... i wanted to ask that if the first condition in the if statement... ie. a>b is true but the a>c is not.. then the statement won't work.. but how does it confirms us that a<b in the second else if statement

parthtrehan
Автор

Hello sir.... i wanted to ask that if the first condition in the if statement... ie. a>b is true but the a>c is not.. then the statement won't work.. but how does it confirms us that a<b in the second else if statement
REPLY

prathameshdeshmukh
Автор

Sir, if i want to add the component at runtime then how, i can achieve it in java

khanmeher
Автор

Besides learning JAVA i learnt another thing that Mac is much faster than Windows. There is no execution time in Mac

debashishmoharana
Автор

class MyClass
{
public static void main(String args[])
{
int x = 0;
if (x == 0)
System.out.println("hi");
else
System.out.println("how are u?");
System.out.println("hello");
}
}

the output of the above code is = hihello

I don't understand why?

ashishmeshram
Автор

Can we make a prog. In which we giv any number at output and then it tell us even or odd....??

Raj_Patel
Автор

It would be nice of you if you can explain me the same

prathameshdeshmukh
Автор

sir your voice is not much audible in this video

pankajmelkani
join shbcf.ru