Тёмный
No video :(

#12 If else in Java 

Telusko
Подписаться 2,4 млн
Просмотров 139 тыс.
50% 1

Check out our courses:
Enterprise Java Spring Microservices: go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : go.telusko.com...
Coupon: TELUSKO20 (20% Discount)
For More Queries WhatsApp or Call on : +919008963671
Udemy Courses:
Spring: go.telusko.com...
Java:- go.telusko.com...
Java Spring:- go.telusko.com...
Java For Programmers:- go.telusko.com...
Python : go.telusko.com...
Git : go.telusko.com...
Docker : go.telusko.com...
website : courses.telusk...
In this lecture we are discussing:
1)What is conditional statements?
2)types of conditional statements
a) if-else
b) switch (next lecture)
c) ternary operator (next lecture)
d) nested if-else (next lecture)
e) if-else-if ladder (next lecture)
3)syntax of if-else
4)example on if-else condition
#1
-- conditional statement is a statement that can be true or false.
-- suppose if ask student is pass. (answer yes or no)
-- this type of statement of statement is conditional statement.
#2
In this part we are only discussing about if-else and
in next lecture we are discussing if-else-if ladder, ternary operator and switch statement.
#3
syntax of if-else
-- condition is either true or false after evaluation
-- remember like c and c++, we cannot use number directly as condition of if-else
- if(5) -- not allowed in java
-- you get Type mismatch: cannot convert from int to boolean
if(condition)
{
//code
//either this part execute
}
else
{
//code
//or this part execute
}
#4
example:
if want to check a given number is even or odd then;
int num=13;
if(num%2==0)
System.out.println("Even"); //here we not use braces for single statement {}
else
System.out.println("Odd"); // here we not use braces {}
Note: for single statement braces is not required but for multiple statement it is required.
Github repo : github.com/nav...
Java:- bit.ly/JavaUde...
Spring:- bit.ly/SpringU...
More Learning :
Java :- bit.ly/3x6rr0N
Python :- bit.ly/3GRc7JX
Django :- bit.ly/3MmoJK6
JavaScript :- bit.ly/3tiAlHo
Node JS :- bit.ly/3GT4liq
Rest Api :-bit.ly/3MjhZwt
Servlet :- bit.ly/3Q7eA7k
Spring Framework :- bit.ly/3xi7buh
Design Patterns in Java :- bit.ly/3MocXiq
Docker :- bit.ly/3xjWzLA
Blockchain Tutorial :- bit.ly/3NSbOkc
Corda Tutorial:- bit.ly/3thbUKa
Hyperledger Fabric :- bit.ly/38RZCRB
NoSQL Tutorial :- bit.ly/3aJpRuc
Mysql Tutorial :- bit.ly/3thpr4L
Data Structures using Java :- bit.ly/3MuJa7S
Git Tutorial :- bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
www.telusko.com

Опубликовано:

 

15 янв 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@ayodhyarode4522
@ayodhyarode4522 Год назад
I was thinking Java is difficult to learn. But you teach every concept friendly , like two friends are taking. Now I think Java is simple and fantastic programming language. Thank you 🙏 @navin reddy sir for teaching us java in simple way. My each concept of java is now clear.
@sriramb341
@sriramb341 6 месяцев назад
Java is easy if you are well versed in c or c++
@flymykim
@flymykim Год назад
"when you use else, there is a compulsion to use if." You have a very excellent way with words. It would be a crime if youre not a PHD. CS professor is one of your callings. Even the explanation of string immutability you have is excellent. Concise and also covering stack/heap memory. Perhaps the best explanations of java concepts on youtube.
@fezaiozcan2227
@fezaiozcan2227 Год назад
I am learning Java , i have tried many tutorials and these are the best ones. thanks
@user-rw7hb8mo8j
@user-rw7hb8mo8j Год назад
Its really good example you have explained very well. thanks for the video.
@yomnakamal4988
@yomnakamal4988 Год назад
Best java course i could find for free thank u soooo much
@gollacharanyadav5567
@gollacharanyadav5567 18 дней назад
Thank you so much sir for giving this lecture
@suryanaidu9193
@suryanaidu9193 Год назад
Thank you soo much Sir 😍❤️ For your videos and Efforts Sir 😍🥺 Can you please make Advance Java (jee).
@saiyadsakib5928
@saiyadsakib5928 Год назад
Yes sir..
@debmalyamukherjee6332
@debmalyamukherjee6332 Год назад
Sir thanku so much for this new playlist.. I learn lot from this new playlist.. sir one request to you that plz make one new playlist like this on spring boot from basic to advanced.plzz sir
@Vijay-zt4nx
@Vijay-zt4nx Год назад
your class is simply super but small request from my side explain syntax along with the example, it will be more useful.
@umamaheswararao717
@umamaheswararao717 18 дней назад
Why are u using public class hello And what does (String args[]) means
@devanshusachdev7367
@devanshusachdev7367 Год назад
Notification: Marvel studios wants to know your location (5:55)
@abhishekbasu7837
@abhishekbasu7837 5 месяцев назад
Hi sir please make tutorial on Selenium with Java. For automation testing. Need your help
@PapuGhosh45
@PapuGhosh45 Год назад
thank you sir... . .... ..
@akshay7820
@akshay7820 Год назад
5:55 We don't do that here
@venkyVenkatesh12345-r
@venkyVenkatesh12345-r Год назад
how can i practice sir iam understood everything you tolled
@christhelemaque4187
@christhelemaque4187 Год назад
Please sir update for SpringBOot
@Caped_Crusader7
@Caped_Crusader7 Год назад
Do we not need curly brackets for if and else statements?
@Unknown-rt9vl
@Unknown-rt9vl Год назад
For larger Statment needed
@hritikyemde1014
@hritikyemde1014 Год назад
If your "if" or "else" block contains more than one statements then it requires curly braces, but if your "if" or "else" block contains single statement then it curly braces are optional
@AnuragRawat01
@AnuragRawat01 Год назад
When you have only one statement after the condition then it's optional to use curly brackets But when you have more than one statement after the condition then it becomes compulsion to use curly brackets 😃 Hope you understand it💯🙏
@quickkcare605
@quickkcare605 Год назад
Sir do an update for spring boot
@yashparkhe5370
@yashparkhe5370 7 месяцев назад
We don't do that here 😂
Далее
#13 If Else If in Java
5:39
Просмотров 104 тыс.
why are switch statements so HECKIN fast?
11:03
Просмотров 400 тыс.
7 Days Stranded In A Cave
17:59
Просмотров 45 млн
#11 Logical Operators in Java
11:17
Просмотров 130 тыс.
#8 Type Conversion in Java
12:33
Просмотров 256 тыс.
Python 101: Learn the 5 Must-Know Concepts
20:00
Просмотров 1,1 млн
If __name__ == "__main__" for Python Developers
8:47
Просмотров 395 тыс.
Solve Any Pattern Question With This Trick!
57:20
Просмотров 2,3 млн
#15 Switch Statement in Java
7:59
Просмотров 133 тыс.
#40 Encapsulation in Java
11:42
Просмотров 162 тыс.