#7 Literal in Java

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

КОМЕНТАРІ • 27

  • @C_o_d_e_Help
    @C_o_d_e_Help Рік тому +10

    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

  • @24_cst3_eshagunjekar7
    @24_cst3_eshagunjekar7 Рік тому +1

    amazing teaching

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

    Thank you so much sir

  • @ahmadsyed3372
    @ahmadsyed3372 Рік тому +25

    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 Рік тому +6

      I guess that’s why I’m confused

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

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

  • @24_cst3_eshagunjekar7
    @24_cst3_eshagunjekar7 Рік тому +3

    please take coding questions also

  • @UNKNOWN-ls4wc
    @UNKNOWN-ls4wc Рік тому +2

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

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

    thank you

  • @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?

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

    Is literal is support for all datatypes or not

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

    New Info --> 1:24

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

    Sir please provide their notes.
    Please sir

  • @pravajyadalal4340
    @pravajyadalal4340 10 місяців тому +2

    what is 12e10 here? I didnt understand it

    • @jeyyoongs._.5652
      @jeyyoongs._.5652 9 місяців тому +1

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

    • @AdityaPandey-kc1dz
      @AdityaPandey-kc1dz 5 днів тому

      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.

  • @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.