#46 Anonymous Object in java

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

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

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

    Two times constructor running means two new object created.
    Got it. 🥳

  • @satyadsp3906
    @satyadsp3906 Год назад +16

    "Everyone hates this type of people" - Telusko to people who get 99/100 😂😂😂 man ur funny

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

    I'm a big fan of your python tutorial,

  • @ajayghode3602
    @ajayghode3602 29 дней назад

    Thank you...whenever we want to use normal obj, we can use. Obj creation happens only once. It can't be used as reference again(because there is no obj for reference).

  • @jenilcaptain6295
    @jenilcaptain6295 6 месяцев назад +3

    need a video on garbage collection

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

    public class Main{
    public static void main(String[] args) {//Main method
    A a = new A();//Constructor and object creation
    a.Announcement();//Method call
    new A().Announcement();//Anonymous object and method call
    }
    }
    class A{//parent class

    public A(){
    //Constructor
    System.out.println("
    Object created.");
    }
    public void Announcement(){
    System.out.println("NOW in A!");
    }
    }

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

    creating an object without reference , which can be deleted by garbage collection ryt?

  • @AashiSaxena-g8z
    @AashiSaxena-g8z 7 месяцев назад +1

    Whats the use of these anonymous objects?

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

      When you want to use methods inside another class but don’t want to create an object for it

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

    marks=99
    and then he said...."we hate. everyone hates them"
    🤣🤣

  • @HitRespawn
    @HitRespawn Месяц назад

    🤯 thajm d

  • @gauravsoni2300
    @gauravsoni2300 Год назад +4

    I give you 99 for teaching, but I can't hate you😅

  • @suryaprakash7717
    @suryaprakash7717 2 месяца назад

    99 was personal ✅

  • @smmahadibhuiyan4437
    @smmahadibhuiyan4437 7 месяцев назад

    deep talks

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

    👍