Top 20 solved JAVA operators based MCQS

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

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

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

    Question 4:
    int i = 10.0;
    Its incorrect as by default decimal value is double and we're attempting to assign to int type which (higher byte size to lower byte size). Which will give Compile Time error as possible lossy conversion/ possible loss of precision.
    Hence options d is also incorrect.

  • @adityabajpai5618
    @adityabajpai5618 2 года назад +5

    For Question 18: They are reserved words (for the future use). The true false and null − True, false and null represents certain values in Java, they are used as literals. They are not considered as keywords

  • @parameshparamesh-kq1jc
    @parameshparamesh-kq1jc Год назад +4

    8 th question i got possiable lossy conversion from double to long,I think double is higher range not depending on type , class HelloWorld {
    public static void main(String[] args) {
    System.out.println("Hello, World!");
    long a= 10;
    double b=20;
    long c=a+b;
    System.out.println(c);
    }
    }

  • @universalguy3115
    @universalguy3115 3 года назад +2

    I am gona share this to my friends who is preparing for the interviews.

  • @TheRuggedScrambler
    @TheRuggedScrambler 28 дней назад +1

    13 is Compilation error since we didn't end the initialization of variables with ; and S in system is not Capitalized.

  • @kadereklou6132
    @kadereklou6132 8 месяцев назад +2

    Q4, option d) is not correct also because 10.0 is double and not int so , response are b) and d)

  • @chiragbellara6087
    @chiragbellara6087 4 года назад +1

    Great content. Keep it up.

  • @Spmdiamond
    @Spmdiamond 2 года назад +1

    Q.16 smile😁😁😁😍😍

  • @sovickmajee5209
    @sovickmajee5209 9 месяцев назад +1

    Q:8---Falae

  • @octabplus3793
    @octabplus3793 4 года назад +1

    #keepgoing

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

    Thanks, you know! 😆

  • @naveenantony3924
    @naveenantony3924 2 года назад +1

    Q8) is wrong! Type mismatch: cannot convert from double to long
    Q18) also wrong !! true and false are not keywords in java.
    please check

  • @mithank2666
    @mithank2666 2 года назад

    thank you again

  • @fashionillustrationpds1364
    @fashionillustrationpds1364 2 года назад +1

    18 answer is wrong

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

    Q. 4 float a=10; also wrong, correct is float a=(10)f;

    • @kadereklou6132
      @kadereklou6132 8 месяцев назад

      float a=10; is correct but float a=10.0 must be incorrect;

  • @ARUNSINGH-lo7jx
    @ARUNSINGH-lo7jx 2 года назад +1

    D

  • @ARUNSINGH-lo7jx
    @ARUNSINGH-lo7jx 2 года назад +1

    A

  • @universalguy3115
    @universalguy3115 3 года назад +1

    55 more subscribers needed to earn money from this channel.