Java Tutorial: Chapter 2 - Practice Set (Java Practice Questions)

  Рет қаралды 771,290

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 3 000
@CodeWithHarry
@CodeWithHarry 4 жыл бұрын
Did you get the first question right?
@tanmaydash2108
@tanmaydash2108 4 жыл бұрын
Yes
@PrinsTripathi99
@PrinsTripathi99 4 жыл бұрын
Yes
@KodiLearn
@KodiLearn 4 жыл бұрын
yes
@vaibhav3852
@vaibhav3852 4 жыл бұрын
BHAI PLS HELP I WANT TO RUN JAVA IN VS CODE IT WILL BE GREAT IF U SEE MY COMMENT and yes i got it correct 4.0, first i thought it is 4 then noticed that it is being stored as float so it will be 4.0 btw u didnt put an semicolon so some people might get confuse from that as i got at first sight
@UmKhan-sv9mv
@UmKhan-sv9mv 4 жыл бұрын
East or west harry bhaiya is the best thanks alot bhaiya for such a good course harry bhai dil de do yaar
@anjaneekumar-singh
@anjaneekumar-singh 2 жыл бұрын
The 2nd problem can also be solved without type casting ... as char grade = 'A' ; grade += 8; // incrementing char without type casting Thank you harry bhai for all of this ♥😊
@yusrax3
@yusrax3 2 жыл бұрын
um but char+int=int won't it raise error cuz the variable "grade" is char datatype
@anjaneekumar-singh
@anjaneekumar-singh 2 жыл бұрын
@@yusrax3 i tried this... No error is raised
@yusrax3
@yusrax3 2 жыл бұрын
@@anjaneekumar-singh i see, lemme test it myself later 🤔😅
@yusrax3
@yusrax3 2 жыл бұрын
hey i test the code it worked fine but when i wrote "grade=grade+8" it raised an error n required type casting,can u explain how it worked without datatype conversion error using "+=" ?
@sbvforworld4290
@sbvforworld4290 Жыл бұрын
@@yusrax3maybe a special ability of +=
@PratikBanger
@PratikBanger 2 жыл бұрын
// Question 4: Following exp in JAVA Program: V^2 - U^2 / 2as float a = 2, s = 2, v = 8, u = 2; float exp = (v*v - u*u) / (2*a*s); System.out.println(" "+exp);
@Jv_Singh37
@Jv_Singh37 2 жыл бұрын
Thnx 👍🤝
@Apka_shari
@Apka_shari Жыл бұрын
Great 👍 job.. appreciate your afforts...
@Apka_shari
@Apka_shari Жыл бұрын
Ap jaisa ACHA bndo ki wjah sa hum jaisa bndo ko guzara ho jata ha 😁...
@aasthawadhwa3370
@aasthawadhwa3370 Жыл бұрын
Isme value assign Krna zroori tha ?? Bina value diya q nh kr skte
@ganeshmore1482
@ganeshmore1482 Жыл бұрын
@@aasthawadhwa3370 input dena padega fir
@abhirupdey1591
@abhirupdey1591 2 жыл бұрын
Harry bhai earlier i only used to clear the theoretical concepts and whenever it comes to solve problems i used to run away from it because i could not find the logic behind writing the code but after watching your videos it helped me a lot and boosted my confidence thank you so very much for it these practice set questions are really helpful and amazing.... More such practice set questions will be really helpful to develop the concepts even more and boos confidence to touch complex programs Thank You for your contribution towards students like us with average knowledge in coding yet willing to learn the language
@erravindra191
@erravindra191 Жыл бұрын
😊
@himanshumohod9467
@himanshumohod9467 7 ай бұрын
int v=4; int u=9; int a=5; int s=2; int sum=(v*v-u*u)/(2*a*s); System.out.println(sum); Sout(“brilliant harry bhai”);
@infomayet7555
@infomayet7555 3 жыл бұрын
Answer of Question 4: //Answer 4) float a = 5; float S = 6; float v = 7; float u = 8; float x = (v*v)-(u*u); float y = (2*a*S); float z = x/y; System.out.println(z);
@crazyartist4you
@crazyartist4you Жыл бұрын
question no 4 float v=40; float u=4; float a=6; float s=8; float formula= (v*v - u*u) /(2*a*s); System.out.println(formula); answer is =16.5 thnq for this playlist
@Anyonymus123
@Anyonymus123 9 ай бұрын
Math.pow(base,exponent) Bachho wali sakkal leke bachho wali problem karte ho
@farheenbegum371
@farheenbegum371 7 ай бұрын
Please put f at every end
@StrongMind-q3k
@StrongMind-q3k 5 ай бұрын
@@Anyonymus123 lol i also thought to import math library
@hrittik_india
@hrittik_india 2 ай бұрын
but answer should always come 1 becuase its rule 2as = v2 - u2 1 = v2 -u2/2as
@rahul_on_streets
@rahul_on_streets 24 күн бұрын
Float=(V*V - U*U) /(2*a*s) ;
@abhilashnair2702
@abhilashnair2702 2 жыл бұрын
finally I am understanding things in JAVA.. Thank You Harry Sir..
@mayurigawande5973
@mayurigawande5973 3 жыл бұрын
The best day in my life when I found your channel in 1st year of my engineering ❤
@haiderbangash99
@haiderbangash99 3 жыл бұрын
can u please help me?
@abhishek_._tiwari
@abhishek_._tiwari 2 жыл бұрын
@@haiderbangash99 ask, we will sure try to help
@ankitasrivastava3966
@ankitasrivastava3966 2 жыл бұрын
ha ha samee lol
@riteshverma001
@riteshverma001 Жыл бұрын
Haa malum hai baap to mt sikha chal....
@vinodKumar-td6mb
@vinodKumar-td6mb 3 жыл бұрын
float v=4.0f; float u =5.0f; float a =2.0f; float s =3.0f; float qwes = (v*v-u*u)/(2*a*s); System.out.println(qwes); thank you very much harry sir i really love this java course. it is very useful to us.
@shivshankarkumarchaudhary6903
@shivshankarkumarchaudhary6903 2 жыл бұрын
hello isska outpur -0.75 aaya hai kya batayeiye please
@s.vsatya7338
@s.vsatya7338 2 жыл бұрын
Cant we use type cast operator for Q1..To make the value as float.
@Bhakti_Darshan_TV
@Bhakti_Darshan_TV 2 жыл бұрын
@@shivshankarkumarchaudhary6903 ji
@hsetips2574
@hsetips2574 2 жыл бұрын
It took me a long time to find you ... by the way I got it... that's great... One more things I am interested in learning of Coding programs... I searched many videos in last few days but not satisfied there but here I feeling better and my journey is continued with you.. I seen your this series from beginning to till yet..and also i will finish it because it's interesting, easiest and helpful... 😊 I salute your hard work... Thank you so much ❤️🙏
@Rohitkumar-ok2oc
@Rohitkumar-ok2oc 2 жыл бұрын
10:39 float a = 2f; float S = 4f; float v = 8f; float u = 4f; float frml = (v*v - u*u) ; float total = frml / (2*a*S) ; System.out.println(total);
@saurabhlambore5352
@saurabhlambore5352 2 жыл бұрын
(v*v - u*u) /2*a*s
@craftvsgaming6834
@craftvsgaming6834 2 жыл бұрын
Bro yaha par ham Float a = 2.0f Kar sakte hain
@Rohinishff
@Rohinishff 2 жыл бұрын
import java.util.Scanner; public class Pratice_set { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("What is value of V"); float v = sc.nextFloat(); System.out.println("What is value of U"); float u = sc.nextFloat(); System.out.println("What is value of A"); float a = sc.nextFloat(); float answer = (v*v)-(u*u)/(2*a*5); System.out.println(answer); } }
@Rohitkumar-ok2oc
@Rohitkumar-ok2oc 2 жыл бұрын
@@craftvsgaming6834 yes bro
@starvingbits
@starvingbits 2 жыл бұрын
thanks brother , i'm really thinking so hard but i didn't get it , after watching your comment i get it. i am using integer instead of float.
@musiciantirth3710
@musiciantirth3710 4 жыл бұрын
10:30 answer (v*v-u*u)/(2*a*s)
@AshishKhetwal
@AshishKhetwal 9 ай бұрын
Harry bhai due to people like you on the internet, today nothing is impossible, you have developed my interest so much in coding, I can't express my gratitude towards you. Always learning from you. Thank you so much for everything you do for us
@Pmu430
@Pmu430 3 жыл бұрын
Placed in Infosys..my first training language is java ..I am from non cs background.. thanks u for explaining java in easiest way.. it's too helpful for me!
@vaibhavnayak3416
@vaibhavnayak3416 3 жыл бұрын
your qualification? and which role?
@Pmu430
@Pmu430 3 жыл бұрын
@@vaibhavnayak3416 be mechanical System engineer
@DevilGaming-ww6vb
@DevilGaming-ww6vb Жыл бұрын
Bro i want to talk with you
@DevilGaming-ww6vb
@DevilGaming-ww6vb Жыл бұрын
Bro what all u did to get placed in Infosys only this playlist helped u to place in Infosys
@Akashyadav-rd1eo
@Akashyadav-rd1eo Жыл бұрын
I m bcom but dining these can I land a job ?
@maheshmahadar4780
@maheshmahadar4780 4 жыл бұрын
for calculating two digits kids use calculator man use mobile legend use URL big fan harry bhai
@shardanegi3845
@shardanegi3845 4 жыл бұрын
Ultra Legend use Java to calculate
@avi_vai
@avi_vai 3 жыл бұрын
@@shardanegi3845 like me!🤣🤣
@Victor-ev3vu
@Victor-ev3vu 3 жыл бұрын
And God doesn't calculate
@avi_vai
@avi_vai 3 жыл бұрын
@@Victor-ev3vu 😄😄
@MrPR-xc5io
@MrPR-xc5io 3 жыл бұрын
@@Victor-ev3vu like me
@malihaaamir3329
@malihaaamir3329 Жыл бұрын
Amazing content sir thankyou Soo much for this seriously dol karta hai kai jav karti rhun mera second semester chal rha hai first ami c parhyai thi uni mai maind chorne ka fiasla karfi atha programming ki wjh se likin ab yaqeen hai inshallah hojayega.❤ thankyou sir from Pakistan
@sambhajikenche1964
@sambhajikenche1964 3 жыл бұрын
float v = 10; float u = 2; float a = 5; float s = 4; float sc = (v * v - u * u) / (2 * a * s); System.out.println(sc); Output: 2.4
@destination3836
@destination3836 11 ай бұрын
out put should be 60.0
@maazahmad3405
@maazahmad3405 2 жыл бұрын
I really don't have words to describe your hard work and dedication. Thank you harry bhayya lots of love
@hemlatakhandelwal8384
@hemlatakhandelwal8384 Жыл бұрын
Like seriously i m in love with your teaching. i m literally learning and enjoying...best teacher thankyou so much ❤❤❤❤❤
@sunnygupta5941
@sunnygupta5941 3 жыл бұрын
public class PracticeSet{ public static void main (String args[]){ float v = 10.0f; float u = 5.0f; float a = 6.0f; float s = 8.0f; float i = (v*v - u*u)/(2*a*s); System.out.print(i); } } Result = 0.7815 Thankyou Harry Sir❣️
@metalord818
@metalord818 2 жыл бұрын
why do u take float value ? u can take int value also, right?
@akhilesh_14_
@akhilesh_14_ 2 жыл бұрын
Bhai isme Maine float ke jagah int likh diya hai Aur float i = (v*v-u*u) /(2*a*s) ; aise hi rehne diya hai to answer float mjhe float me chahiye but answer int me aa rha hai aisa ku Please tell 🙏
@akhilesh_14_
@akhilesh_14_ 2 жыл бұрын
@@metalord818 same bro int le rahe to answer float me nhi aa rha hai ku
@sunnygupta5941
@sunnygupta5941 2 жыл бұрын
What if your answer will come in decimals.....
@sunnygupta5941
@sunnygupta5941 2 жыл бұрын
@@metalord818 Use Float instead of Int to get answer in decimals (float)
@pavitsingh6908
@pavitsingh6908 4 жыл бұрын
I really love their courses 🧡🧡
@abhistraj4284
@abhistraj4284 2 жыл бұрын
Q. 4.. int v = 10; Int u = 20; Int a = 15; Int s = 30; float k = (v*v - u*u) /(2*a*s) ; System.out.println(k);
@Aashirwad_Tyagi
@Aashirwad_Tyagi Жыл бұрын
// Question 4 int v = 8; int u = 2; int a = 8; float sum = (v*v - u*u) / (2.0f*a*5.0f); System.out.println(sum); Thank you Harry sir for this course😀🙏
@soumyasahu1875
@soumyasahu1875 3 ай бұрын
its s not 5
@ankursingh570
@ankursingh570 4 жыл бұрын
public static void main (String [] args){ Scanner sc = new Scanner(System.in); float v = sc.nextFloat(); float u = sc.nextFloat(); float a = sc.nextFloat(); float s = sc.nextFloat(); float ans = (v*v -u*u) / (2*a*s); System.out.println(ans); }
@KnowWithAbhi
@KnowWithAbhi 4 жыл бұрын
Yes
@lyrical89017
@lyrical89017 4 жыл бұрын
@@SRNEntertainment no need in itellije it get accses
@azamcangame5253
@azamcangame5253 4 жыл бұрын
first, I tried doing it myself, answer was always 0.0, then I tried yours....answer is still coming 0.0 no matter what the value of float is
@azamcangame5253
@azamcangame5253 4 жыл бұрын
@@subzeroforyou3728 THX bro(for helping me out)
@r.k_collection
@r.k_collection 6 ай бұрын
import java.util.Scanner; class HelloWorld { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the value of v "); float v = sc.nextFloat(); System.out.println("Enter the value of u "); float u = sc.nextFloat(); System.out.println("Enter the value of a "); float a = sc.nextFloat(); System.out.println("Enter the value of s "); float s = sc.nextFloat(); float total = ((v*v - u*u) / (2.00f*a*s)); System.out.println(total); System.out.println("total ka answer sahi nahi dai raha hai"); } }
@blinx_edits
@blinx_edits 2 жыл бұрын
Bhaiya your channel is just amazing . The questions you gave are tricky but so good and helped me learn so much . Thank you for this amazing course !!
@asharma8740
@asharma8740 4 жыл бұрын
// Question 4 int v = 10; int u = 4; int a = 2; int s =1; int ans = ( v*v-u*u)/(2*a*s); System.out.println(ans);
@ssrcrushergaming
@ssrcrushergaming 2 жыл бұрын
wrong
@IITianTaniya
@IITianTaniya Жыл бұрын
//Question 4 float v = 4.0f; float u = 2.0f; float a = 1.0f; float s = 4.0f; float k = (v*v-u*u)/(2*a*s); System.out.println(k);
@jackkkkz
@jackkkkz Жыл бұрын
1.5
@gtaanime6251
@gtaanime6251 3 жыл бұрын
float v = 10.0f, u = 5.0f, a = 3.0f, s = 2.0f; (v * v - u * u ) / (2 * a * s) Result :- 6.25
@tejaltiwari9409
@tejaltiwari9409 3 жыл бұрын
Tq it helped me😌
@myCodingJourney02
@myCodingJourney02 3 жыл бұрын
@@tejaltiwari9409 thanks
@gaanaparadise1439
@gaanaparadise1439 3 жыл бұрын
@LALIT BISHT no bro if we remove brackets then the ans is 25.0 . harry bhai plz help us
@Abd501developer
@Abd501developer 3 жыл бұрын
bhai galat hai answer 1.75 aayega
@Abd501developer
@Abd501developer 3 жыл бұрын
public class Practice2Ka4 { public static void main(String[] args) { float v = 5.0f; float u = 2.0f; float a = 3.0f; float s = 2.0f; float f = (v*v - u*u) / (2*a*s); System.out.println(f); } }
@stalkstocks6527
@stalkstocks6527 3 жыл бұрын
Q3 ,me shayad bollen karke comparison chaheye tha Scanner sc =new Scanner(System.in); System.out.println("Enter Comparison Number"); int a = sc.nextInt(); boolean b = (8>a); System.out.println(b);
@surajwaghmare5227
@surajwaghmare5227 3 жыл бұрын
Bro we're r the notes of java ... Help me to find it
@stalkstocks6527
@stalkstocks6527 3 жыл бұрын
Bro just go to description and check out
@sagnikroy507
@sagnikroy507 Жыл бұрын
public static void main(String[] args) { float v = 2.0f; float u = 1.0f; float a = 1.0f; float s = 2.0f; float x = (v*v - u*u)/(2*a*s); System.out.println(x);
@PieStreams
@PieStreams Жыл бұрын
Thanks. Actually I Was Getting Wrong Answers Because Of Not Inserting Parentheses After Division (2*a*s); After Going Through Your Solution I Was Able To Get It !! Thanks Sagnik Roy. I Hope I Spelled It Right 😅😅
@rudrakshcodes
@rudrakshcodes 4 жыл бұрын
Hey Bro please make a video on how you learned all the programming languages, How was your journey, it would be very interesting....
@raghavgupta6186
@raghavgupta6186 4 жыл бұрын
By implementing them when needed.
@PirateKingLuffy-c4q
@PirateKingLuffy-c4q 4 жыл бұрын
Maybe books or tuitions
@akashbhade1305
@akashbhade1305 4 жыл бұрын
They are from IIT Kharagpur
@raghavgupta6186
@raghavgupta6186 4 жыл бұрын
@@akashbhade1305 College doesn't matter
@ashupathak9522
@ashupathak9522 4 жыл бұрын
@Rohan Rathour abe wo iit hai, surajmal ni
@priyansujohn2208
@priyansujohn2208 3 жыл бұрын
HarrY Sir I feel like You're the Harry of the Harry Potter with Your Elder Wand.... What I Mean Is I Love Your Teaching 😁 and Continue to See you in your Videos ... Thanks 😊
@Manpreet_001
@Manpreet_001 11 ай бұрын
at 10:35 answer float v=14; float u=10; float a=2; float s=99; float res=(v*v-u*u)/(2*a*s); System.out.println(res);
@hrushabhpatil9446
@hrushabhpatil9446 3 жыл бұрын
Harry sir , you are the best computer teacher . I have never studied with such a good teacher. Salute you , I didn't have words to say. I have a request please make a playlist of wordpress,,I have watched your wordpress in one video but not understand properly . So please make a playlist on wordpress . Thank you 🙏🙏
@prasenjitnayak_
@prasenjitnayak_ Жыл бұрын
// Question 4 import java.util.Scanner; public class Question4{ public static void main(String args []){ Scanner sc = new Scanner(System.in); System.out.println("Enter numbers to be calculated"); System.out.println("Enter the value of v"); float v = sc.nextFloat(); System.out.println("Enter the value of u"); float u = sc.nextFloat(); System.out.println("Enter the value of a"); float a = sc.nextFloat(); System.out.println("Enter the value of s"); float s = sc.nextFloat(); float ds = (v*v-u*u)/(2*a*s); System.out.println("Your Output is "+ds); } } // it was a little bit advanced version
@Mrviraledz
@Mrviraledz Жыл бұрын
Bro.. Some doubt.. Help me
@Mrviraledz
@Mrviraledz Жыл бұрын
Sout("your output is"+ds) ; in this line why u are using +ds can you explain 🙏
@DematManish
@DematManish Жыл бұрын
10:36 //Question 4 public class Main { public static void main(String[] args) { int v = 100; int u = 20; int a = 30; int b = (v^2)-(u^2); int n = 2*a*b; float ans = b/n; System.out.println(ans); } }
@MamunKhan-gy9er
@MamunKhan-gy9er 3 жыл бұрын
10:30 -> (v*v-u*u)/(2*a*s)
@abhishekxd8072
@abhishekxd8072 3 жыл бұрын
@Faizan Ali Memon it depends on what values the user is entering
@navigill5527
@navigill5527 2 жыл бұрын
The complete practice set: import java.util.Scanner; public class PracticeSet2 { public static void main(String[] args) { // Question 1 float t = 7/4.0f * 9/2.0f; System.out.println(t); // Question 2 // encrypting a grade char grade= 'B'; grade = (char)( grade +8); System.out.println(grade); // Decrypting a grade grade = (char)( grade -8); System.out.println(grade); // Question 3 int given_number = 45; Scanner sc = new Scanner(System.in); int user_input = sc.nextInt(); System.out.println(user_input>given_number); // Question 4 float v = 3; float u = 6; float a = 5; float s = 4; float total = (v*v - u*u)/(2*a*s); System.out.println(total); // Question 5 int z = 7*49/7+35/7; System.out.println(z); } }
@swetha1160
@swetha1160 Жыл бұрын
about question 4 , wasnt it to print the formula?
@durvexh
@durvexh Жыл бұрын
no @@swetha1160
@Spd0234
@Spd0234 4 ай бұрын
Thank you so much sir🥺❤️‍🩹
@Dxiag123
@Dxiag123 4 жыл бұрын
Great. Harry Bhai, you always make a smile on our face everytime. This revolution is going to be legendary.🙇🏻‍♂️🙇🏻‍♂️
@futurebillionare371
@futurebillionare371 2 жыл бұрын
Jyafa English mat pel
@Dxiag123
@Dxiag123 2 жыл бұрын
@@futurebillionare371 Ajeeb BKL hai..
@yashgour7266
@yashgour7266 4 жыл бұрын
*Upload video frequency in java playlist humble request* . . . . *Like if u agree*
@parthmalaviya7504
@parthmalaviya7504 4 жыл бұрын
Harry bhai if possible can you make it 2 videos per day
@komaldugar14
@komaldugar14 4 жыл бұрын
@@parthmalaviya7504 he is managing 3 playlists in one day bro. You dont know how much hardwork he is doing for us in free. He is uploading nearly 3-4 vids per day. In worst case 2
@FallenSnow
@FallenSnow 4 жыл бұрын
@@parthmalaviya7504 jaydat hi likhwalo bro
@lovegeneration2716
@lovegeneration2716 11 ай бұрын
float v = 7; float u = 8; float a = 2; float s = 4; float obj = ( v*v - u*u) / (2*a*s); System.out.println(obj); output :- -0.9375
@shivam._official_
@shivam._official_ 2 жыл бұрын
// Practice set questions no - 4 public class Main{ public static void main(String[] agrs) { int v = 7 ; int u = 5 ; int a = 2 ; int s = 2 ; int formula = (v*v - u*u ) / (2 * a* s) ; System.out.println(formula ) ; } } output : 3
@gddsgaming1763
@gddsgaming1763 2 жыл бұрын
Without brackets 1
@harshchandel8253
@harshchandel8253 2 жыл бұрын
Vro ye values khud Li h ?
@rajagamer5738
@rajagamer5738 Жыл бұрын
dude its not the right answer because the expression is not about associativity its about which arithematic operator has more precedence so the right output will be 45 as per you've taken int
@saketgunjansrivastava7900
@saketgunjansrivastava7900 4 жыл бұрын
Best way to teach bro start teaching wid same procedure throughout ur playlists 🤘
@LEGENDGaming-dx1of
@LEGENDGaming-dx1of 10 ай бұрын
Hi Bro! I really love your Java tutorial and I loved your videos. As your pinned question my answer is no. The answer of Q # 4 is ; Scanner sc = new Scanner(System.in); float v = 7.0f; float u = 9.0f; float a = 16.0f; float s = 13.0f; float sol = (v*v - u*u)/ (2*a*s); System.out.println(sol);
@piplicorn4589
@piplicorn4589 9 ай бұрын
-3328.0?
@TheTop-tx9js
@TheTop-tx9js 4 жыл бұрын
System. out. print ("Thanks sir for your java playlist you are awesome"); respect++;
@avi_vai
@avi_vai 3 жыл бұрын
++respect;
@iamhappy7874
@iamhappy7874 3 жыл бұрын
System.out.println("lmao");
@anantgupta1188
@anantgupta1188 3 жыл бұрын
@@avi_vai System.out.println("r/woooooosshhhh");
@avi_vai
@avi_vai 3 жыл бұрын
@@anantgupta1188 haha
@Unstoppable.Sakshi
@Unstoppable.Sakshi 2 жыл бұрын
Time-9:31 public class velocity{ public static void main(String[] args){ int v =12; int u=10; int a =5; int s=1; float k=(v*v - u*u)/2*a*s; system.out.println(k); } }
@sahilpatil5445
@sahilpatil5445 2 жыл бұрын
Wrong hai Right : (v*v-u*u)/(2*a*s)
@AliHassantalks
@AliHassantalks 5 ай бұрын
Thankyou so much sir for playlist. public static void main(String[] args) { int u = 3; int v = 5; int S = 4; int a = 6; int k= (v*v-u*u)/(2*a*S); System.out.println(k);
@dhirajmathankar6385
@dhirajmathankar6385 2 жыл бұрын
Thank you so much for this Awesome course with notes. int v = 2 int u = 2 int a = 2 int s = 2 int calculation = (v *v - u*u)/(2*a*s) FINAL ANS :- 0
@Lord_SP
@Lord_SP 2 жыл бұрын
Bro where is semicolons?
@satyamsahu24
@satyamsahu24 2 жыл бұрын
bhai obviously 0 ayega
@shantanulamba3599
@shantanulamba3599 4 жыл бұрын
He is getting almost 1k subscribers a day!!
@tanishbhosale1675
@tanishbhosale1675 3 жыл бұрын
Because he is hard worker
@YogeshSharma-lu4qr
@YogeshSharma-lu4qr Жыл бұрын
public class express { public static void main(String[] args) { float v = 5.0f; float u = 2.0f; float a = 3.0f; float d = (v*v - u*u) / 2*a*5; System.out.println(d); } }
@strangerme4266
@strangerme4266 3 жыл бұрын
harry bhai i request you to teach us to make any small software at the end of the java courses like the school management system library management system or anything like it. with GUI too.
@abheygupta2332
@abheygupta2332 4 жыл бұрын
I can see chapter 3 notes' impression 😁😁😁
@Rohit-0019
@Rohit-0019 Жыл бұрын
I am watching this course after 2 years thanku
@kunalsingh0091
@kunalsingh0091 2 жыл бұрын
ans 4 = package Percectage; import java.util.Scanner; public class prac { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println( "write the value of v "); float v = sc.nextFloat(); System.out.println( "write the value of u "); float u = sc.nextFloat(); System.out.println( "write the value of a "); float a = sc.nextFloat(); System.out.println( "write the value of s "); float s = sc.nextFloat(); System.out.println( ((v * v) - ( u * u ))/(2 * a * s) ); } } mine one is even more advance because I am taking input from user. yess, you can thank me for giving my special code to you.
@Rahul-gc3eq
@Rahul-gc3eq Жыл бұрын
If only I have to print the equation soo what I code?
@muhammadsultan3515
@muhammadsultan3515 Жыл бұрын
very nice bro but what are the input values you take after you get answer 4?😊
@PrishaXD
@PrishaXD Жыл бұрын
@@Rahul-gc3eq int v = 55; int u = 44; int c = (v*v) - (u*u); int e = c/295; System.out.println(e); use this
@salmanrajpoot6822
@salmanrajpoot6822 3 жыл бұрын
float v=25; float u=10; float a=12; float formula=(v*v-u*u)/(2*a*5); System.out.println(formula); 25*25.0-10*10.0/2*12*5 (625-100)/(2*12*5) 525/120 4.375
@mohanpatel3272
@mohanpatel3272 5 ай бұрын
Now I feel better in java program. ❤❤
@pujabhute7290
@pujabhute7290 3 жыл бұрын
Thank you so much for this Awesome course with notes. Good job!
@unknown-vz4tz
@unknown-vz4tz 4 жыл бұрын
⚠️⚠️Sir ab to sapne me bhi Coding he kar raha hu 😌😌
@sanjanagupta231
@sanjanagupta231 3 жыл бұрын
Same
@KRITIKASANATANI912
@KRITIKASANATANI912 Жыл бұрын
int v = 4; int u = 2; int a = 3; int s = 1; int t = (v*v - u*u) / (2*a*s); System.out.println(t); output=>2 ☺thank you bhaiya
@dineshwarsrivastav5316
@dineshwarsrivastav5316 4 жыл бұрын
(Math.pow(v,2) - Math.pow(u,2)/(2*a*s )) Name= Raj Srivastav Gorakhpur
@Vishal-d4m2l
@Vishal-d4m2l 3 жыл бұрын
Me too gkp
@mahekmohapatra2068
@mahekmohapatra2068 3 жыл бұрын
Thankyou so much for such amazing lectures :))
@OnlyforCS-ml6dc
@OnlyforCS-ml6dc Жыл бұрын
// 3 int u = 7; int v = 8; int a = 5; int s = 7; int sum = (v*v-u*u)/(2*a*s); System.out.println(sum);
@hellosir1495
@hellosir1495 3 жыл бұрын
Hi Harry, Could you please share the PDF of you notes for all the pages together. Your teaching style is really awesome.
@aniketb3513
@aniketb3513 Жыл бұрын
he has already provided the link of notes in the description.
@ngxlerate
@ngxlerate 4 жыл бұрын
System.out.print("who is the best teacher for coding:"); System.out.println("harry is the best teacher for coding");
@akshatsharma6644
@akshatsharma6644 4 жыл бұрын
Are you getting notes
@akshatsharma6644
@akshatsharma6644 4 жыл бұрын
@Tawfeeq Barik yes
@akshatsharma6644
@akshatsharma6644 4 жыл бұрын
@Tawfeeq Barik I think so that harry sir is forgetting
@akshatsharma6644
@akshatsharma6644 4 жыл бұрын
@Tawfeeq Barik in this java course only bro
@fastcar544
@fastcar544 4 жыл бұрын
Bruh this code could have been soo much better but......
@ayush21sahoo
@ayush21sahoo 9 ай бұрын
at around 03:43 if we will only add a 'f' with number 4 that will also work as when u do any kind of mathematical operation with float data type (f) with any integer(int) or if we do any kind of mathematical operation with double data type(d) with integer data type(int) the resultant will be also float/double and we can also do that by writing '4f' instead of '4.0f' as adding f will make it float only so there is no need of adding an additional 0 like - in above video - float a = 7/4.0f * 9/2.0f but to save time we can also do = float a = 7/4f * 9/2
@luxocity9268
@luxocity9268 4 жыл бұрын
Sir thanks for making videos on java I am really thankful and please keep bringing java so that we can become pros too ❤️❤️❤️
@BhaktaBhusanDas
@BhaktaBhusanDas 3 жыл бұрын
System.out.print("Enter the value of v:"); Scanner input=new Scanner(System.in); float v=input.nextFloat(); System.out.print("Enter the value of u:"); float u=input.nextFloat(); System.out.print("Enter the value of a:"); float a=input.nextFloat(); System.out.print("Enter the value of s:"); float s=input.nextFloat(); float result=((v*v)-(u*u))/(2*a*s); System.out.println("result is "+result);
@s.vsatya7338
@s.vsatya7338 2 жыл бұрын
Cant we use type cast operator for Q1..To make the value as float.
@dhruvverma1901
@dhruvverma1901 Жыл бұрын
10:32 answer is 210 int v = 4; int u = 2; int a = 7; int sum = (v*v-u*u)/2*a*5; System.out.println(sum);
@MonuCodeCrafters
@MonuCodeCrafters 4 жыл бұрын
Should be written after main class.. System.out.println((v*v)-(u*u)/(2*a*5));
@cyberinfos7877
@cyberinfos7877 4 жыл бұрын
bro, this is not 5, its s (displacement)
@abhaypratapsrivastava4400
@abhaypratapsrivastava4400 3 жыл бұрын
10:44 (v*v-u*u)/(2*a*s)
@dhruvgautam8037
@dhruvgautam8037 Жыл бұрын
10:35 float u =2; float v= 1; float a=4; float s=2; float hi=(v*v - u*u)/(2*a*s); System.out.println(hi);
@raunakkumarsingh5030
@raunakkumarsingh5030 3 жыл бұрын
The answer of fourth question is : System.out.println("Q4. Evaluate the expression : v*v - u*u / 2*e*5"); int v = 20; int u = 30; int e = 25; int evaluation = (v*v - u*u ) / (2*e*5); System.out.println("The answer is : " + evaluation); // The final answer is -2
@KodiLearn
@KodiLearn 4 жыл бұрын
No one knows that the best pdf viewer is microsoft edge
@sunilsangolkar8241
@sunilsangolkar8241 6 ай бұрын
best coding playlist harry bhai
@akshatsharma6644
@akshatsharma6644 4 жыл бұрын
Sir notes nahi hai Sir answer will be ((v*v - u*u)/(2*a*s))
@Trex8780
@Trex8780 18 күн бұрын
10:32 Only firmula (V*V - u*u) / (2*a*5)
@Avenenon
@Avenenon Жыл бұрын
public class pr03 { public static void main(String[] args) { float v=12; float u=11; float a=2; float s=3; float z=(v*v-u*u)/(2*a*s); System.out.println(z);
@inzaik3386
@inzaik3386 2 жыл бұрын
Practice question no 4 float v = 4.0f; float u = 6.0f; float a = 3.0f; float s = 7.0f; float formula = ( v*v - u*u ) / ( 2*a*s ); System.out.println(formula); Ans -0. 47
@sejalsanjayvamja
@sejalsanjayvamja 10 ай бұрын
Sir maine bhi java pathana start kiya hai....thoda hard hai...15 saal.ke break ke baad study chalu huva hai....but achha chal raha hai course. Thoda speed jyada hai...word bahut naye naye hai....but aap itna dil se pathate hai to lagta hai ki quit nahi karungi...heartly thx
@sejalsanjayvamja
@sejalsanjayvamja 10 ай бұрын
This reply is for previous lesson....
@TusharKumar-iu4nt
@TusharKumar-iu4nt 2 жыл бұрын
Bhai majje aagaye.. For the first time coding aasaan lag rahi hai!!
@Nerdboy17
@Nerdboy17 2 жыл бұрын
Practice Set Q-4: int v = 5; int u = 3; int s = 7; int a = 4; int result = (v*v-u*u) / 2*a*s; System.out.println(result); Output = 224
@musicalclouds745
@musicalclouds745 Жыл бұрын
Denominator also should be in Parentheses,As a and S get multiplied to result of (v²-u²/2). 👍Like if my opinion is correct.
@zrcoding2832
@zrcoding2832 2 жыл бұрын
thank you harry bhai ! 😇😇
@arshuarshad1551
@arshuarshad1551 4 ай бұрын
Question no.4 is given below public class Q4 { public static void main(String[] args) { int v = 2; int u =1; int a = 3; int s =6; int k = (v*v-u*u)/(2*a*s); System.out.println(k); } } output = 0
@PrishaXD
@PrishaXD Жыл бұрын
ans for qs 5 int d = 7; double f = 7*49/7 + 35/7; System.out.println(f);
@LaxmikantKore
@LaxmikantKore 10 ай бұрын
finally I am understanding things in JAVA.. Thank You Harry Sir.. but I want all chapter notes ....please send it..
@rahulkadam6655
@rahulkadam6655 Жыл бұрын
Amazing java course🎉🎉
@laxmibabar8330
@laxmibabar8330 Жыл бұрын
Thankyou harry❤️i learnt so much from ur vdo’s than my college in 4 years
@princestudiokarahal6207
@princestudiokarahal6207 3 ай бұрын
Thanks you sir ❤❤❤❤
@spidey_DeViL7996
@spidey_DeViL7996 Жыл бұрын
sir i have a ques , aapki web development wali playlist ke sath sath mai java bhi sikh sakta hu ya fir pehle java complete fir baad mei web development please reply sir❤
@The_sanatan_zone
@The_sanatan_zone Жыл бұрын
class Main{ public static void main(String args[]){ float v=2; float u=3; float a=4; float s=1; float k=(v*v-u*u)/(2*a*s); System.out.print(k); } }
@chingaari1353
@chingaari1353 11 ай бұрын
thanks for this amazing playlist love you brother 😘
@shivakantjaiswal
@shivakantjaiswal 2 жыл бұрын
import java.util.*; class Question{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a=1,s=2,u=3,v=4; float b = (v*v-u*u)/(2*a*s); System.out.println(b); } }
@official.shubhu
@official.shubhu 2 жыл бұрын
Question - 4 class HelloWorld { public static void main(String[] args) { int v = 4; int u = 7; int a = 3; int S = 9; int g = (v * v - u * u)/ (2* a * S); System.out.println(g); }
@rok1394
@rok1394 Жыл бұрын
import java.util.Scanner; public class Main { public static void main(String[] args) { int v=9; int u=6; int a=2; int s=3; float i = (float) ((v*v) - (u*u)) / (2*a*s); System.out.println(i); } }
@BholaKumar-rbs
@BholaKumar-rbs Жыл бұрын
You are great 💯
@sujalsharma2613
@sujalsharma2613 24 күн бұрын
Thanks sir ❤
@48_subhambanerjee22
@48_subhambanerjee22 Жыл бұрын
class HelloWorld { public static void main(String[] args) { int v=2,u=3,a=1,s=5; System.out.println("The result is: "); double res = (double)(v*v -u*u)/(2*a*s); System.out.println(res); } } answer is: -0.5
@cott6984
@cott6984 Жыл бұрын
Solution of que. 4 We can do it by taking the value from the user... import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("enter the value of v:"); int v = scan.nextInt(); System.out.println("enter the value of u:"); int u = scan.nextInt(); System.out.println("enter the value pf a: "); int a = scan.nextInt(); System.out.println("enter the value of s: "); int s = scan.nextInt(); int solve = (v*v-u*u)/2*a*s; System.out.println(solve); } }
Java Tutorial: Introduction to Strings
12:33
CodeWithHarry
Рет қаралды 1 МЛН
Solve Any Pattern Question With This Trick!
57:20
Kunal Kushwaha
Рет қаралды 2,5 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Asking IITians how hard is to survive at IIT?
13:01
Rahuram Chanthrakumar
Рет қаралды 315 М.
Getting @IShowSpeed Married in India
16:20
Homeys
Рет қаралды 19 МЛН
Learn Coding & Get a Job (in 2025) 🔥
16:54
CodeWithHarry
Рет қаралды 561 М.
Java Tutorial: Associativity of Operators in Java
17:53
CodeWithHarry
Рет қаралды 998 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
Java Tutorial: String Methods in Java
39:02
CodeWithHarry
Рет қаралды 1,3 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН