Java Tutorial: Variables and Data Types in Java Programming
HTML-код
- Опубликовано: 31 авг 2020
- Java Tutorial (Variables and Data Types): This Java tutorial for beginners will teach you about primitive and non primitive data types in java programming from scratch. This complete java course will help you master all the concepts you need to learn in Java.
►This playlist is a part of my Complete Java Course playlist: • Java Tutorials For Beg...
►Source Code + Notes - codewithharry.com/videos/java...
►Ultimate Java CheatSheet: codewithharry.com/videos/java...
►Checkout my English channel here: / programmingwithharry
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Python Tutorial In Hin...
►Python Complete Course In Hindi - • Python Tutorials For A...
►C Language Complete Course In Hindi -
• C Language Tutorials I...
►JavaScript Complete Course In Hindi -
• JavaScript Tutorials I...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Django Complete Course In Hindi -
• Python Django Tutorial...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithharry.com
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here
I am doing my best to create the best Java Course for you. Please do your part by sharing this video!
Access the Playlist: ruclips.net/p/PLu0W_9lII9agS67Uits0UnJyrYiXhDS6q
Instagram: instagram.com/CodeWithHarry
1st one to comment 12sec ago video
Thank you Harry bhai
Sir aap php Kai login or handling ka source code dalenge to acha hoga sir please reply and amazing java types
Brilliant 👍🏻
Great sir
THIS PERSON IS MORE IMPORTANT THAN ELON MUSK.
@Attitude girl shivangi your new song with Inder Chahal is great
True
Please don't compare elon
@@v3nomoussamrat701 bro it was just a way to show the hard work put by this man.🙄🙄. I also know what Elon is
lol no
He is literally putting his most efforts. He deserves billions.
Not billions ... There are other tutors who are much better than him
Programmer 404 There may be but never compare. He is providing notes which he wrote himself. He is providing you with the cheat sheet. He writes everything he explained in his website. He is bringing a full course. Most importantly he explains in such an easy way. Now tell me do others provide you all this for free. I think that they don’t even provide such a valuable material after taking money too.
@@abheygupta2332 is absolutely right
Absolutely he will deserve that.
Right
Whoever starting it in 2024 plz leave your reviews here! According to me this is the course you need nothing else.😃
Never commented on RUclips but Harry deserves it
Such a great work 👏
Amazing course
18:14 - The generic form for the range will be from - ( (2^(N*8)) / 2 ) to + ( ( (2^(N*8)) / 2 ) - 1 )
🤡👍
19:52
Noice 🙌
sir you are the best teacher i have ever seen. i learned html , css , javascript , php , C programing and now i on the way to java and i think this will continue in future also. Thanks a lot sir😇❣
The way you have explained basics is beyond excellent. I find myself lucky to have come across your course.
System.out.println("amazing java course");
System.out.println("best teacher on youtube");
Online course: paid
Harry course : free
@deshbhakt much better than few paid
@deshbhakt ulta bola🙄
Please learn me also
@8115_DhairyaVijay best of all paid courses
yeah .and the course given by harry is more easy to understand yet knowledgeble .
You are too good man. You solves every doubts and confusions in easy way
Great job sir. Your way of explaination is simple and i would recommend this channel to all the coders out there
If n bytes. Then 1st n*8=8n
Range is :
-{(2^8n)/2} to [{(2^8n)/2}-1]
Right
Awesome
Great
@@kira_light7725 same here!!!
same here
Bro Harry, why did I not see your videos before! I have been struggling to learn Programming for so long. You just made it easy. Thank you so much. Because of your good and hard work people like us get hope. I will always be grateful to you.
Brother can you help me in
learning programming language please
@@varunsharma2507 nahi😛
@@neeraj4561 kr le
Thanks a lot I am starting to learn Java and this playlist is helping a lot for someone who have very less knowledge on programming language
Sir you are wonderful teacher for java !! It helped me a lot to master java language!!
I've never commented before on a YT video but code with harry deserves it. So much efforts and mad hardwork , last time I saw this video 2 years back when I was doing my btech , now watching it again when I'm switching job. 💯 hats off!!
Hyy
@Muskan Singh hyy
@@2shorts408 kya taqleef hai bhai is sajjan ko..??
@@deepakumar01 🤣🤣when a girl comment , koi na koi hyy byy karne aa jaata hai jaise ki wo apna address de deyy🤣🤣🤣🤣
you are not prepare with best CPU mind
itna achhe se kon btata h yr
Udemy - All of the cost of lunch
CodeWithHarry - Lesser than a price of toffee
That's why Harry is legend
Bhai you are the god gifted child bro 🙏 ise hi life me successful ben ke raho. Aur hum jaisi logon ko bhi successful banaooo❤
suprb explanation of java course and each and every concept clear..thnq for this sir I was at zero level but after watching your videos ...I am blessed and thankful to you that you teach in free and in proper way ...even not our teachers not like us..
Range of a data type that takes 'n' bytes of space would be : - (2^ n*8)/2 to +[(2^ n*8)/2] -1
total space it occupies : n bytes
total bits it can hold : n*8 bits
total values would be : 2^ (n*8)
so, range would be : [-2^ (n*8)]/2 to [+2^ (n*8)]/2 -1
right
If we put n=3 condition false
@@surajyadav289 there will not be n=3 in datatypes
@@surajyadav289 only even values are put
June 14 2023
Completed it.
Will be there again tomorrow for revision.
Consistency is the challenge ❤
thats my birthday
@@mohitarora9092 and SSR's demise date too 🥹
Aa gyi kya bhai coding
@@insizegamer chal rhi hai 1 saal ho chuka ab toh tab beginner tha
@@mohitarora9092 and that's the death anniversary of SSR
Great job sir. Your way of explaination is simple and i would recommend this channel to all the coders out there . AMAZING COURSE !!!!! 🎉 🎉
your teaching way is very different from others there is no hate for any one but you are the best tutor i have seen ever
Nice video sir , you are the best teacher in my whole life 😍😍😍😍😍
18:20 The formula for calculating the value range of a data type of n bytes is :-
Let n'=n*8
-2^(n'-1) to 2^(n'-1)-1
When its 2^(n-1) then y for byte its 128 . Coz 2^8 is 256. Bt the range of byte is 2^7. Can u pls clear ths doubt. Im a beginner.
Thank you
@@ApexFr777 see its easy
1 byte =8 bits(n)
and the formula is 2^(n-1)[n is the number of bits]
therefore the range for byte is 2^(8-1)
=2^7=128
@@Manav0077 thanx brother
3/8/23 After a long break of more than two weeks . I know it's a long break , but yeah , had revised in between but from today again trying to be regular with JAVA . Was busy in other stuffs of life, like ML bootcamps, Web dev. basics , Git and GitHub Set up and others, as they are also important in this journey. But still JAVA is to be completed.... So , trying to be consistent from today again , revising the first 10 lectures with proper concepts revision and along with source code completion and notes. Will be regular in revision as well as progression in the course of learning from tomorrow . Thanks a lot Harry for this JAVA course once again.
❤❤🙏🙏
If a data type takes "n" bytes:
n bytes= 8 * n bits
range= -(2^8n)/2 to (2^8n/2) - 1
So, range= - 2^ (8n-1) to [2^ (8n-1)] - 1
For n bytes, range will be from ((2^(8n))/2) to ((2 ^(8n))/2) - 1
There is a correction, minus sign
- ((2^(8n))/2) to ((2 ^(8n))/2) - 1
i.e -128 to 127
@@satishurewar2564 thanks bhai
((-2^8n))/2) to ((2^8n)/2) -1
@@pritampritam3458🎉
Hello Harry I am Arjun from class 6th I am learning Java during my summer vacation.
Me too
Hmai tou 6th me pta tha ki 10th pass krne k baad mazai hi mazai hai. 🥴🥴🤣🤣🤣
thank god i found your channel , learning java became easy
18:10 Formula: -(2^(n*8))/2 to (2^(n*8))/2-1
Correct
@@rohans3447 Thanks 🤟🤟🤟
Same Answer No Difference
My answer is also same no difference 😅
A bit of modifications -
[-(2^(n*8))/2] to {[(2^(n*8))/2]-1}
Might look a bit complex XD, but it is mathematically correct.
I started learning Java. But there were a lot of courses and books that were available. But you did a fantastic Job of making it simple and providing relevant notes that too free of cost. Hope you have a wonderful career and this channel gets acknowledge for being as fantastic as it already is.
Kaha sa notes mila bhai musjko bhi chaiye the notes
@@ShubhamSingh-fk8fm description Mein website k link h unka. Downloads k option Mein Pura notes available h.
amazing Java course. Thanks for providing it for everybody for free
you are providing great knowledge bro your lectures helping me a lot in studies.
Even though I have studied java 2 years back, this by far is the most easy to understand course on whole youtube. This is helping me out very much in brushing up the basics that were left out when I was learning. Can't wait to finish this and start the Data Structures and Algorithms playlist. Thanks harry! I've shared this playlist with all my peers and siblings who are learning to code. This is GOLD! Hope you cross 2M subs very soon! Keep em coming!
this is the most interesting and detailed course for java on entire youtube. hats off to you for putting in so much efforts for us! A very big thanks.
Amazing java course bhaiyya thankyou
I am learning JAVA in 2023. Even after 3 years this course is best from all the other courses.❤❤❤❤❤❤❤❤❤❤❤❤❤
ab tak kitna sikha ?
18:20
Formula to calculate the range of a data type : -(2^8n-1) to (2^8n-1)-1
Where n = no. Of bytes it takes
Right!
It's divided by 2 so yeah youbcan write that as well
The formula that you have written above is wrong, the right one is -(2^8*n)/2. to (2^8*n)/2 -1.
@@mania20 mania the formula that the above person has written is wrong and the right one is what I have written. -(2^8n)/2 to (2^8n)/2-1
@arpit he has followed exponent rule
I was thinking to take computer classes but after watching your videos I changed my thoughts. I don't know anything about computer but the way you are teaching is commendable. It is easy to understand.
I want to ask a question that "is this playlist contain complete java's topic? "
very very nice video sir thank u for explaining all the terms in simple
harry bhai bhot interesting hai ye , liked it
Yes is a real coder,teacher , helper , and a god gift. Pls pls pls share his playlists
Hey dislikers, what else do you want? He's tries his level best in his every course!
I think they want us to kick their asses make them our slaves....
They are haters chill
they dont have a life
@@fastcar544 jindagi se pareshan
ho sakta hai jaisa unne aspect kiya tha vaisa unhe na milla
aur aisa bhi ho sakta hai ki coching institude vale ho?
Actually i stat this tutorial today and I'm really happy with this lec which i easily able to understand this...thank u so much sir 🎉😊
Congratulations sir, here is a good news for you that is I have felt your feelings and skills of you teaching.
AHrry you are the best, I have seen many teachers but the way you teach online that enormous. I haven't realized that I am taking an online class, you have one level up .... Amazing talent buddy...
18:06 For integers taking n bytes according to the data type, value will range from (-2^(n*8))/2 to ((2^(n*8))/2)-1.
Amazing Java Course!!!!!!!
Great Job ...and Love you....
I was waiting for this Java course for a year in this channel . And now finally he started. Love you Harry bhai 💓💓💓
18:10 For numbers : formular to calculate for n number of bytes -(2 to the power(n*8))/2, +((2 to the power(n * 8)/2)-1) for charecters : +((2 to the power (n * 8))-1)
Its seriously amazing I loved this course...
amazing java course bro. thanks for all your hard-earned knowledge
You're a great teacher. Thanks for uploading these videos and putting up so much effort. Love your work. Great JAVA code!
If a data type take n byte then:
-(2^n*8/2) to (2^n*8/2)-1
Answer of your question 😉😉
If we take a data type like short.
short = 2 bytes.
2*8 = 16.
-(2^16/2) to (2^16/2)-1
Solution: -(-32,768) to (32,767).
It so easy thank you.... 😎😎
Very much informative for the beginners like me ❤
Amazing JAVA course Thanks for your invaluable effort
Im so thankful to you, your clearing very basic concepts very well because of which CS concepts are interesting to me now till now i had to learn or just didnt get through my mind.
Dear Harry, why did I not watched your channel before.... I think I'm too late to watch your videos but now I'm not going to stop. Thankyou 🥹
Great work and very helpful 🎉
Amazing Java course!!
Amazing java course. thank you very much for such a detailed course. Not only for this but for all the that you have made on this channel.
This man's effort should be appreciated... He puts in a lot of work with Quality content
❤❤
Realy
Thanks sir for giving us this helpful course
Thankyou so much Harry bhai
This is helping a lot!!❤
Best Java tutorial I have ever seen. You are doing a great job. ❤️
18:10 Formula: -(2^(totalBit*8))/2 to ((2^(totalBit*8))/2)-1
good explanation sir...thank you
Very helpful & very beginner friendly. 🖤
Hey Harry,
I just started to learn java, before came here I watched several videos of different tutors, but as felt your way of teaching is very different than others.
As i am a beginner and having difficulty to understand each small thing but your video really help me to clear my doubt.
you learned java?
Wondorful . Tried to learn java from others but was totally confused. But now I have a clear mind. Amazing Java Course. You deserve Millions
Sachi Bhai AMAZING JAVA COURSE☺🙏
amazing java course for begginers to advance
For n bytes ,there would be "(n*8)"bits. So the value ranges from "- {2^(n*8)/2}" to {2^(n*8)/2}-1
bro ye (n) ka matlab kia hota h could please explain me
@@vishal_34n is the number of bytes taken by the data type
@@vishal_34 n means natural number, kuch bhi le sakte hain app
Why is it divided by 2?
Bhai tum dono maths pad ke aao yrr
I am from python programming, as I'm used to python syntax😅so the semicolon and int and other things make the syntax a bit harder, but Harry bhai explains it so well, it becomes really easy. Good job harry bhai.
Ya same problem for me too.
I had also began programming from python.😅
@@KoushikDas2005 where do you guys work
@@pranjiljain4500we are students
amazing java course bhaiya
Amazing course ❤❤❤ it really helped me
Outstanding Series as well as Outstanding way of Teaching. It Helps a Lot......
Thanks a lot Harry Sir!
it's amazing java course and literally sir putting his most effort so once again sir thanks for providing the java course
Amazing Java Course!
public class primitive {
public static void main(String []args){
System.out.print("Sum of three numbers on =");
int a = 67;
int b = 67;
int c = 67;
int sum = a + b + c;
System.out.println(sum);
}
}
Best teacher in my life for coding... Thanks Harry Vai/sir ... 🙏🙏🙏
29/6/23
I was inconsistent from 2 days. On 27, I was irregular in revising my schedule . But completed my notes of first chapter yesterday. Now revising the lectures again , revising with the source code . Hoping to be consistent again . Thanks Harry again.❤
Hey can we connect on any chat app bcoz i also preparing this language but need consistency and regularity..need some one to work along on same thing ..if u don't mind it btw which branch r u from and which year
@@kb6443 I am from CSE branch only , learning this language because it's there in my syllabus curriculum of first semester. I am just going to start my first year.
I don't know why yt is deleting my comments again and again.
But ,yes we can connect on telegram but on yt I am unable to share my username with you because of yt chat restrictions.
@@kb6443 your second comment is not visible to me. I checked it again so I came to know that you have commented something which is not visible to me.
@@kb6443 i can see you have 3 comments on this channel but still only one is visible to me.
Better you reply me on any other comment of mine of this channel.
I have several comments on this channel. Reply there .
Very impressive teaching skill.
amazing java course bhaiya🙂
You really teach like a experienced teacher.
You deserve 1 trillion subscribers.
Bhai Earth ki population 7 billion hai , Alien se bhi subscribe karwaega kya.
@@ytvideoedit7055 ji
@@ytvideoedit7055😂😂
@@ytvideoedit7055😂😂😂
And also angels
Amazing Java Course by Harry Bhai.
I have learned C C++ Php python and Java all from your playlists. You are doing amazing job. Programming looks easier now thank you so much sir.
For integers taking n bytes according to the data type, value will range from-(2^(n*8))/2 to (2^(n*8))/2-1
Amazing Java course !
i already have a paid java course but still i m learning here more than paid course........
thanks for it...........Harry bhai🙂🙂
sorry to disturb u
but can u tell why we use int there like we could use long and it will still work
@@Ghostly_canvas Double and long use more space(memory). Also sometimes it's useful to make it clear that the value is an integer and will not have a decimal part.
Your teaching style is amazing.
You deserve millions of likes.❤️
Toh dete kyu nahi hoo
sahi baat hai bro
Amazing java course !
Thankyou for the all the efforts ❤
1000 videos daal diye yr wo bi itni quality education sach m bro hats off to u
08:32 For integers taking n bytes according to the data type , value will range from -(2^(n*8))/2 to (2^(n*8))/2 -1
How many lectures did u complete till now
@@knavadeep7576 currently on this one. What about you
amazing java course ...