#7 Literal in Java

Поделиться
HTML-код
  • Опубликовано: 27 дек 2024

Комментарии • 27

  • @C_o_d_e_Help
    @C_o_d_e_Help Год назад +12

    Ur teaching style is awesome !!

  • @NazziiaBegum.p
    @NazziiaBegum.p Год назад +5

    very good class sir i could not able to understand programs but this class was awesome

  • @PrinceManyeka
    @PrinceManyeka Год назад +6

    Please make a series on creating a game engine with Java sir

  • @ahmadsyed3372
    @ahmadsyed3372 Год назад +26

    What! It's like u jump/skip too far from the last video lesson and too fast as well. I can understand bcoz I've learned c and c++ language before but a real beginner will confuse and cry

    • @ajideolamilekan
      @ajideolamilekan Год назад +7

      I guess that’s why I’m confused

    • @nikhildabholkar1814
      @nikhildabholkar1814 5 месяцев назад +1

      I am totally confused like where did all thise value came from

  • @devanshusachdev7367
    @devanshusachdev7367 Год назад +3

    New Info --> 1:24

  • @UNKNOWN-ls4wc
    @UNKNOWN-ls4wc Год назад +2

    Bro Regular Expression in java ...
    plz tell us about this topic..

  • @Tamilarasu03
    @Tamilarasu03 5 месяцев назад

    Is literal is support for all datatypes or not

  • @pravajyadalal4340
    @pravajyadalal4340 11 месяцев назад +2

    what is 12e10 here? I didnt understand it

    • @jeyyoongs._.5652
      @jeyyoongs._.5652 10 месяцев назад +1

      it is like writing in the forn of 1.2x10^11 or 12x10^10

    • @AdityaPandey-kc1dz
      @AdityaPandey-kc1dz Месяц назад

      I don't know about java so much. But in cpp we use this as exponentiation and not epsilon. It's like 10e7 means 10 raised to the power of 7.

  • @24_cst3_eshagunjekar7
    @24_cst3_eshagunjekar7 Год назад +3

    please take coding questions also

  • @24_cst3_eshagunjekar7
    @24_cst3_eshagunjekar7 Год назад +1

    amazing teaching

  • @amitbirajdar3613
    @amitbirajdar3613 Год назад +1

    Thank you so much sir

  • @Mukeshsainaidu
    @Mukeshsainaidu Год назад +5

    3:50
    class HelloWorld {
    public static void main(String[] args) {
    char c = 'a';
    c = c+1;
    System.out.println(c);
    }
    }
    Error: conversion from int to char
    c = c+1;
    ^
    1 error
    when I use c++ it works...

    • @Mukeshsainaidu
      @Mukeshsainaidu Год назад +2

      with help of chat gpt i found
      class HelloWorld {
      public static void main(String[] args) {
      char c = 'a';
      c = (char)(c+3);
      System.out.println(c);
      }
      }
      This works...

    • @ashleshkanchan825
      @ashleshkanchan825 Год назад +6

      First you'll have to understand it in terms of ASCII code(I think it's actually in Unicode, but idk how to explain in it, so I'll tell in ASCII)
      The ASCII of 'a' is 97
      and 'b' is 98
      When you do c++, it's like incrementing the ASCII code.
      first c= 97(in ASCII- I.E, a)
      C++:
      now it's c=98(in ASCII- I.E, b)
      So this is how char increament works.
      But c = c+1;
      Is like adding an Integer(1) to a character/string(a)
      In layman terms it's like Adding a Number to alphabet, Which is not possible.- hence an ERROR
      Well, I'm 3 months late, so I hope you'd already figured it out

    • @Mukeshsainaidu
      @Mukeshsainaidu Год назад

      ​@@ashleshkanchan825Thanks bro sorry for late reply.

  • @amitoshjaiswal6329
    @amitoshjaiswal6329 Год назад +3

    int c=1_00_00_000; //This is working
    int cI=1_000_000_000_000; //This is not working
    Why is so?

  • @vr_edit_1
    @vr_edit_1 Год назад +1

    Sir please provide their notes.
    Please sir

  • @sandunimaheshika8899
    @sandunimaheshika8899 Год назад +1

    thank you