#6 Data types in Java

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

КОМЕНТАРІ • 51

  • @devanshusachdev7367
    @devanshusachdev7367 Рік тому +27

    Whoa! so much information in such a small video. Here are the points which I liked the most:
    1. Real values are treated as double by default. We have to explicitly specify float value.
    (Ex.: double d = 5.6 --> no error ; float f = 5.6 --> error)
    2. Only 'true' and 'false' are treated as boolean.
    (Ex.: if(true) --> no error ; if(1) --> error)
    Thanks Navin for the info :)

    • @freddieromero3942
      @freddieromero3942 10 місяців тому

      Why does the mac allow the float f = 5.6 and windows only accepts float = 5.6? I can not find this on Google and this course is hard to follow when I am playing follow the leader to a T.

  • @Flo-mz8ct
    @Flo-mz8ct Рік тому +18

    Thanks a lot! I will watch whole series to refresh my java skills :D

  • @arthdaware05
    @arthdaware05 9 місяців тому +1

    Keypoints:
    1. default: double (8bytes) not float
    2. char datatype: only one character and single quotes are allowed
    3. write f at the end of float, l at the end of long
    4. byte range: [-128 , 127]

  • @RaunakKumar-vc5ji
    @RaunakKumar-vc5ji 11 місяців тому +20

    sir where were u......got a diamond in search of gold♥

  • @TanayKarn20147_alt
    @TanayKarn20147_alt 15 днів тому

    thank you for this amazing series sir, i am coming from python in hope of learning Java and this is helping me a lot. i have a minor suggestion, the video on variables could be after data types so you can show more about variables for example float.

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

    Thank you sir very nice gide & very nice best java in data type teaching information video..👍

  • @PrinceManyeka
    @PrinceManyeka Рік тому +2

    May you please make a video series on making a 3d Game Engine with Java
    Please update when you do

  • @SP-un3rj
    @SP-un3rj Рік тому +4

    Thank you sir Please Try To upload Servlet, JSP And Spring Videos Also In 2023

  • @actandrepeat
    @actandrepeat Рік тому +31

    Sick series to watch in 2023^

  • @STesfaye
    @STesfaye 7 місяців тому

    Thanks ,great explanation in detail and in a simple way to understand

  • @deviprasadgm
    @deviprasadgm Рік тому +2

    Thank you Sir...............Excellent Explanation

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

    thank you so much sir...superb explanation..

  • @Ecto993
    @Ecto993 Рік тому +2

    really helpful, thanks !

  • @LO3.
    @LO3. Рік тому +3

    GOOD EXPLATIONS

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

    when ur printing input output is not print syout how u get output

  • @Rambkthanuman
    @Rambkthanuman Рік тому +2

    Sir ek baar main hi sare video daal diye aapne 😅

  • @mohammadaboonajmi2927
    @mohammadaboonajmi2927 5 місяців тому +1

    Hi do you have C# tutorial?

  • @deepanshusahu2333
    @deepanshusahu2333 5 місяців тому

    Sir i have one question if u all the content of topic is covered in such a small times

  • @Sidhu-f5j
    @Sidhu-f5j Рік тому +3

    Thank You Sir ❤

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

    quality content 🙌

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

    I wrote this code and cant get what is wrong with it
    class Hello
    {
    public static void main(String a[])
    {
    Char c = ‘k’;
    System.out.print(c);
    }
    }
    when i compile it , it shows these errors
    Hello.java:5: error: illegal character: '\u00b4'
    Char c = ┬┤k┬┤;
    ^
    Hello.java:5: error: illegal character: '\u00b4'
    Char c = ┬┤k┬┤;
    ^
    Hello.java:5: error: not a statement
    Char c = ┬┤k┬┤;
    ^
    3 errors
    How to resolve?

    • @mayankraj4763
      @mayankraj4763 Рік тому +4

      C of char should be small, not capital

    • @bethesuper4500
      @bethesuper4500 10 місяців тому +1

      it is System.out.println, not print

    • @Hp_359
      @Hp_359 10 місяців тому +1

      @@bethesuper4500 println just means print on new line, so that isn't major issue. but it is easier with println.

    • @Magicpeach01
      @Magicpeach01 4 місяці тому

      Same I'm getting continuous errors don't know why 😢😢😢

    • @coder1106
      @coder1106 10 днів тому

      C in char must be small not capital

  • @PrinceManyeka
    @PrinceManyeka Рік тому +2

    Thank you

  • @emmanuelafanyu2260
    @emmanuelafanyu2260 18 днів тому

    i my self i face issues with using bool instead of boolean and also forgeting the semicolon haha

  • @Hp_359
    @Hp_359 10 місяців тому

    why can you put only one character/letter/number in the char variable?

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

    It's vry helpful👍💯

  • @siddamallayyahiremath6707
    @siddamallayyahiremath6707 4 місяці тому

    i am searching for advanced java can u help me??

  • @kittu0132
    @kittu0132 Рік тому +5

    what you are typing to compile in terminal . i'm not getting you there

    • @notshubhm
      @notshubhm Рік тому +7

      First he types "javac" to compile the problem and if the program is compiled successfully without any errors then he types the program name. For example "Hello".

    • @yeswanthkumarnelli2099
      @yeswanthkumarnelli2099 8 місяців тому +1

      Here is a total code
      class Hello{
      public static void main(String args[]){
      char c = 'k';
      System.out.print(c);
      }
      }
      After you write this
      Do this in your Terminal
      javac Hello.java
      java Hello
      Then your output will come.

  • @sreesanth20
    @sreesanth20 6 місяців тому +1

    class Hello
    {
    public static void main(String a[])
    {
    System.out.println(3 + 5);
    }
    }
    for this code i get this "Hello world"

    • @sa_____i149
      @sa_____i149 5 місяців тому

      You have to run the code first then you will get the result

  • @payalgawande3963
    @payalgawande3963 29 днів тому

    where i will find notes???

  • @Magicpeach01
    @Magicpeach01 4 місяці тому

    Im getting error constantly says
    Could not find pr load main class Hello
    Class not found what should i do??

  • @razakshaik5751
    @razakshaik5751 5 місяців тому

    where is reference data types

  • @dhamideep4759
    @dhamideep4759 2 місяці тому

    1:11 1:12 you are speaking so fast.

  • @jogarao1814
    @jogarao1814 2 місяці тому

    In #class 6 i got an error
    Int num1 = 9;
    Error: the value of local variable num1 is not used

  • @4nsaririzz149
    @4nsaririzz149 Рік тому +3

    I am first viewer on this video

  • @akvloggsofficial
    @akvloggsofficial Рік тому +2

    Awesome

  • @AntarikshRajkonwar
    @AntarikshRajkonwar 6 місяців тому

    12/5/24