No video

#12 If else in Java

  Рет қаралды 142,930

Telusko

Telusko

Күн бұрын

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

Пікірлер: 26
@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
@yomnakamal4988
@yomnakamal4988 Жыл бұрын
Best java course i could find for free thank u soooo much
@RonaldoGoud
@RonaldoGoud 5 күн бұрын
05:55 We don't do that here Avengers : Infinity War , Wakanda Scene 😂😂😂
@user-rw7hb8mo8j
@user-rw7hb8mo8j Жыл бұрын
Its really good example you have explained very well. thanks for the video.
@suryanaidu9193
@suryanaidu9193 Жыл бұрын
Thank you soo much Sir 😍❤️ For your videos and Efforts Sir 😍🥺 Can you please make Advance Java (jee).
@saiyadsakib5928
@saiyadsakib5928 Жыл бұрын
Yes sir..
@gollacharanyadav5567
@gollacharanyadav5567 28 күн бұрын
Thank you so much sir for giving this lecture
@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.
@abhishekbasu7837
@abhishekbasu7837 5 ай бұрын
Hi sir please make tutorial on Selenium with Java. For automation testing. Need your help
@umamaheswararao717
@umamaheswararao717 29 күн бұрын
Why are u using public class hello And what does (String args[]) means
@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
@PapuGhosh45
@PapuGhosh45 Жыл бұрын
thank you sir... . .... ..
@devanshusachdev7367
@devanshusachdev7367 Жыл бұрын
Notification: Marvel studios wants to know your location (5:55)
@quickkcare605
@quickkcare605 Жыл бұрын
Sir do an update for spring boot
@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💯🙏
@yashparkhe5370
@yashparkhe5370 8 ай бұрын
We don't do that here 😂
#13 If Else If in Java
5:39
Telusko
Рет қаралды 108 М.
How I would learn to code (If I could start over)
9:16
Jason Goodison
Рет қаралды 4,7 МЛН
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 9 МЛН
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 56 МЛН
Glow Stick Secret Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 10 МЛН
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 28 МЛН
#15 Switch Statement in Java
7:59
Telusko
Рет қаралды 137 М.
How to Become a Blockchain Developer from Beginner to Expert | Arcana
8:42
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,1 МЛН
#11 Logical Operators in Java
11:17
Telusko
Рет қаралды 134 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,1 МЛН
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 831 М.
#14 Ternary Operator in Java
4:39
Telusko
Рет қаралды 135 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 9 МЛН