The answer is: 1 - 0 , j value is 0,afterthat i value will be increment by 1...
@JavaQuestions
4 ай бұрын
Yes, that's right 👍👍
@Elunico989
3 ай бұрын
I genuinely want to learn this 😢😢😢
@SidheshwarBhingardeve-je5yt
Ай бұрын
Good 👍
@dheerajkumar-le8ji
11 күн бұрын
@@Elunico989 what's ua background
@NeoTechVision101
5 ай бұрын
It's 1-0 since in post incrementation, before incrementing i, you first need to evaluate the whole expression; therefore first adding i (0) and j (0), then i will be incremented. Meaning, only after assigning 0+0 to j will i be incremented.
@JavaQuestions
5 ай бұрын
Yes that's right 👍👍
@charleswills4453
8 ай бұрын
Isn’t a double equal sign ?
@JavaQuestions
8 ай бұрын
No
@tekamanurag6065
10 ай бұрын
The expression is evaluated first with the current value of the variable in which the post increment is used then after that it is incremented .
@Simran-o5x
9 ай бұрын
0-1 bcz i is given 0 and nthg any other operation on that like i =...??nthg so i print 0 and j's first assigned value is i=0..but after that given is j=i++ means 0++=1so last assigned value in j is 1...so the 0 and 1 is correct answer
@JavaQuestions
9 ай бұрын
Thanks for the comment The correct answer is 1-0
@Simran-o5x
9 ай бұрын
@@JavaQuestions how it is plz explain it's necessary for me
@Simran-o5x
9 ай бұрын
@@JavaQuestionsthey said print the value of j is increment is i++ not value of i
@JavaQuestions
9 ай бұрын
Sorry for the late reply J =i++ means after assigning the value of i to j then incrementing i value. Got it bro ?
@asmit3060
Жыл бұрын
1-o is the write answer because i value is increasce after i and j get add so that j=i++ +j the j=0 and i become1.
@JavaQuestions
Жыл бұрын
Correct 💯 Good explanation, thank you 😊
@042j.jeyrengarajendiran6
Жыл бұрын
First to print i I value be intitaliased as 0 so I is 1 j =1+0=I++ + j=1 So answer is option c 0-1
@JavaQuestions
Жыл бұрын
Thanks for the comment The correct answer is 1-0
@64aashishchaudhary5
9 ай бұрын
1-0 This is because the expression i++ increments the value of i after using its original value in the operation. Therefore, i becomes 1, and j retains its original value of 0.
@JavaQuestions
9 ай бұрын
Yes, that's right 👍👍 Thanks for the explanation
@firstisforever6402
8 ай бұрын
2nd opt is correct I think..
@JavaQuestions
8 ай бұрын
Yes, that's right 👍👍
@ayushchandel1228
6 ай бұрын
Comment padh k answer koi bhi de sakta hai... Hero nhi bano
@DebadityaBarai
3 ай бұрын
1-0 because i+ + means =i+1 i=0 increment +1 = 0+1=1. And j = 0 only + 0+0=0 answer 1-0
@JavaQuestions
2 ай бұрын
Yes, that's correct 👍👍
@Amit3t2t
11 ай бұрын
1-0 is correct answer cause value of j is assigned 0 first then program control perform addition by adding 1+0 then print the value of i and j
@JavaQuestions
11 ай бұрын
Yes, that's right 👍👍 Thanks for the explanation
@jayadipbarade7288
8 ай бұрын
Yes
@archanamishra8941
Жыл бұрын
Post incrementation, j = 0 + 0 then print(i or (0+1) + "-" + 0) so yup it is 1-0 mate, basics
@JavaQuestions
Жыл бұрын
Thanks for the comment You are Correct Bro 👍
@WajidaKurne
8 ай бұрын
1-0 option is correct. Decribe I++ value is 1 and +j is do not increment the value so 0. Second option .
@JavaQuestions
8 ай бұрын
Yes, that's right 👍👍
@er.mansuri
5 ай бұрын
1-0 , because i++ is a post increment
@JavaQuestions
5 ай бұрын
Yes, that's right 👍👍
@usmanahmadkhan2336
5 ай бұрын
The initial value of i is 0. j is initially set to 0. After the expression j = i++ + j, i becomes 1 and j remains 0. The final output is 1 - 0.
@JavaQuestions
5 ай бұрын
Yes, that's right 👍👍
@RojalinMohapatra-t2n
2 ай бұрын
Thanks for the explanation 🙂
@asagiai4965
9 ай бұрын
1-0 Because the other variable doesn't actually change
@JavaQuestions
9 ай бұрын
Yes, that's right 👍👍
@sapnaadhikari2888
7 ай бұрын
1-0 is output
@JavaQuestions
7 ай бұрын
Yes, that's right 👍👍
@_GT_1_
10 ай бұрын
i think 0-1 reason for int i=0;// i value zero that assign and then j=i;//i value is zero j=0; j=i++(increament operator)+j; then can be assin i valuei zero and known i value is one ; j=1+0; j=1;// j value is assign in one now print value is i is zero and j is one i+"-"+j=0-1from output
@JavaQuestions
10 ай бұрын
Thanks for the comment The correct answer is 1-0
@ashimroy3891
9 ай бұрын
@@JavaQuestions i++ will increment i from 0 to 1. Will j also not be updated to 1?
@JavaQuestions
9 ай бұрын
Yes, it is a post increment.
@karthigamingff8061
11 ай бұрын
I cannot understand sir. Could you please tell me why it will be answer was 1-0
@shilpabarnawalbaarnawal8278
11 ай бұрын
1.i=0 2.j=0 3.j=0+0 => j = 0 as i is post incremented 4.now i=1 Output is 1-0
@JavaQuestions
11 ай бұрын
Yes, that's right 👍👍
@ZehraFatima-SHAKEEL
10 ай бұрын
1-0😊
@JavaQuestions
9 ай бұрын
Yes, that's right 👍👍
@soumyadityamondal4863
Жыл бұрын
According to me it is 0-0 ,bcz i++ is post increament ... It means at first we have to use the value then increase.... Thnk u😅
@JavaQuestions
Жыл бұрын
Thanks for the comment The correct answer is 1-0
@soumyadityamondal4863
Жыл бұрын
U r right... I just mistaken i with j at the print statement.... j=0 and then i=1
@honeybunny1301
Жыл бұрын
Hello sir, I am one of your oldest subscriber.. Can you please make a video on career progression of a java developer?? Like after 8 9 years what happens?
@hareeshpoojar225
11 ай бұрын
1-0 but first i thought its 0-0 but after giving five minutes to this question i got answer.
@JavaQuestions
11 ай бұрын
Yes, that's right bro
@VamsiVamsi-u9b
Жыл бұрын
1-0 is correct answer j=0 and i=1 when after increament it will become 1
@JavaQuestions
Жыл бұрын
Yes, that's right 👍
@DebadityaBarai
Жыл бұрын
1-0 is correct answer beacuse i value is increment i ++but first j value is 0 +j means j=0 so after we are get i =0+1=1 and+J means j=0
@JavaQuestions
Жыл бұрын
Yes, that's right 👍
@muhammadumair486
10 ай бұрын
0-1 because post fix increment after initialize the values while in prefix increment first increase the value then initialize the values so answer is 0-1
@JavaQuestions
10 ай бұрын
Thanks for the comment The correct answer is 1-0
@charllesramosdasilva-rj2of
9 ай бұрын
Java accept is notation of incremental +j its call pre-increment Depending on the version, an error will appear
@18_lisaroy29
Жыл бұрын
1-0 is the answer because j=0+0 and i is incremented so i =1🎉
@JavaQuestions
Жыл бұрын
Yes, that's right.., you are awesome
@sumedhtayade821
Жыл бұрын
1 - 0 because i is post incremented and j is pre incremented
@JavaQuestions
Жыл бұрын
Correct 💯
@goutambarfa7072
Жыл бұрын
@@JavaQuestions what pre increment only operator is there btw i and j
@rdevivaranasi9908
Жыл бұрын
B ,, 1-0 ☑️ correct ans Note explanation !## Int i=0 // initially i value 0 Go to print statement Increments( i++ ,, _, j+) = [(0+1) =1++,, -, 0+)] Int j=i ,, int j=0 Increments i value and Decrement s j value reverse i initial value as per given
@JavaQuestions
Жыл бұрын
Yes, that's right bro 👍
@MaheshwariMaheshwari-g5t
8 ай бұрын
1-0 options 2
@JavaQuestions
8 ай бұрын
Yes, that's right 👍👍
@Altamas285
Жыл бұрын
I am 9th grade kid But i have to say it If these kind of questions are asked in interviews,then my future is very bright
@JavaQuestions
Жыл бұрын
Yes, try to answer the questions
@ashishkumar32323
8 ай бұрын
The right is 0-0.
@JavaQuestions
8 ай бұрын
No, try again 🙂
@Real_Indian_bhartiya
4 ай бұрын
Addition and increment: 0-0
@JavaQuestions
4 ай бұрын
No, try again 🙂
@swapnilsutar2511
23 күн бұрын
1-0 I think 🤔 this is correct answer
@jyoshnapandhikunta
Ай бұрын
Option d
@JavaQuestions
26 күн бұрын
No, try again 🙂
@manoj_coding21
Жыл бұрын
1-1 will be answer
@devoo670
5 ай бұрын
no it is post increment so it will be 1-0
@BirendraYadav-kv4de
10 ай бұрын
options B Will be Correct
@JavaQuestions
10 ай бұрын
Yes, that's right 👍👍
@Harekrishna_hare_krishna
9 ай бұрын
int i = 0; Int j = i; J = i++ +j; System.out.println(i+"-"+j); Output is : 1-0
@JavaQuestions
9 ай бұрын
Yes, that's right 👍👍
@ganibhaigameing923
Ай бұрын
1-0 this is the true
@JavaQuestions
26 күн бұрын
Yes, that's correct 👍👍
@yuvrajacharya1226
6 ай бұрын
1-0,took me a minute to figure out😅
@JavaQuestions
6 ай бұрын
Yes, that's right 👍👍
@yuvrajacharya1226
6 ай бұрын
Does any body know how to for loop a string?
@manohargodavarthi4227
8 ай бұрын
1-1 option D
@JavaQuestions
8 ай бұрын
No, try again 🙂
@PavanJadhav-ym2kq
4 ай бұрын
Output will be zero
@JavaQuestions
4 ай бұрын
No, try again 🙂
@gsdrall
4 ай бұрын
0-1, x=0 and y=1
@JavaQuestions
4 ай бұрын
No, try again 🙂
@harshanajwani8538
6 ай бұрын
Correct answer 1-0 hai
@JavaQuestions
6 ай бұрын
Yes, that's right 👍👍
@meenac3669
7 ай бұрын
Options b
@JavaQuestions
7 ай бұрын
Yes, that's right 👍👍
@reshmadenkar-gc1yy
8 ай бұрын
I thik 2 options is correct
@JavaQuestions
8 ай бұрын
Yes, that's right 👍👍
@mantukumar-qn9pv
8 ай бұрын
1-0 right
@JavaQuestions
8 ай бұрын
Yes, that's right 👍👍
@atharvasable3046
9 ай бұрын
0-1 option c
@JavaQuestions
9 ай бұрын
Thanks for the comment The correct answer is 1-0
@bhoomisingh4404
2 ай бұрын
I value is 1 and j value is 0
@JavaQuestions
2 ай бұрын
Yes, that's correct 👍👍
@ravishkumar4084
10 ай бұрын
i++ post increment ho rha, So answer is 1-0
@JavaQuestions
10 ай бұрын
Yes, that's right 👍👍
@LokiDhurvasulu02
8 ай бұрын
Option 4 i.e, 1-1
@JavaQuestions
8 ай бұрын
No, try again 🙂
@Aryanraj-nu2ol
11 ай бұрын
C option (0-1)
@JavaQuestions
11 ай бұрын
Thanks for the comment The correct answer is 1-0
@tacticalanalyst4673
14 күн бұрын
1-1
@JavaQuestions
6 күн бұрын
No, Try again 🙂
@sanjivaniganjale4347
Жыл бұрын
1-1beacause there is not ++j only +j
@JavaQuestions
Жыл бұрын
Thanks for the comment The correct answer is 1-0
@AjayTellamekala
Жыл бұрын
Option 2
@JavaQuestions
Жыл бұрын
Yes, that's right 👍
@majdeddinemejbri3809
8 ай бұрын
1-0 that’s the correct answer no doubt
@JavaQuestions
8 ай бұрын
Yes, that's right 👍👍
@Anonymouss670
10 ай бұрын
Output: 1-0
@JavaQuestions
10 ай бұрын
Yes, that's right 👍👍
@prajwalfulzele6108
5 ай бұрын
I think 1-1
@JavaQuestions
5 ай бұрын
No, try again 🙂
@Ghumta_Firta
6 ай бұрын
1-0 is the answer
@JavaQuestions
6 ай бұрын
Yes, that's right 👍👍
@Jatangi_Raju
7 ай бұрын
Ans is 1-1 not 1-0 please check
@JavaQuestions
7 ай бұрын
Please check once again 🙂
@JavaQuestions
7 ай бұрын
@@Jatangi_Raju here j=i; not one bro Means j =0;
@mrkeshkesh6846
11 ай бұрын
1-0 is correct answer 💯😊
@JavaQuestions
11 ай бұрын
Yes, that's right 👍👍
@Jatangi_Raju
7 ай бұрын
Ans is 1-1 bro its not 1-0 have look once again.@@JavaQuestions
@JavaQuestions
7 ай бұрын
@@Jatangi_Raju please compile and check once.
@deepak2005singhal
4 ай бұрын
Use I in place of j then answer will be 1-1@@Jatangi_Raju
@Dragonforge-Studios
6 ай бұрын
Bro this is easy, 1-0 is the answer
@JavaQuestions
6 ай бұрын
Yes, that's right 👍👍
@technicalearninggyan1280
10 ай бұрын
0-1 or may be 1-1
@JavaQuestions
10 ай бұрын
Thanks for the comment The correct answer is 1-0
@rajeevprajapati159
Жыл бұрын
0-1 in help of operations
@JavaQuestions
Жыл бұрын
Thanks for the comment The correct answer is 1-0 Bro
@rajeevprajapati159
Жыл бұрын
@@JavaQuestions Bhai me diploma Kiya hu or Java me job nahi mil Rahi he
@PavanJadhav-ym2kq
3 ай бұрын
1
@JavaQuestions
3 ай бұрын
No, try again 🙂
@SaiSrinivasBestha
9 ай бұрын
0-1 is correct
@JavaQuestions
9 ай бұрын
Thanks for the comment The correct answer is 1-0
@SaiSrinivasBestha
9 ай бұрын
@@JavaQuestions how
@CRAZY-co8pk
Ай бұрын
00
@JavaQuestions
26 күн бұрын
No, try again 🙂
@rexrajan5232
5 ай бұрын
1-1 is the correct answer
@JavaQuestions
5 ай бұрын
No, try again 🙂
@kamalsingh6260
8 ай бұрын
Option B is Right answer .....1- 0
@JavaQuestions
8 ай бұрын
Yes, that's right 👍👍
@DipakChavan-t8f
8 ай бұрын
10
@JavaQuestions
8 ай бұрын
Yes, that's right 👍👍
@Joy_with_shiv
2 ай бұрын
3rd
@JavaQuestions
2 ай бұрын
No, try again 🙂
@user-freefire237.
9 ай бұрын
1-0
@JavaQuestions
9 ай бұрын
Yes, that's right 👍👍
@Sandippatle-8787
7 ай бұрын
1 0 is correct
@JavaQuestions
7 ай бұрын
Yes, that's right 👍👍
@gopiravulapallimechanical1835
5 ай бұрын
1-0 is the correct answer
@JavaQuestions
5 ай бұрын
Yes, that's right 👍👍
@dmitrykim3096
Жыл бұрын
I hate these stupid questions on the priority of the operations, if you write such code you are not getting code review approvals. The code should be explicit and obvious
@JavaQuestions
Жыл бұрын
Thanks for the comment Yes, as you said these questions are not recommended for real time coding. These are for interview purposes only.
@LokeshKirad-q4w
Жыл бұрын
4 ,1-1
@JavaQuestions
Жыл бұрын
Good try, but the Answer is not correct Bro
@bhaskarcherry2196
Жыл бұрын
Try it your loptop its correct answer 1-1
@komiljonnormurodov
10 ай бұрын
0-1 i=>1 j=>0
@TheCpuguy239
3 ай бұрын
1-0 team here
@JavaQuestions
3 ай бұрын
Yes, that's right 👍👍
@AmruthaPerumal
5 ай бұрын
3
@JavaQuestions
5 ай бұрын
No, try again 🙂
@tejpartapsingh9909
3 ай бұрын
1 0 is correct answer ❤
@JavaQuestions
3 ай бұрын
Yes, that's correct 👍👍
@vimalsuresh9746
10 ай бұрын
1-0 correct
@JavaQuestions
10 ай бұрын
Yes, that's right 👍👍
@rajasekharreddyakepati3375
Жыл бұрын
Answer is 0-1 because you never reinitialize the i value and the j value becomes 1.
@JavaQuestions
Жыл бұрын
Thanks for the comment The correct answer is 1-0
@bhadrayupanwar7398
Жыл бұрын
I ++ means i=i+1 here it get initialized but as i is having post increment it will increment when it is used again somewhere in code.and j remains zero as the value of i not increased there due to postfix.1-0 is the correct answer
@JavaQuestions
Жыл бұрын
Yes, that's right Thanks for the detailed explanation 👍
@neetukhande3491
2 ай бұрын
1 and 0
@JavaQuestions
2 ай бұрын
Yes, that's correct 👍👍
@aryanrajpandey9489
9 ай бұрын
D is correct
@JavaQuestions
9 ай бұрын
Thanks for the comment The correct answer is 1-0
@rajendrareddysangu3509
9 ай бұрын
Ans is c option
@JavaQuestions
9 ай бұрын
Thanks for the comment The correct answer is 1-0
@adinathsawant8143
9 ай бұрын
Answer is 1-0 Because of i = 0 j=0 j=0+0 i.e j=0
@JavaQuestions
9 ай бұрын
Yes, that's right 👍👍
@tarun7759
9 ай бұрын
Bro why 1 ?
@shivshankarshivshankar6329
9 ай бұрын
1 0
@JavaQuestions
9 ай бұрын
@@shivshankarshivshankar6329 yes, you are correct 👍👍
@engineerrahulkumar9367
9 ай бұрын
1-0 is the write answer
@JavaQuestions
9 ай бұрын
Yes, that's right 👍👍
@mayilsamymayil2168
2 ай бұрын
1.0
@JavaQuestions
2 ай бұрын
Yes, that's correct 👍👍
@douknoo6414
Жыл бұрын
option 3
@JavaQuestions
Жыл бұрын
No bro, option 2 correct answer
@FOOTBALLPLAYER_03
2 ай бұрын
0-1
@JavaQuestions
2 ай бұрын
No, try again 🙂
@marloncardoso264
8 ай бұрын
VERY begginer question! Not experienced at all.
@alwajeehalwajeeh
3 ай бұрын
1 - 0 ❤❤
@JavaQuestions
3 ай бұрын
Yes, that's correct 👍👍
@sumitrajput6546
9 ай бұрын
1-1 💯💯💪
@JavaQuestions
9 ай бұрын
Thanks for the comment The correct answer is 1-0
@akshaybendre4776
8 ай бұрын
1,0
@JavaQuestions
8 ай бұрын
Yes, that's right 👍👍
@jayadipbarade7288
8 ай бұрын
2-2
@JavaQuestions
8 ай бұрын
No, try again 🙂
@TANUSHREE-b1h
Жыл бұрын
The correct answer is 1-0😅
@JavaQuestions
Жыл бұрын
Yes, that's right bro 👍👍
@wakisabirhanu
10 ай бұрын
11
@JavaQuestions
10 ай бұрын
Thanks for the comment The correct answer is 1-0
@HassanHabib-ex6jo
6 ай бұрын
I think 0,1
@JavaQuestions
6 ай бұрын
No, try again 🙂
@ameena28
Жыл бұрын
1.i=0 2.j=0 3.j=0+0 => j = 0 as i is post incremented 4.now i=1 Output is 1-0
Пікірлер: 793