

Suppose I declare two variable i=1,j=5 and if i==1 then print j=6 then I instead of using if else we use j=i==1?6:7.You can replace your if else with ternary. Ternary operator is to assign the minimum (or maximum) value of two variables to a third variable.
Check out our website:
Follow Telusko on Twitter:
Follow on Facebook:
Telusko :
Navin Reddy :
Follow Navin Reddy on Instagram:
Subscribe to our other channel:
Navin Reddy :
Telusko Hindi :
Subscribe to the channel and learn Programming in easy way.
Java Tutorial for Beginners:
C Tutorial Playlist :
Android Tutorial for Beginners Playlist :
XML Tutorial :
Design Patterns in Java :
Socket Programming in Java :
Spring MVC Tutorial :
OpenShift Tutorial for Beginners :
Spring Framework with Maven :
Sql Tutorial for Beginners :
String Handling in Java :
Array in Java :
Java Servlet :
Exception Handling in Java :
source
Thoda awaaz lao mooh me
Great sir.. thank you
Sir voice is slow so speak highly
what is the object in this video? Is it is an inbuilt class or derived datatype and what is the use of it. Can anyone help me
What is 'object' in this video??? Is it data type??
Sir, in this video ,sound is not audible. And this problem is occuring in some of the other videos also.Kindly do the needful
i used float instead of double then too it showed 10.0 as output…..Why?
dont they take same space.
Why don't you improve the sound quality? sometimes it feels like you are shouting and the next moment nothing is audible.
low volume sir!!!
Good One ,all your explanation is from basic.
low volume.. difficult to understand what you speak. 🙁
Great tutorial, clearly explained!
object?
On compiling, I'm getting this message:
F:BeginsJAVAIntelliJControlStatementsAndArrays>javac IfElseVSTernOp.java
Note: IfElseVSTernOp.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
What is "-Xlint" ?
sir i have a doubt, what condition have you taken to be true in if(true) condition plz explain
Is it necessary to write package com.navin ; in this coding
nice one sir, thanks for this sir 🙂
You sound like you're eating a bowl of soup
volume is not good !!
U jus jumped to object like that? I give u a dislike for this vry video
poor voice clarity
and if value in the right is smaller then what ???
e.g .
true?new Integer(10):new Double(5.0);
in my case it also gives 10.0 although 5.0 is smaller than 10 but it is selecting the data type of minimume number i.e 5.0
sir speak loudly
amazing video
hey be clear.you are not audible properly.
Favoring Double over Integer is stupid.
Volume is too low.
class MyClass
{
public static void main(String args[])
{
{
int x = 5;
if (x < 1);
System.out.println("Hello");
}
}
}
in the program above the output is Hello. I don't understand why?
Currently using your videos to read code and figure out ways to create plugins for a custom programmed MC server I wanna make. Your videos are clear, short, and easy to understand. +1 like for each video and +1 sub for you. 🙂