Primitives Data Types In Java - All the Primitives And What They Do

Поділитися
Вставка
  • Опубліковано 27 лис 2024

КОМЕНТАРІ • 75

  • @MorselTheFounder
    @MorselTheFounder Рік тому +3

    Watching this in comp class is a truly blissful thing thanks for making these videos

  • @gabrielkevincarrascalbulat7384
    @gabrielkevincarrascalbulat7384 2 роки тому

    i do hope your channel have everything about java, coz i was a failure back in college, i took computer science as my degree, and now, i want to redeem myself in life. thank you soooo much for this by the way

  • @salimtayaadine4643
    @salimtayaadine4643 Рік тому

    JUST STARTED TO STUDY JAVA AND YOU EXPLAIN REALLY GOOD

  • @LisaCoppola
    @LisaCoppola 2 роки тому +8

    I just went and bought your bootcamp, John. Wow, you really have a knack for making this easier and more enjoyable. Thank you, I was worried about passing the college course I am currently taking; I'm not worried any more. In fact, I just ran a practice test I had gotten in the 60s three times prior and this time got a 77%. Thank you so much!

    • @CodingWithJohn
      @CodingWithJohn  2 роки тому +3

      I'm so glad it's helpful, thank you! I just added a set of lessons on the Collections framework last night, and always working on more!

  • @LilyMai0723
    @LilyMai0723 3 роки тому +11

    You are awesome! I loved this tutorial and now I am clear with this topic. Please keep going. You have a new subscriber.

  • @BennyAshurov
    @BennyAshurov 2 роки тому

    THANK YOU BROTHER, YOU TEACH BETTER THAN MOST PROFESSORS GOD BLESS YOU

  • @madamecoco3639
    @madamecoco3639 2 роки тому

    thank you so much my java teacher is the worst teacher ever but thanks to you I can actually learn. Big help

  • @freckly3624
    @freckly3624 3 роки тому +4

    Best explanations i've found. Thanks!

  • @ragore7947
    @ragore7947 2 роки тому

    Thanks for taking your time to explain primitive data types.

  • @NEnigma777
    @NEnigma777 8 місяців тому

    Omg you explain this so much better than my professors! Thank you!

  • @seniorkid3780
    @seniorkid3780 9 місяців тому

    very dedicated and mature content for me. love this. thanks for your time and dedication.

  • @nicolasjosino1421
    @nicolasjosino1421 2 роки тому +7

    Great video John! I've been watching a whole bunch of your tutorials as I aspire to become a Java backend engineer, and they've been really helpful! About chars, I found them to be a lot useful when looping through strings in "for each" statements, do you know a better way to do so? Thanks again for the great content!

    • @daveqr
      @daveqr Рік тому

      So this doesn't exactly answer your question, but one interesting use of looping with chars is when you need to do something alphabetically, like this example from a chess program:
      private static Stream generateAllSquares() {
      final List squares = new ArrayList();
      for (char file = 'a'; file

  • @designwithgeet7895
    @designwithgeet7895 3 роки тому +2

    Thank you so much for best tutorial, keep continue. Full support and love

  • @socaljusticewarrior558
    @socaljusticewarrior558 3 роки тому +2

    I came back to this video because I just watched a video of a guy doing a 6 billion point combo in Tony Hawk Pro Skater 4. When the game finally tallied it up, it didn't get past 1.6 billion even though the combo did, in fact, add up to 6 billion. So the programmers must have used int instead of long. If only they could have foreseen the jump in human evolution from 2003 to now. No one was capable of such things back then.

  • @jabrama3712
    @jabrama3712 4 місяці тому +1

    Why is it always the short videos that helps more than an hour video

  • @laylachisom8996
    @laylachisom8996 2 роки тому

    Absolute gold explanation

  • @eyekona
    @eyekona 2 роки тому

    Char is also a whole number data type and stores the ascii value, so you can do calculations with it. That comes in handy lots of times where I work ^^

  • @bemashdesilva3873
    @bemashdesilva3873 2 роки тому

    Very easy to understand,Great jobbb

  • @FrancesObeleEbubechukwu-yz7po
    @FrancesObeleEbubechukwu-yz7po 3 місяці тому

    Thanks a lot, your video is so explanatory 🙏✨

  • @sruthikathiru
    @sruthikathiru Рік тому

    Good explanation Mr. John. Actually I want to know about "how to handle primitive data types in java? " Please explain it .✨

  • @Boooga
    @Boooga 3 місяці тому

    Thank you for the lesson 😁

  • @m.nazran2087
    @m.nazran2087 3 роки тому

    will make sure watch ur vid every week
    keep it up

  • @xetbytetechnology1445
    @xetbytetechnology1445 2 роки тому +2

    I have been traveling on Earth with Java for 10 years just 5 miles, but after watching your approx 10:23 minutes tutorials I have traveled with java 24,887.64 miles which is exactly the circumference of the Earth. Thank you soo much for making everything too easy to understand.

    • @yeasp
      @yeasp Рік тому

      Well appreciated appreciation comment

  • @MaryamMaqdisi
    @MaryamMaqdisi 3 роки тому +1

    Incredible, thanks for doing this

  • @dilshoddostiev4332
    @dilshoddostiev4332 2 роки тому

    Thank you Bro! Its easy to follow

  • @shekhardhami6831
    @shekhardhami6831 3 роки тому +1

    Love from India

  • @francksgenlecroyant
    @francksgenlecroyant 2 роки тому

    An incredible video from John

  • @automationneemo
    @automationneemo 2 роки тому

    I like your videos. Thanks John!

  • @fabiomatuda
    @fabiomatuda 2 роки тому

    Thanks, John, your videos are awesome!

  • @megoshmego
    @megoshmego 2 роки тому

    i like that kramer painting in the back. and also the video.

  • @chrisred87
    @chrisred87 Рік тому

    Personally I feel lower case L is 'wrong' solely because at a glance it could be easily mistaken for a 1. I think Upper case is clearer.

  • @emilakhmedov2553
    @emilakhmedov2553 3 роки тому

    May God bless you and your family.

  • @motivefactoryy
    @motivefactoryy Рік тому

    You nailed it ❤❤

  • @Easy.educantion
    @Easy.educantion Рік тому

    Thank you sir.

  • @soniablanche5672
    @soniablanche5672 Рік тому

    the byte type is pretty useful to handle binary data byte by byte

  • @ВасильЗауличний-у2е

    Great video but I would like 1.5 or 2 times slower :) - But very good explained

  • @everythingpb7710
    @everythingpb7710 2 роки тому

    Thank you for the help

  • @_-_-_-_K
    @_-_-_-_K 2 роки тому

    Do you have any videos that talk about non-primitive data types?

  • @cc35TX
    @cc35TX 2 роки тому

    i like your style

  • @SedikiDolley
    @SedikiDolley Рік тому

    wow. brilliant

  • @williamhallman2760
    @williamhallman2760 2 роки тому

    I am taking a web design class and in my assessment I have to have 2 char's in a row. The first char works. But I can't seem to get the second char to work correctly? What am I doing wrong?

  • @Benjamin-ng1lk
    @Benjamin-ng1lk 2 роки тому

    thank you thank you

  • @amnfox
    @amnfox 2 роки тому

    I don't understand how a programmer decides which type to use. Should I just primarily use int? If I use int for a small amount of data am I misusing the type?

    • @megoshmego
      @megoshmego 2 роки тому +1

      no. but if your number exceeds 2 billion you need to use a long. people dont just always use long bc it takes more time to run.

  • @AmanRajput-ku5qe
    @AmanRajput-ku5qe 2 роки тому

    If we want to store larger value than long data type( > 9,223,372,036,854,775,807) then , how we can store it ?

    • @CodingWithJohn
      @CodingWithJohn  2 роки тому +3

      Check out BigInteger: docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html

  • @sundayjacobballa5410
    @sundayjacobballa5410 2 роки тому

    Wonderful

  • @griselortiz8364
    @griselortiz8364 3 роки тому

    if I were to use "boolean" is there a way to have the "user" input "TRUE or FALSE" when I run the program for the variable?

    • @sc1ss0r1ng
      @sc1ss0r1ng 3 роки тому +1

      Do you mean, if you use a Scanner to read the user input and decide if they type 'true' or 'false' ?
      A little example I made of that scenario here just using the Main class for simplicity's sake (you have to import the scanner for this to work):
      -----------------------------------------------------------------------------------------------------------------------------------------------------------------
      package (name of your package)
      import java.util.Scanner;
      public class Main{
      public static void main(String[] args){
      checkForUserInputWithBoolean();
      }
      public static void checkForUserInputWithBoolean() {
      Scanner scanner = new Scanner(System.in);
      System.out.println("Are you a human? Answer 'true or false' ");
      byte checker = 0;
      while (checker == 0) {
      try {
      boolean userAnswer = scanner.nextBoolean();
      if (userAnswer == true) {
      System.out.println("You are a human being");
      checker = 2;
      }
      else if (userAnswer == false) {
      System.out.println("You are not a human being
      ");
      checker = 1;
      checkForUserInputWithBoolean();
      }
      else{
      checker = 0;
      }
      }
      catch (Exception e) {
      System.out.println("Wrong input, must be true or false
      ");
      checker = 1;
      checkForUserInputWithBoolean();
      }
      }
      }
      }

  • @wellingtonaraujo5418
    @wellingtonaraujo5418 Рік тому

    Do you have discord group to java studies ?

  • @ceydaavc4978
    @ceydaavc4978 Рік тому

    is there any video that ı can find class as data type? ı mean you create public person mother inside the person class and ı dont understand

  • @mustafaraed1954
    @mustafaraed1954 3 роки тому +1

    thankssss

  • @4ntoondev534
    @4ntoondev534 2 роки тому

    I prefer capital 'L' for longs, l looks too much like 1 in certain fonts (like yours :))

  • @69k_gold
    @69k_gold 2 роки тому

    Using lowercase L is evil, considering 1 and lowercase L look the exact same

  • @HeliaSamaa
    @HeliaSamaa 2 роки тому

    Can i do this on Android using java N-IDE?

  • @anandss9647
    @anandss9647 Рік тому +13

    You guys call it "char" but when it is character, you call it is as "karacter". May i know the logic behind this 🤦

    • @timbo2legit2quit
      @timbo2legit2quit Рік тому +1

      Char is an actual word. It's the black stuff when you burn something. Char is pretty unique because most words that start with 'cha' has a 'k' sound.

    • @tabnaka
      @tabnaka Рік тому +3

      not logic just a intricacy of the English language

    • @trollermcgeetv
      @trollermcgeetv Рік тому

      @@timbo2legit2quit like a charred marshmallow for example

  • @LifeStories-ManjuTheresa
    @LifeStories-ManjuTheresa 2 роки тому

    My son Nathan asked me to comment here. He is saying that boolean data type is not there in Scratch coding language.

    • @CodingWithJohn
      @CodingWithJohn  2 роки тому +1

      Interesting, thanks Nathan! I haven't used Scratch yet but I've heard a lot about it, I'll see if I can learn something about it and see if there's a boolean equivalent in Scratch.

    • @LifeStories-ManjuTheresa
      @LifeStories-ManjuTheresa 2 роки тому +1

      @@CodingWithJohn Hey John. Thanks for the response. Nathan was excited when I told him "Hey John replied" :-) Btw I watch your videos. Love the way you explain. Great pronunciation, intonation, clarity and no unnecessary details. Waiting for more .. :-)

  • @ahmadiyad2860
    @ahmadiyad2860 2 роки тому

    annotations in java

  • @deniskozmin4207
    @deniskozmin4207 3 місяці тому

    I disagree about memory. As java is yet considered to be a language for mobile, development memory is still a valuable resource in that context.

  • @walkingreader
    @walkingreader Рік тому

    You might want to have done this in your first 10 videos, and not around the 40th.

  • @CowsinReal
    @CowsinReal Рік тому

    it's million billion trillion quadrillion quintillion sextillion septillion octillion etc

  • @pickashoe7870
    @pickashoe7870 Рік тому

    but i need a jillion datatype

    • @CodingWithJohn
      @CodingWithJohn  Рік тому

      Hmmmmmm try BigInteger. Not a primitive, but essentially only limited to the amount of memory you have.

  • @beravera5176
    @beravera5176 9 днів тому

    I am cool i call it char. Are you cool?

  • @jinxedboo6031
    @jinxedboo6031 Рік тому

    10lbs of... do I actually know what tho ? ;)

  • @DaxterSnickers
    @DaxterSnickers 2 роки тому

    My bank account is measured in byte.

  • @alp196
    @alp196 2 роки тому

    System.out.println (" You are totally Pro myFriend!!"); And Subscribed already..