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).
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!"); } }
Two times constructor running means two new object created.
Got it. 🥳
"Everyone hates this type of people" - Telusko to people who get 99/100 😂😂😂 man ur funny
I'm a big fan of your python tutorial,
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).
need a video on garbage collection
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!");
}
}
creating an object without reference , which can be deleted by garbage collection ryt?
Whats the use of these anonymous objects?
When you want to use methods inside another class but don’t want to create an object for it
marks=99
and then he said...."we hate. everyone hates them"
🤣🤣
🤯 thajm d
I give you 99 for teaching, but I can't hate you😅
99 was personal ✅
deep talks
👍