The answer is: 1 - 0 , j value is 0,afterthat i value will be increment by 1...
@JavaQuestionsАй бұрын
Yes, that's right 👍👍
@Elunico98910 күн бұрын
I genuinely want to learn this 😢😢😢
@tekamanurag60656 ай бұрын
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 .
@asmit306011 ай бұрын
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.
@JavaQuestions11 ай бұрын
Correct 💯 Good explanation, thank you 😊
@user-nn9vn3gm6f5 ай бұрын
1-0 option is correct. Decribe I++ value is 1 and +j is do not increment the value so 0. Second option .
@JavaQuestions5 ай бұрын
Yes, that's right 👍👍
@NeoTechVision101Ай бұрын
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Ай бұрын
Yes that's right 👍👍
@shilpabarnawalbaarnawal82788 ай бұрын
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
@JavaQuestions8 ай бұрын
Yes, that's right 👍👍
@ZehraFatima-SHAKEEL6 ай бұрын
1-0😊
@JavaQuestions6 ай бұрын
Yes, that's right 👍👍
@archanamishra894110 ай бұрын
Post incrementation, j = 0 + 0 then print(i or (0+1) + "-" + 0) so yup it is 1-0 mate, basics
@JavaQuestions10 ай бұрын
Thanks for the comment You are Correct Bro 👍
@honeybunny13019 ай бұрын
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?
@042j.jeyrengarajendiran68 ай бұрын
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
@JavaQuestions8 ай бұрын
Thanks for the comment The correct answer is 1-0
@Javabackend.Amit.k7 ай бұрын
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
@JavaQuestions7 ай бұрын
Yes, that's right 👍👍 Thanks for the explanation
@jayadipbarade72884 ай бұрын
Yes
@user-vp6go5yl8c8 ай бұрын
1-0 but first i thought its 0-0 but after giving five minutes to this question i got answer.
@JavaQuestions8 ай бұрын
Yes, that's right bro
@_GT_1_6 ай бұрын
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
@JavaQuestions6 ай бұрын
Thanks for the comment The correct answer is 1-0
@ashimroy38915 ай бұрын
@@JavaQuestions i++ will increment i from 0 to 1. Will j also not be updated to 1?
@JavaQuestions5 ай бұрын
Yes, it is a post increment.
@usmanahmadkhan2336Ай бұрын
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Ай бұрын
Yes, that's right 👍👍
@firstisforever64025 ай бұрын
2nd opt is correct I think..
@JavaQuestions5 ай бұрын
Yes, that's right 👍👍
@ayushchandel12282 ай бұрын
Comment padh k answer koi bhi de sakta hai... Hero nhi bano
@user-fm6sl8ze2e9 ай бұрын
1-0 is correct answer j=0 and i=1 when after increament it will become 1
@JavaQuestions9 ай бұрын
Yes, that's right 👍
@asagiai49655 ай бұрын
1-0 Because the other variable doesn't actually change
@JavaQuestions5 ай бұрын
Yes, that's right 👍👍
@18_lisaroy299 ай бұрын
1-0 is the answer because j=0+0 and i is incremented so i =1🎉
@JavaQuestions9 ай бұрын
Yes, that's right.., you are awesome
@64aashishchaudhary56 ай бұрын
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.
@JavaQuestions6 ай бұрын
Yes, that's right 👍👍 Thanks for the explanation
@charllesramosdasilva-rj2of6 ай бұрын
Java accept is notation of incremental +j its call pre-increment Depending on the version, an error will appear
@mrkeshkesh68468 ай бұрын
1-0 is correct answer 💯😊
@JavaQuestions8 ай бұрын
Yes, that's right 👍👍
@Jatangi_Raju4 ай бұрын
Ans is 1-1 bro its not 1-0 have look once again.@@JavaQuestions
@JavaQuestions4 ай бұрын
@@Jatangi_Raju please compile and check once.
@deepak2005singhal16 күн бұрын
Use I in place of j then answer will be 1-1@@Jatangi_Raju
@sumedhtayade82111 ай бұрын
1 - 0 because i is post incremented and j is pre incremented
@JavaQuestions11 ай бұрын
Correct 💯
@goutambarfa707210 ай бұрын
@@JavaQuestions what pre increment only operator is there btw i and j
@sapnaadhikari28883 ай бұрын
1-0 is output
@JavaQuestions3 ай бұрын
Yes, that's right 👍👍
@Altamas2858 ай бұрын
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
@JavaQuestions8 ай бұрын
Yes, try to answer the questions
@manoj_coding218 ай бұрын
1-1 will be answer
@devoo6702 ай бұрын
no it is post increment so it will be 1-0
@rajeevprajapati15910 ай бұрын
ye Java programming ka code hai
@soumyadityamondal48639 ай бұрын
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😅
@JavaQuestions9 ай бұрын
Thanks for the comment The correct answer is 1-0
@soumyadityamondal48639 ай бұрын
U r right... I just mistaken i with j at the print statement.... j=0 and then i=1
@karthigamingff80618 ай бұрын
I cannot understand sir. Could you please tell me why it will be answer was 1-0
@rdevivaranasi99088 ай бұрын
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
@JavaQuestions8 ай бұрын
Yes, that's right bro 👍
@PavanJadhav-ym2kqАй бұрын
Output will be zero
@JavaQuestionsАй бұрын
No, try again 🙂
@DebadityaBarai10 ай бұрын
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
@JavaQuestions10 ай бұрын
Yes, that's right 👍
@MadhuReddyGarugula11 ай бұрын
Option 2
@JavaQuestions11 ай бұрын
Correct Bro
@user-vu5tm7jm3j5 ай бұрын
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
@JavaQuestions5 ай бұрын
Thanks for the comment The correct answer is 1-0
@user-vu5tm7jm3j5 ай бұрын
@@JavaQuestions how it is plz explain it's necessary for me
@user-vu5tm7jm3j5 ай бұрын
@@JavaQuestionsthey said print the value of j is increment is i++ not value of i
@JavaQuestions5 ай бұрын
Sorry for the late reply J =i++ means after assigning the value of i to j then incrementing i value. Got it bro ?
@CodeCrazeByShreyash6 ай бұрын
1 - 0 is the correct answer
@JavaQuestions6 ай бұрын
Yes, that's right 👍👍
@user-ie7mn8hg5v11 ай бұрын
4 ,1-1
@JavaQuestions11 ай бұрын
Good try, but the Answer is not correct Bro
@bhaskarcherry21968 ай бұрын
Try it your loptop its correct answer 1-1
@Real_Indian_bhartiyaАй бұрын
Addition and increment: 0-0
@JavaQuestionsАй бұрын
No, try again 🙂
@yuvrajacharya12262 ай бұрын
1-0,took me a minute to figure out😅
@JavaQuestions2 ай бұрын
Yes, that's right 👍👍
@yuvrajacharya12262 ай бұрын
Does any body know how to for loop a string?
@marloncardoso2645 ай бұрын
VERY begginer question! Not experienced at all.
@Aryanraj-nu2ol7 ай бұрын
C option (0-1)
@JavaQuestions7 ай бұрын
Thanks for the comment The correct answer is 1-0
@lovelessboy801111 күн бұрын
The answer is 1-0
@JavaQuestions11 күн бұрын
Yes, that's right 👍👍
@komiljonnormurodov6 ай бұрын
0-1 i=>1 j=>0
@gsdrallАй бұрын
0-1, x=0 and y=1
@JavaQuestionsАй бұрын
No, try again 🙂
@aratipatil5543 күн бұрын
1-0
@JavaQuestions2 күн бұрын
Yes, that's right 👍👍
@ChadDeveloper2 ай бұрын
Bro this is easy, 1-0 is the answer
@JavaQuestions2 ай бұрын
Yes, that's right 👍👍
@BirendraYadav-kv4de6 ай бұрын
options B Will be Correct
@JavaQuestions6 ай бұрын
Yes, that's right 👍👍
@dmitrykim309610 ай бұрын
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
@JavaQuestions10 ай бұрын
Thanks for the comment Yes, as you said these questions are not recommended for real time coding. These are for interview purposes only.
@Harekrishna_hare_krishna5 ай бұрын
int i = 0; Int j = i; J = i++ +j; System.out.println(i+"-"+j); Output is : 1-0
@JavaQuestions5 ай бұрын
Yes, that's right 👍👍
@sanjivaniganjale43479 ай бұрын
1-1beacause there is not ++j only +j
@JavaQuestions9 ай бұрын
Thanks for the comment The correct answer is 1-0
@majdeddinemejbri38095 ай бұрын
1-0 that’s the correct answer no doubt
@JavaQuestions5 ай бұрын
Yes, that's right 👍👍
@MohammedAdem-0942Ай бұрын
1 and 0
@JavaQuestionsАй бұрын
Yes, that's right 👍👍
@charleswills44534 ай бұрын
Isn’t a double equal sign ?
@JavaQuestions4 ай бұрын
No
@er.mansuriАй бұрын
1-0 , because i++ is a post increment
@JavaQuestionsАй бұрын
Yes, that's right 👍👍
@Robert-36914 ай бұрын
I'm addicted to this content. I recently read a similar book, and I was completely addicted. "Mastering AWS: A Software Engineers Guide" by Nathan Vale
@machinesPawn4 ай бұрын
Marketing skill on the top.
@ashishkumar323234 ай бұрын
The right is 0-0.
@JavaQuestions4 ай бұрын
No, try again 🙂
@TheCpuguy23910 күн бұрын
1-0 team here
@JavaQuestions8 күн бұрын
Yes, that's right 👍👍
@kamalsingh62604 ай бұрын
Option B is Right answer .....1- 0
@JavaQuestions4 ай бұрын
Yes, that's right 👍👍
@douknoo641410 ай бұрын
option 3
@JavaQuestions10 ай бұрын
No bro, option 2 correct answer
@rajeevprajapati15910 ай бұрын
0-1 in help of operations
@JavaQuestions10 ай бұрын
Thanks for the comment The correct answer is 1-0 Bro
@rajeevprajapati15910 ай бұрын
@@JavaQuestions Bhai me diploma Kiya hu or Java me job nahi mil Rahi he
@LokiDhurvasulu024 ай бұрын
Option 4 i.e, 1-1
@JavaQuestions4 ай бұрын
No, try again 🙂
@Anonymouss6706 ай бұрын
Output: 1-0
@JavaQuestions6 ай бұрын
Yes, that's right 👍👍
@pankajjaiswal48052 ай бұрын
1-0 is the answer
@JavaQuestions2 ай бұрын
Yes, that's right 👍👍
@reshmadenkar-gc1yy5 ай бұрын
I thik 2 options is correct
@JavaQuestions5 ай бұрын
Yes, that's right 👍👍
@rexrajan52322 ай бұрын
1-1 is the correct answer
@JavaQuestions2 ай бұрын
No, try again 🙂
@user-dp7lj3rw1t4 ай бұрын
1-0 options 2
@JavaQuestions4 ай бұрын
Yes, that's right 👍👍
@dineshsampathi168910 ай бұрын
4
@JavaQuestions10 ай бұрын
No bro, try one more time
@user-tp4zw2yy9k8 ай бұрын
0-1 is correct answer
@JavaQuestions8 ай бұрын
Thanks for the comment The correct answer is 1-0
@lovelyemotions72089 ай бұрын
0-1
@JavaQuestions9 ай бұрын
Thanks for the comment The correct answer is 1-0
@Meowerenchan10 ай бұрын
Itna easy😅😅 Mai class 10th icse mai hu lagta hai mujhe placement lav jayegi
@mmanju223910 ай бұрын
1️⃣➖️0️⃣
@JavaQuestions10 ай бұрын
Yes, you are right 👍
@engineerrahulkumar93676 ай бұрын
1-0 is the write answer
@JavaQuestions6 ай бұрын
Yes, that's right 👍👍
@manohargodavarthi42274 ай бұрын
1-1 option D
@JavaQuestions4 ай бұрын
No, try again 🙂
@atharvasable30465 ай бұрын
0-1 option c
@JavaQuestions5 ай бұрын
Thanks for the comment The correct answer is 1-0
@royalworld_raju808310 ай бұрын
B
@JavaQuestions10 ай бұрын
You are Correct 💯
@technicalearninggyan12806 ай бұрын
0-1 or may be 1-1
@JavaQuestions6 ай бұрын
Thanks for the comment The correct answer is 1-0
@user-jx3jl6pm8l4 ай бұрын
1-1
@JavaQuestions4 ай бұрын
No, try again 🙂
@harshanajwani85382 ай бұрын
Correct answer 1-0 hai
@JavaQuestions2 ай бұрын
Yes, that's right 👍👍
@ravishkumar40846 ай бұрын
i++ post increment ho rha, So answer is 1-0
@JavaQuestions6 ай бұрын
Yes, that's right 👍👍
@prajwalfulzele6108Ай бұрын
I think 1-1
@JavaQuestionsАй бұрын
No, try again 🙂
@CodingWallahStudent9 ай бұрын
I=1 & j=0
@JavaQuestions9 ай бұрын
Yes, that's right bro 👍
@sukhadayeolekar71409 ай бұрын
2
@JavaQuestions9 ай бұрын
Yes, that's right 👍
@sumitrajput65465 ай бұрын
1-1 💯💯💪
@JavaQuestions5 ай бұрын
Thanks for the comment The correct answer is 1-0
@Kgfsatish999 ай бұрын
1-0 hoga
@JavaQuestions9 ай бұрын
Yes, that's right bro 👍
@Sweatharts4 ай бұрын
1 0 is correct
@JavaQuestions4 ай бұрын
Yes, that's right 👍👍
@user-wu6cg3mc7f9 ай бұрын
0,1,1,1 is the answer
@JavaQuestions9 ай бұрын
Thanks for the comment The correct answer is 1-0
@rahulnavy8 ай бұрын
i=0 j=0 j= i++(0+1=1) +0 j=1+0=1 Finally i=0 & j=1 0-1 So the final answer is 0-1
@JavaQuestions8 ай бұрын
Thanks for the comment The correct answer is 1-0
@mantukumar-qn9pv4 ай бұрын
1-0 right
@JavaQuestions4 ай бұрын
Yes, that's right 👍👍
@user-us4id1qd8k4 ай бұрын
The answer is 1-1
@JavaQuestions4 ай бұрын
Thanks for the comment The correct answer is 1-0
@rajendrareddysangu35096 ай бұрын
Ans is c option
@JavaQuestions6 ай бұрын
Thanks for the comment The correct answer is 1-0
@saikumar_yendugula Жыл бұрын
0-0
@muhammadumair4867 ай бұрын
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
@JavaQuestions7 ай бұрын
Thanks for the comment The correct answer is 1-0
@user-zj6hz8hh6q9 ай бұрын
1-0 is the correct ans
@JavaQuestions9 ай бұрын
Yes, that's right bro
@jayadipbarade72884 ай бұрын
2-2
@JavaQuestions4 ай бұрын
No, try again 🙂
@meenac36693 ай бұрын
Options b
@JavaQuestions3 ай бұрын
Yes, that's right 👍👍
@user-qn8uf4qn9y8 ай бұрын
The correct answer is 1-0😅
@JavaQuestions8 ай бұрын
Yes, that's right bro 👍👍
@nanisrinu74611 ай бұрын
1 0
@raman97069 ай бұрын
0-0 is correct answere
@JavaQuestions9 ай бұрын
Thanks for the comment The correct answer is 1-0
@vimalsuresh97466 ай бұрын
1-0 correct
@JavaQuestions6 ай бұрын
Yes, that's right 👍👍
@rajasekharreddyakepati33759 ай бұрын
Answer is 0-1 because you never reinitialize the i value and the j value becomes 1.
@JavaQuestions9 ай бұрын
Thanks for the comment The correct answer is 1-0
@bhadrayupanwar73989 ай бұрын
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
@JavaQuestions9 ай бұрын
Yes, that's right Thanks for the detailed explanation 👍
@douknoo641410 ай бұрын
ok understood
@JavaQuestions10 ай бұрын
Super Bro
@douknoo641410 ай бұрын
In experienced interviews which type of questions should we practice