#9 Arithmetic Operators in Java

  Рет қаралды 215,934

Telusko

Telusko

Күн бұрын

Пікірлер: 56
@Gattugamerfacts912
@Gattugamerfacts912 Жыл бұрын
Really sir you are great I complete 1 to 10 lecture in one day without any doubt thank you so much sir 🥺🙏
@nirongajanayake2515
@nirongajanayake2515 Жыл бұрын
Sir, I am really grateful for your teachings ❤️❤️
@yitingchen8278
@yitingchen8278 Жыл бұрын
note: when trying to assign a value or fetch a value, post-increment will behavior differently from pre-increment.
@sandunjayasekara131
@sandunjayasekara131 Жыл бұрын
Best series for learning java, Thank you sir
@beqari
@beqari Жыл бұрын
dude has 1.25x speed by default
@CRISTAL_MUSIC
@CRISTAL_MUSIC Жыл бұрын
Still i am watching him in 1.5×
@sudipsen3677
@sudipsen3677 Жыл бұрын
Yeah bro
@taniyasiddiqui5891
@taniyasiddiqui5891 Жыл бұрын
😂😂😂😂
@rajualiendog8954
@rajualiendog8954 Жыл бұрын
Yes me to watching at speet 1.5x
@g.prudvimeher7614
@g.prudvimeher7614 Жыл бұрын
Me watching at 1.75x
@kirubasathish3683
@kirubasathish3683 Жыл бұрын
sir so num1 = num1 + 2; and num1 += 2; is the same thing?
@The_Motobikers_World
@The_Motobikers_World Жыл бұрын
Yes, num1 +=2 internally works as num1=num1+2
@Codelikepro208
@Codelikepro208 Ай бұрын
yes both are same
@BLAZIN77KONG
@BLAZIN77KONG Жыл бұрын
best tutorial ever
@durgaraoponnuru17
@durgaraoponnuru17 Жыл бұрын
When we do num1++ or some other operations, values are being changed in output. Again when we perform another operation, its being performed on default number, instead of updated value. Can anyone explain this. For eg: num1=7; when num1++ is performed, value changed to 8, Again when another operation say num1 +=1; is performed value still showing 8 instead of 9.
@MrPradeepchandu
@MrPradeepchandu Жыл бұрын
Because you are giving num1=7 at start of code everytime you run
@SanjanaGupta279
@SanjanaGupta279 Жыл бұрын
See There is two option first is to use looping statement(For loop, while loop) For Example: class HelloWorld { public static void main (String[] args) { int num1=1; while(num1
@KshitijJaiswalBCS
@KshitijJaiswalBCS Ай бұрын
Why doesn't type promotion does work in case of int and long? for ex - int x = 2^31-1; int y = 2^31-1; long z = x+y; System.out.println(z); gives -2 and not 2^32-2. (please note '2^x' notations are just for understanding and not actually used in the code)
@ISHADUA-l6r
@ISHADUA-l6r 10 ай бұрын
Why video name is Assignment Operator in Java? it should be Arithmatic Operators in Java
@sm07
@sm07 Жыл бұрын
What is the difference Between public static void main(String a[])
@quickkcare605
@quickkcare605 Жыл бұрын
Just a name difference, just like you can give variable any name
@whytimes863
@whytimes863 Жыл бұрын
No difference, bro. You can put any name there a[], args[], sampath[], anything.
@sm07
@sm07 Жыл бұрын
Thanks guys
@priyanshsrivastava3443
@priyanshsrivastava3443 3 ай бұрын
no difference both are name suppose u use args than u can use a in any other operation which will make it easy to understand
@nishalsreekanta7802
@nishalsreekanta7802 11 ай бұрын
4:18 the output must have been 7 right? Because num1 is assigned with 9 after increment? 9 - 2 = 7. But how was the output 5 and even in multiplication it took 7 * 8 and not 5 * 8. Can someone explain this ?
@barathkraja5681
@barathkraja5681 10 ай бұрын
It was commented out with double slash after it was made to 9. So now num 1 will be with its original value and will remain as 7. Now when num1 -= 2 is coded, it will result in output as 5. The same goes with multiplication since now original value of num1 remains 7 and when the line num1 *=8 it's num 1= num1(which is 7) *8 = 56
@tharinduhasarangarubasinsi7714
@tharinduhasarangarubasinsi7714 Жыл бұрын
Sir you did really great :)
@challacharan1648
@challacharan1648 Жыл бұрын
very much help ful
@yashjangid4222
@yashjangid4222 5 ай бұрын
sir please dont say star say Asterisk so the students can get a new work thank you sir
@emhoang252
@emhoang252 11 ай бұрын
thank you
@alfredndlovu356
@alfredndlovu356 7 ай бұрын
Was the title of this video not meant to be "Arithmetic Operators in Java" ?
@Manisha_1490
@Manisha_1490 Жыл бұрын
Tq sir😊😊
@mango-strawberry
@mango-strawberry Жыл бұрын
9:56
@vkyfox
@vkyfox Жыл бұрын
yovvvvv this is arithmetic operator yarrrrr
@vivekvardhan6491
@vivekvardhan6491 Жыл бұрын
when you increment the value it should print 8 but why it is printing 7.
@hari3245
@hari3245 Жыл бұрын
Bcz we insert is this to system. Out. Println() ; // we insert than number it is perform value & condition & Inc/dec Ex: For(int vivek =1;vivek
@vivekvardhan6491
@vivekvardhan6491 Жыл бұрын
@@hari3245 So 1st the given value is going to print and then it will perform other condition right.
@hari3245
@hari3245 Жыл бұрын
@@vivekvardhan6491 yeah..
@abhijaiallgamesgamer2075
@abhijaiallgamesgamer2075 Жыл бұрын
i just realized u were using macOS
@mister_utaam667
@mister_utaam667 Ай бұрын
How to find percentage sirr😅😅
@Naveen_kumar14
@Naveen_kumar14 Жыл бұрын
Why he used double // slash can anyone explain me
@shazam8095
@shazam8095 5 ай бұрын
it is used to make that line a comment which will be ignored by java while running
@Ilamaran-n9f
@Ilamaran-n9f 4 ай бұрын
// for what purpose he was using this !!!
@Ilamaran-n9f
@Ilamaran-n9f 4 ай бұрын
in the literal series also he didn't explain about it😔
@kundhanrockzstudio916
@kundhanrockzstudio916 3 ай бұрын
Coz to ignore the title he used before , just the way rest all ignore ur comment dumbo
@IAmSharadhNaidu
@IAmSharadhNaidu 3 ай бұрын
​@@Ilamaran-n9fit's called a command which is used to ignore that line which basically means the compiler ignores that line from compiling we can use it by ctrl+l in vscode
@Ilamaran-n9f
@Ilamaran-n9f 3 ай бұрын
@@IAmSharadhNaidu thx bro
@user-qw2em4fu2t
@user-qw2em4fu2t 22 күн бұрын
maybe because they are universal and used in almost every language. They are called 'Literals" and used in html, js, python, etc.
@nandakishore8447
@nandakishore8447 Жыл бұрын
public class confus { public static void main (String args[]) { int num = 7; int a = ++num; int b = num++; System.out.println(a); System.out.println(b); } } this program getting output as 8 8 instead 8 7 any explanation please
@ckubri5061
@ckubri5061 Жыл бұрын
bro im not sure wt u r asking but, the post n pre increment does the same job but differently...like said in the video. ++num n num++ will give the same output for 7. As we know if we give our intial value e.g num=9, we get 10 either if we give ++num or num++ but ur class name😹
@barathkraja5681
@barathkraja5681 10 ай бұрын
So the reason why b is giving result as 8 is when a= ++num is executed value of num changes to 8 and so b fetches the last updated value of num which is 8 and prints it and then increments it to 9. Now when a=++num is executed a will be printed as 10 and b as 10 and then a as 11 and b as 11 and so on. Basically value of num changes even though you assign that to a separate variable like a or b.
@amitavaghosh7201
@amitavaghosh7201 Жыл бұрын
Too much videos uploaded at the same time
#10 Relational Operators in Java
8:05
Telusko
Рет қаралды 169 М.
#8 Type Conversion in Java
12:33
Telusko
Рет қаралды 323 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 168 МЛН
#21 Class And Object Theory in Java
5:48
Telusko
Рет қаралды 300 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
JavaScript ARITHMETIC OPERATORS in 8 minutes! ➕
8:28
Bro Code
Рет қаралды 46 М.
Harsh Truth of Java in 2024! Ft. Ultimate Java Developer @Telusko
28:46
Arithmetic Operators in Java
6:05
Neso Academy
Рет қаралды 70 М.
#12 If else in Java
12:59
Telusko
Рет қаралды 176 М.
#22 Class and Object Practical in Java
15:36
Telusko
Рет қаралды 279 М.
#11 Logical Operators in Java
11:17
Telusko
Рет қаралды 164 М.
arithmetic expressions in Java 🧮【4 minutes】
4:31
Bro Code
Рет қаралды 109 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 168 МЛН