Yesterday I asked one problem I faced. I rectified the solution for that problem. I follow your statement Keep Practice for practical only. I am newbie in java but I determent to learn core java within 1 month. So I keep watching your video which clear my concept and it day to day motivate me to achive my goal.
Thank you so much Ratan Sir - Just one word for you "SUPERB", this is from the all 4 chamber of my heart. I live in mumbai and if i success, one day i will meet you definitely and if not it will be my dream to meet you. Dugasoft please send this message to Ratan Sir..... His unknown student(Abhay Singh).
Hello Darshan. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Tq so much....... First time I got Hope's like I can do coding with this virtual world. This is all bcz of u sir. Tq u aloot for this precious information sharing with us.....
I don't know what to say Sir you make Java concept so easy... And that style asking questions "Ratan......?" yourself on behalf of us is damm good. Thanks once again
Hello Mech Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: CoreJava by Ratan goo.gl/7oC3T3 Advanced Java jdbc by Ratan goo.gl/QymTy4 Advjava tutorials - JSP by Ratan goo.gl/hG2hUC Adv java servlets tutorial by ratan goo.gl/a9LYoQ
Superb teaching ..hats off..All dought get cleared. We learn everything from faculty but we don't know to use them at a time. Now i understand very well. thank you sir..
Hello Gururaj Kulkarmi, Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: CoreJava by Ratan goo.gl/7oC3T3 Advanced Java jdbc by Ratan goo.gl/QymTy4 Advjava tutorials - JSP by Ratan goo.gl/hG2hUC Adv java servlets tutorial by ratan goo.gl/a9LYoQ
Hello Diya. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Hello Nilesh. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
@@DurgaSoftwareSolutions :Please convey my thanks to Ratan Sir,it always help me prepare interview, after gap I always prefer to watch your training vdo.
Hello Travel. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Hello Lakshmipriya. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Yeah, because he is inserting useful information here and there. Out of 45 mins video, 20 mins are advice to the camera, 15 repeating the same thing. But the rest 10 mins of useful info is what makes us watch the video and even the entire playlist.
Hello Atchuta Rao. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Thank you very much Sir for making it all so simple. :-). But a small correction I would like to make that the static blocks are executed without main up to Java 1.6 and from 1.7 onwards, the main method is mandatory. Anyways, thank you once again for the wonderful class.
Hello Rahul. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Variables loads first (Both Static & Instance) Static Block loads after variables and it then executes Instance Block executes when the Object of the class is created. Constructor executes after the Instance Block after creating the object. Most important thing is Variables are the first one to load, they load before static block.
Hello Gopikiran. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Nijamga ratan sir, devude.. Thank you so much ratan sir. I never called anyone sir, the first time , a person who made me to call him as sir. You deserve ratan sir.
Hello Cherry. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Hello Kabita. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
mr.Ratan, upto 1.6 version => we can execute some statements without main method. but from 1.7 version=> main method is mandetory to execute some statements.
Hello Madan. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Hello sir, thanks a lot for helping us to understand the concepts easily. I have a small doubt, can we call the instance variables directly in the static block. If yes can you please explain how?
Ratan sir.. You are getting very dangerous at 14:39 😂😁 am I the only one who experienced this.?.. Anyhow thank you so much for your outstanding videos.. Keep doing.
Hello Akash. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: CoreJava by Ratan goo.gl/7oC3T3 Advanced Java jdbc by Ratan goo.gl/QymTy4 Advjava tutorials - JSP by Ratan goo.gl/hG2hUC Adv java servlets tutorial by ratan goo.gl/a9LYoQ
Hi Ratan, I am facing a problem using forName method. It raise the same exception ClassNotFoundException but after use `throws ClassNotFoundException` still it i showing same exception. Below are my code and the exception:- My code:- public class A { static { System.out.println("class A static method"); } public static void main (String[] args) throws ClassNotFoundException //throws ClassNotFoundException { Class.forName("B"); // loading class B dynamically using forName method Class.forName("C");// loading class C dynamically using forName method } } // i have declared class B and C also using static method only But below is the exception message class A static method Exception in thread "main" java.lang.ClassNotFoundException: B
Hi Ratan, the request i have is could you please help us know with examples in which scenarios the last 4 elements of class are used. I know the advantages but...... when it is ideal to use methods and when constructor?. In the same way when it is ideal to use instance and when static blocks. I hope this is a valid question. Thank you very much.
+Mj Jm constructors create and initialize objects that don't exist yet, while methods perform operations on objects that already exist i.e) methods are functions to perform specific task. constructors are used to initialize the instance variable and static variables.you may or may not use instance block and static block for variable initialization because we can do that thing in the constructor itself. if you want to separate the static and instance variable you can go for those blocks.
forName is not showing while i create 2 class in one package. one class without main method and one with main method. while i try to search with . operator after class. then it not show forName function in suggestion. I am using eclipse ide neon2
A very happy teachers day Ratan sir, for example of forName you done it in 1.5 version so forName is not working in my 1.8 version, is it ok or i have some problem? and in the last example if i dont give value to instance variable still the output is same.
@@heysiri527 Actually the problem is only when I used this class in a package. otherwise its working BUT by using forName method we can just load the another class and can't use methods of the class.
Sir can you please explain how to call a constructor defined in another class which does not contain the main method in another class containing the main method.
int a=10; //instace variable /* Static block code executes only once during the class loading. The static blocks always execute first before the main() method in Java because the compiler stores them in memory at the time of class loading and before the object creation. */ static { System.out.println("in the static block a=" +new InstanceVariables().a); }
/* During the object creation time, if any instance blocks are there, First instance blocks will be executed before the execution of any constructor. */ { System.out.println("in the instance block a=" +a); }
/* A Java program will automatically create a constructor if it is not already defined in the program. It is executed when an instance of the class is created. */ InstanceVariables() { System.out.println("in the constuctor a=" +a); }
public static void main(String args[]) {// main method will begin System.out.println("in main block a= " +new InstanceVariables().a); new InstanceVariables().m(); m1(); }//main method ends
static void m1()// static method { System.out.println("in the static method a=" +new InstanceVariables().a); } }//class block ends //OUTPUT /* in the instance block a=10 in the constuctor a=10 in the static block a=10 in the instance block a=10 in the constuctor a=10 in main block a= 10 in the instance block a=10 in the constuctor a=10 in non static block a= 10 in the instance block a=10 in the constuctor a=10 in the static method a=10 */ whats wrong with my program. why static block is executing after the instance block??
In this lecture , i have problem in last example - when I'm creat constructor = Test () { system.out.println(0-arg cons) } in this line i have a compile time error " Invalid method decleration ; return type required" I'm using NetBeans IDE 8.2 for executing java program so please solve my problem
I tried the last example about calling one static block form a class with no main method into another class with main method. But just can't seem to get rid of the error. class A { static { System.out.println("A class static block"); } public static void main(String[] args) throws ClassNotFoundException { Class.forName( "C" ); } } class C { static { System.out.println("C class static block"); } } not sure whats wrong since I am also catching the exception. out put is as follows: C:\Users\xxxx\Documents\MyJavaPrograms\RatanJava>java A A class static block Exception in thread "main" java.lang.ClassNotFoundException: C at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at A.main(A.java:10)
Yesterday I asked one problem I faced. I rectified the solution for that problem. I follow your statement Keep Practice for practical only. I am newbie in java but I determent to learn core java within 1 month. So I keep watching your video which clear my concept and it day to day motivate me to achive my goal.
Thank you so much Ratan Sir - Just one word for you "SUPERB", this is from the all 4 chamber of my heart. I live in mumbai and if i success, one day i will meet you definitely and if not it will be my dream to meet you. Dugasoft please send this message to Ratan Sir..... His unknown student(Abhay Singh).
I struggled to understand the basics from various courses and materials but Ratan made it more simple to understand Java, Hats off to you Ratan !!
Hello Darshan.
Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
Same for me brother, Ratan sir is super, and No one teaches from the basic-1 level, All start from the OOPS concept. Love from Maharashtra sir.
Tq so much.......
First time I got Hope's like I can do coding with this virtual world. This is all bcz of u sir. Tq u aloot for this precious information sharing with us.....
I don't know what to say
Sir you make Java concept so easy...
And that style asking questions "Ratan......?"
yourself on behalf of us is damm good. Thanks once again
Hello Mech
Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
CoreJava by Ratan
goo.gl/7oC3T3
Advanced Java jdbc by Ratan
goo.gl/QymTy4
Advjava tutorials - JSP by Ratan
goo.gl/hG2hUC
Adv java servlets tutorial by ratan
goo.gl/a9LYoQ
Ratan #Legend of JAVA
Thankyou Ratan for nice explanation just now completed total class elements.
your amazing class teacher in programming thank u
Its not boring sir, its just amazing 👍💪
i followed every video. Before i was nil in java but now i am confident to learn selenium. U r really made for java
Superb teaching ..hats off..All dought get cleared. We learn everything from faculty but we don't know to use them at a time. Now i understand very well. thank you sir..
Hello Gururaj Kulkarmi,
Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
CoreJava by Ratan
goo.gl/7oC3T3
Advanced Java jdbc by Ratan
goo.gl/QymTy4
Advjava tutorials - JSP by Ratan
goo.gl/hG2hUC
Adv java servlets tutorial by ratan
goo.gl/a9LYoQ
Thank you so much sir for your all videos
Keep uploading more videos for us
Sir ..u are just awesome....n your typing speed my god ...i dnt write so fast in book also.....god knows when will i get a these speed😑
Best faculty,i have ever seen.Thank you sir
Hello Diya.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
Super Rathan sir....
ratan sir ,very well done and noted always believe on practical knowledge.
Hello Nilesh.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
@@DurgaSoftwareSolutions :Please convey my thanks to Ratan Sir,it always help me prepare interview, after gap I always prefer to watch your training vdo.
Great Sir...Good going...You are the one to explain the topic in simple manner and easily viewers can identify the same.
Hello Travel.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
Thank you so much sir. Gave me more clear understanding.
Hello Lakshmipriya.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
really dangerous man if u seen one video.u feel to see entire playlist
Yeah, because he is inserting useful information here and there.
Out of 45 mins video, 20 mins are advice to the camera, 15 repeating the same thing. But the rest 10 mins of useful info is what makes us watch the video and even the entire playlist.
Thank You Ratan SIr, your java video tutorials are really very good!!
Got some confidence after watching
Tnq sir 👨
Hello Atchuta Rao.
Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
Haha u r funny sir "u r also dangerous"...I love ur videos so unique and knowledgeable
Thank you Sir for amazing classes....
Thank you very much Sir for making it all so simple. :-). But a small correction I would like to make that the static blocks are executed without main up to Java 1.6 and from 1.7 onwards, the main method is mandatory. Anyways, thank you once again for the wonderful class.
Hello Rahul.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
Thank you Ratan. These classes are very helpful.
Thankyou Ratan sir..
i never felt bored awesome explanation
Thank you, Ratan sir.
Variables loads first (Both Static & Instance)
Static Block loads after variables and it then executes
Instance Block executes when the Object of the class is created.
Constructor executes after the Instance Block after creating the object.
Most important thing is Variables are the first one to load, they load before static block.
excellent sir I learned perfectly total class and let me know I need total core java videos by ratan sir
Nice teaching,sir
your java tutorials are really very helpful
Hi Saivarun. Thank you very much for your feedback
maaa devudu nuvvenayya ma kosam vachavayya just kidding
sir you are telling the things in a very practical manner
Hello Gopikiran.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
Nijamga ratan sir, devude.. Thank you so much ratan sir.
I never called anyone sir, the first time , a person who made me to call him as sir.
You deserve ratan sir.
U r videos are awesome sir
Hello Cherry.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
sir your explanations are just superb , keep it up
No words .!!!
Very nice explanation
Hello Kabita.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
thnx alot for these video tutorials..
Awesome !!!!
great videos...easy to understand
Ratan is the most dangerous Java trainer in the world
Really great one ji
Best trainer.......(:-
mr.Ratan, upto 1.6 version => we can execute some statements without main method.
but from 1.7 version=> main method is mandetory to execute some statements.
You are awesome sir
Hello Madan.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
Hello sir, thanks a lot for helping us to understand the concepts easily. I have a small doubt, can we call the instance variables directly in the static block. If yes can you please explain how?
Ratan sir.. You are getting very dangerous at 14:39 😂😁 am I the only one who experienced this.?.. Anyhow thank you so much for your outstanding videos.. Keep doing.
Is it possible to assign static variable inside instance block?
Hello Suresh.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Ratan are these all classes will be useful for selenium automation. Please suggest me.
Hello Madan.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Thank you ratan sir
Hello Akash.
Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
CoreJava by Ratan
goo.gl/7oC3T3
Advanced Java jdbc by Ratan
goo.gl/QymTy4
Advjava tutorials - JSP by Ratan
goo.gl/hG2hUC
Adv java servlets tutorial by ratan
goo.gl/a9LYoQ
very valuable video sir , sir forname method is not working on my pc sir i have checked multiple times by own
Hello Aakash.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Ratan sir Ur Telugu person? Am I correct??
Hi Ratan,
I am facing a problem using forName method. It raise the same exception ClassNotFoundException but after use `throws ClassNotFoundException` still it i showing same exception. Below are my code and the exception:-
My code:-
public class A {
static {
System.out.println("class A static method");
}
public static void main (String[] args) throws ClassNotFoundException //throws ClassNotFoundException
{
Class.forName("B"); // loading class B dynamically using forName method
Class.forName("C");// loading class C dynamically using forName method
}
}
// i have declared class B and C also using static method only
But below is the exception message
class A static method
Exception in thread "main" java.lang.ClassNotFoundException: B
Hello Vish.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@@DurgaSoftwareSolutions Actually the problem is only when I used this class in a package. otherwise its working .
Hi Ratan, the request i have is could you please help us know with examples in which scenarios the last 4 elements of class are used. I know the advantages but...... when it is ideal to use methods and when constructor?. In the same way when it is ideal to use instance and when static blocks. I hope this is a valid question. Thank you very much.
+Mj Jm constructors create and initialize objects that don't exist yet, while methods perform operations on objects that already exist i.e) methods are functions to perform specific task. constructors are used to initialize the instance variable and static variables.you may or may not use instance block and static block for variable initialization because we can do that thing in the constructor itself. if you want to separate the static and instance variable you can go for those blocks.
RATAN SIR IS THE BEST IN JAVA
Hi Kumar. Thank you very much for your feedback
forName is not showing while i create 2 class in one package. one class without main method and one with main method.
while i try to search with . operator after class. then it not show forName function in suggestion. I am using eclipse ide neon2
A very happy teachers day Ratan sir,
for example of forName you done it in 1.5 version so forName is not working in my 1.8 version, is it ok or i have some problem?
and in the last example if i dont give value to instance variable still the output is same.
I am not able to use of forName method in my programme. It always shows exception 'ClassNotFoundException'. How to resolve this issue?
Hello Vish Rajput.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Declare main method like this:
public static void main(String []args) throws ClassNotFoundException
{
//WRITE YOUR CODE HERE
}
@@heysiri527 Actually the problem is only when I used this class in a package. otherwise its working BUT by using forName method we can just load the another class and can't use methods of the class.
why ClassNotFoundException occoured in last example(ie. dynamically calling other class) ? pls provide an answer for it.
Sir can you please explain how to call a constructor defined in another class which does not contain the main method in another class containing the main method.
tnq ratan sir
Ratan Please mention forclass video name
Isn't that Java 7 version onwords main method manditory
Hello Anushya.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Yes after 1.7 main method is mandatory
Superb.
class InstanceVariables
{//class block begin
int a=10; //instace variable
/*
Static block code executes only once during the class loading.
The static blocks always execute first before the main() method in Java
because the compiler stores them in memory at the time of class loading and before the object creation.
*/
static
{
System.out.println("in the static block a=" +new InstanceVariables().a);
}
/*
During the object creation time, if any instance blocks are there,
First instance blocks will be executed before the execution of any constructor.
*/
{
System.out.println("in the instance block a=" +a);
}
/*
A Java program will automatically create a constructor if it is not already defined in the program.
It is executed when an instance of the class is created.
*/
InstanceVariables()
{
System.out.println("in the constuctor a=" +a);
}
public static void main(String args[])
{// main method will begin
System.out.println("in main block a= " +new InstanceVariables().a);
new InstanceVariables().m();
m1();
}//main method ends
void m()//non static method
{
System.out.println("in non static method a= " +a);
}
static void m1()// static method
{
System.out.println("in the static method a=" +new InstanceVariables().a);
}
}//class block ends
//OUTPUT
/*
in the instance block a=10
in the constuctor a=10
in the static block a=10
in the instance block a=10
in the constuctor a=10
in main block a= 10
in the instance block a=10
in the constuctor a=10
in non static block a= 10
in the instance block a=10
in the constuctor a=10
in the static method a=10
*/
whats wrong with my program. why static block is executing after the instance block??
Ratan sir please kindly reply
nice sir
In this lecture , i have problem in last example - when I'm creat constructor = Test ()
{ system.out.println(0-arg cons) }
in this line i have a compile time error " Invalid method decleration ; return type required"
I'm using NetBeans IDE 8.2 for executing java program
so please solve my problem
You have not put end of statement ; mark after system.out.println();
superb
awesome!
TQ Yogesh Narwade .
Superrr
How to access private videos?
Hello Hidayath.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Next continuation video emitu
Hello Giri.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
I tried the last example about calling one static block form a class with no main method into another class with main method. But just can't seem to get rid of the error.
class A
{
static
{
System.out.println("A class static block");
}
public static void main(String[] args) throws ClassNotFoundException
{
Class.forName( "C" );
}
}
class C
{
static
{
System.out.println("C class static block");
}
}
not sure whats wrong since I am also catching the exception. out put is as follows:
C:\Users\xxxx\Documents\MyJavaPrograms\RatanJava>java A
A class static block
Exception in thread "main" java.lang.ClassNotFoundException: C
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at A.main(A.java:10)
Please compile B.java and C.java and then execute java A.
ok, but in eclipse how to solved same issue
same proble here , any one can Help me to solved this issue
add [throws ClassNotFoundException] in main method
thanks sir
tqqq
Class aypoindhi ...what is next video
Hello Giri.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Hi sir
tq sir
sir please upload the deleted video. It may helpful.
public class static1 {
static static1 d = new static1();
static
{
System.out.println("Inside Static block");
}
{
System.out.println("Inside Instace block");
}
public static void jj()
{
System.out.println("Normal Static method..!");
}
public static void main(String[] args) {
System.out.println("Inside main method");
}
}
Output -
Inside instance block
Inside static block
Inside main method
😢😢😢😢😊☺copy +past=life0
sir please upload the deleted video. It may helpful.