#6 Data types in Java

Поделиться
HTML-код
  • Опубликовано: 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