No video

Corejava - Basics - Static blocks in java

  Рет қаралды 93,171

Durga Software Solutions

Durga Software Solutions

Күн бұрын

This Video Session explains Corejava - Basics - Static blocks in java. Training Tutorial delivered by our Trainer Ratan.
For more details visit : bit.ly/2d8XIN9
DURGASOFT is INDIA's No.1 Software Training Center
Trainer Name : Mr.Ratan
Course : Core Java
Topic : Static blocks in java
Methods of Training : Inclass, Online, Video based training
Location : 2nd Floor, Canara Bank Building, S.R Nagar, Hyderabad-500032
Contact Phone : +91-8885252627,+91-7207212428,+91-7207212427, (US)+1-(443) 332-6786
Email : Durgasoftonlinetraining@gmail.com, Info@Durgasoftonline.com
Other Courses We Offered :
JAVA, OCJP/SCJP, .NET , ANDROID, HADOOP, TESTING TOOLS , ADF, INFORMATICA, TABLEAU, IPHONE, OBIEE, ANJULAR JS, SAP,etc.
Enjoy and stay connected with us!!
►Subscribe us on KZfaq: goo.gl/drpxPQ
►Like us: / durgasoftonline
►Follow us: / durgasoftonline
►Circle us: plus.google.co...
© 2016 Durga Software Solutions Pvt Ltd.

Пікірлер: 127
@healthwithbhavesh6030
@healthwithbhavesh6030 5 жыл бұрын
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.
@initalAS
@initalAS 6 жыл бұрын
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).
@rowansiwakoti9928
@rowansiwakoti9928 8 жыл бұрын
Its not boring sir, its just amazing 👍💪
@darshanswamy1201
@darshanswamy1201 6 жыл бұрын
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 !!
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
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
@vishalgaikwad7515
@vishalgaikwad7515 Жыл бұрын
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.
@divyeshparadava5629
@divyeshparadava5629 6 жыл бұрын
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
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
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
@nehruprasad854
@nehruprasad854 2 жыл бұрын
your amazing class teacher in programming thank u
@pranitjangada3395
@pranitjangada3395 3 жыл бұрын
Ratan #Legend of JAVA
@ikbalhossain7524
@ikbalhossain7524 2 жыл бұрын
Thank you so much sir for your all videos Keep uploading more videos for us
@gururajkulkarni3946
@gururajkulkarni3946 6 жыл бұрын
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..
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
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
@naveenkumar-yd3ln
@naveenkumar-yd3ln 6 жыл бұрын
i followed every video. Before i was nil in java but now i am confident to learn selenium. U r really made for java
@muddanasrinavasarao4227
@muddanasrinavasarao4227 4 жыл бұрын
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.....
@PavanKumarIsukapalli
@PavanKumarIsukapalli 3 жыл бұрын
Thankyou Ratan for nice explanation just now completed total class elements.
@suneelkrishna1504
@suneelkrishna1504 7 жыл бұрын
really dangerous man if u seen one video.u feel to see entire playlist
@DineshKumar-tn7pu
@DineshKumar-tn7pu 3 жыл бұрын
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.
@ramanadulla2786
@ramanadulla2786 2 жыл бұрын
Super Rathan sir....
@Travelmoments
@Travelmoments 5 жыл бұрын
Great Sir...Good going...You are the one to explain the topic in simple manner and easily viewers can identify the same.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
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
@sudiptagoswami2412
@sudiptagoswami2412 5 жыл бұрын
Best faculty,i have ever seen.Thank you sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
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
@lakshmipriyathaduri6127
@lakshmipriyathaduri6127 5 жыл бұрын
Thank you so much sir. Gave me more clear understanding.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
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
@asirhiareddy
@asirhiareddy 5 жыл бұрын
No words .!!!
@krupamaraka2064
@krupamaraka2064 7 жыл бұрын
Thank you, Ratan sir.
@truptigandhi891
@truptigandhi891 4 жыл бұрын
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😑
@gopikirankamma8293
@gopikirankamma8293 5 жыл бұрын
maaa devudu nuvvenayya ma kosam vachavayya just kidding sir you are telling the things in a very practical manner
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
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
@ravikumarlokoju595
@ravikumarlokoju595 5 жыл бұрын
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.
@traptisingh5051
@traptisingh5051 7 жыл бұрын
Thank You Ratan SIr, your java video tutorials are really very good!!
@banisettiatchutarao1156
@banisettiatchutarao1156 6 жыл бұрын
Got some confidence after watching Tnq sir 👨
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
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
@heythere1619
@heythere1619 6 жыл бұрын
Haha u r funny sir "u r also dangerous"...I love ur videos so unique and knowledgeable
@nilesh122n
@nilesh122n 4 жыл бұрын
ratan sir ,very well done and noted always believe on practical knowledge.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
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
@nilesh122n
@nilesh122n 4 жыл бұрын
@@DurgaSoftwareSolutions :Please convey my thanks to Ratan Sir,it always help me prepare interview, after gap I always prefer to watch your training vdo.
@diptykumari1213
@diptykumari1213 8 жыл бұрын
Thank you Sir for amazing classes....
@sreeram3
@sreeram3 7 жыл бұрын
excellent sir I learned perfectly total class and let me know I need total core java videos by ratan sir
@sprinklecake10
@sprinklecake10 8 жыл бұрын
Thank you Ratan. These classes are very helpful.
@asangachandradeepa7670
@asangachandradeepa7670 2 жыл бұрын
Nice teaching,sir
@raghdhmfasf
@raghdhmfasf 5 жыл бұрын
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.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
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
@antishandex8984
@antishandex8984 2 жыл бұрын
Awesome !!!!
@vikasmsiteee
@vikasmsiteee 7 жыл бұрын
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.
@raghavbindass9600
@raghavbindass9600 7 жыл бұрын
i never felt bored awesome explanation
@saudnaeem
@saudnaeem 6 жыл бұрын
Ratan is the most dangerous Java trainer in the world
@narojusaivarun3604
@narojusaivarun3604 7 жыл бұрын
your java tutorials are really very helpful
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 7 жыл бұрын
Hi Saivarun. Thank you very much for your feedback
@pratikkumar6148
@pratikkumar6148 7 жыл бұрын
sir your explanations are just superb , keep it up
@jagadeeshkumarkotha5645
@jagadeeshkumarkotha5645 7 жыл бұрын
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.
@Kavy-fw4rx
@Kavy-fw4rx 5 жыл бұрын
Very nice explanation
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
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
@chintureddy8226
@chintureddy8226 5 жыл бұрын
U r videos are awesome sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
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
@akhilkasala4399
@akhilkasala4399 7 жыл бұрын
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?
@rasalajaikrishna8186
@rasalajaikrishna8186 3 жыл бұрын
Ratan sir Ur Telugu person? Am I correct??
@chandel_rajputbundelkhand
@chandel_rajputbundelkhand 8 жыл бұрын
sir please upload the deleted video. It may helpful.
@Rahulkumar-ip5mt
@Rahulkumar-ip5mt 7 жыл бұрын
thnx alot for these video tutorials..
@poonamkhirodkar5559
@poonamkhirodkar5559 7 жыл бұрын
great videos...easy to understand
@modupallimadan4056
@modupallimadan4056 5 жыл бұрын
You are awesome sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
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
@rajanjaiswal3728
@rajanjaiswal3728 7 жыл бұрын
Best trainer.......(:-
@Sky_Factss
@Sky_Factss 6 жыл бұрын
Thank you ratan sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
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
@aakashrajak6160
@aakashrajak6160 5 жыл бұрын
very valuable video sir , sir forname method is not working on my pc sir i have checked multiple times by own
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Aakash. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@kalkaliyamoorthy8613
@kalkaliyamoorthy8613 6 жыл бұрын
Really great one ji
@AvudurthiSaikiran-me1jh
@AvudurthiSaikiran-me1jh Жыл бұрын
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??
@AVUDURTHISAIKIRAN
@AVUDURTHISAIKIRAN Жыл бұрын
Ratan sir please kindly reply
@healthwithbhavesh6030
@healthwithbhavesh6030 5 жыл бұрын
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
@narojusaivarun3604
@narojusaivarun3604 7 жыл бұрын
tnq ratan sir
@kavyadachepalli1586
@kavyadachepalli1586 8 жыл бұрын
tqqq
@pragatikumar26
@pragatikumar26 7 жыл бұрын
RATAN SIR IS THE BEST IN JAVA
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 7 жыл бұрын
Hi Kumar. Thank you very much for your feedback
@kapzb
@kapzb 8 жыл бұрын
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.
@mjjm3111
@mjjm3111 8 жыл бұрын
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.
@udhaya7206
@udhaya7206 8 жыл бұрын
+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.
@arpanbanerjee8584
@arpanbanerjee8584 6 жыл бұрын
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.
@vishnusingh2245
@vishnusingh2245 4 жыл бұрын
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
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Vish. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@vishnusingh2245
@vishnusingh2245 4 жыл бұрын
​@@DurgaSoftwareSolutions Actually the problem is only when I used this class in a package. otherwise its working .
@modupallimadan4056
@modupallimadan4056 5 жыл бұрын
Ratan are these all classes will be useful for selenium automation. Please suggest me.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Madan. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@VijayJeethuri
@VijayJeethuri 6 жыл бұрын
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.
@AmitKumar-qh4ow
@AmitKumar-qh4ow 8 жыл бұрын
Superb.
@swapniljadhav48
@swapniljadhav48 6 жыл бұрын
nice sir
@RaushanKumar-gf5fc
@RaushanKumar-gf5fc 7 жыл бұрын
why ClassNotFoundException occoured in last example(ie. dynamically calling other class) ? pls provide an answer for it.
@kurubasuresh7236
@kurubasuresh7236 4 жыл бұрын
Is it possible to assign static variable inside instance block?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Suresh. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@shyamprasad5229
@shyamprasad5229 7 жыл бұрын
Ratan Please mention forclass video name
@sharmasinamerica5229
@sharmasinamerica5229 8 жыл бұрын
superb
@alauddinraje7410
@alauddinraje7410 8 жыл бұрын
thanks sir
@animeshmandal7
@animeshmandal7 7 жыл бұрын
In the Last example, The output is : Static Block Instance Block 0 Arguement Constructor Instance Block 1 Arguement Constructor Instance Method Static Method Can you please explain why the Static Method is executed after the Instance Method ? Isn't it suppose to execute before the Instance Method if we go by the concept of Static Blocks being executed after .class files are generated and after that the Main method is executed where objects are created and hence the Instance blocks are executed. Why a change in concept during execution of Static Methods ?
@vikasmsiteee
@vikasmsiteee 7 жыл бұрын
Because Static Method is CALLED after the Instance Method. Static Method loads before the Instance Method but we are calling Instance Method first so Instance Method will execute first. Simple.
@vishalgaikwad873
@vishalgaikwad873 6 жыл бұрын
static block and static method both are different, static block is executed at .dot class loading time where as static method is called explicitly, so conclusion is , you called first Instance Method then called Static method((according your calling method output is come. ))
@vishnusingh2245
@vishnusingh2245 4 жыл бұрын
I am not able to use of forName method in my programme. It always shows exception 'ClassNotFoundException'. How to resolve this issue?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Vish Rajput. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@heysiri527
@heysiri527 4 жыл бұрын
Declare main method like this: public static void main(String []args) throws ClassNotFoundException { //WRITE YOUR CODE HERE }
@vishnusingh2245
@vishnusingh2245 4 жыл бұрын
@@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.
@sattiprathyusha6399
@sattiprathyusha6399 7 жыл бұрын
tq sir
@kurubasuresh7236
@kurubasuresh7236 4 жыл бұрын
Hi sir
@yogeshnarwade3659
@yogeshnarwade3659 8 жыл бұрын
awesome!
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 8 жыл бұрын
TQ Yogesh Narwade .
@bloggerinone1720
@bloggerinone1720 7 жыл бұрын
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
@vikasmsiteee
@vikasmsiteee 7 жыл бұрын
You have not put end of statement ; mark after system.out.println();
@vairagijayesh
@vairagijayesh 8 жыл бұрын
Superrr
@giriprakash5931
@giriprakash5931 3 жыл бұрын
Next continuation video emitu
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Giri. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@aniketjain3875
@aniketjain3875 6 жыл бұрын
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
@anushyaanu3406
@anushyaanu3406 5 жыл бұрын
Isn't that Java 7 version onwords main method manditory
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Anushya. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@e.ch.vidyasagarkorada8937
@e.ch.vidyasagarkorada8937 4 жыл бұрын
Yes after 1.7 main method is mandatory
@hidayathbabu4072
@hidayathbabu4072 5 жыл бұрын
How to access private videos?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Hidayath. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@giriprakash5931
@giriprakash5931 3 жыл бұрын
Class aypoindhi ...what is next video
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Giri. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@katdareshruti
@katdareshruti 7 жыл бұрын
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)
@ShubhamPacharne
@ShubhamPacharne 6 жыл бұрын
Please compile B.java and C.java and then execute java A.
@vishalgaikwad873
@vishalgaikwad873 6 жыл бұрын
ok, but in eclipse how to solved same issue
@vishalgaikwad873
@vishalgaikwad873 6 жыл бұрын
same proble here , any one can Help me to solved this issue
@vansbrosify
@vansbrosify 6 жыл бұрын
add [throws ClassNotFoundException] in main method
@arupnaskar3818
@arupnaskar3818 7 жыл бұрын
😢😢😢😢😊☺copy +past=life0
@praveenkumarbeedanal5986
@praveenkumarbeedanal5986 8 жыл бұрын
sir please upload the deleted video. It may helpful.
Corejava - OOPs -Inheritance Part - 1
32:50
Durga Software Solutions
Рет қаралды 154 М.
Corejava - Basics - Constructors in java Part- 2
45:12
Durga Software Solutions
Рет қаралды 101 М.
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 4 МЛН
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 3,8 МЛН
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 29 МЛН
#39 Static Block in java
7:17
Telusko
Рет қаралды 109 М.
Corejava-Basics-Types of Variables in java Part-1
33:16
Durga Software Solutions
Рет қаралды 199 М.
Corejava - Basics-  Instance block in java
27:36
Durga Software Solutions
Рет қаралды 76 М.
Java Tutorials || Java OOPS  || Java Inheritance || by Durga Sir
1:16:42
Durga Software Solutions
Рет қаралды 104 М.
Corejava - Basics - Constructor in java Part - 1
39:41
Durga Software Solutions
Рет қаралды 179 М.
STATIC VARIABLES, STATIC METHODS & STATIC BLOCK - JAVA PROGRAMMING
22:40
Sundeep Saradhi Kanthety
Рет қаралды 233 М.
Corejava-Basics-Types of Variables in java Part-2
20:08
Durga Software Solutions
Рет қаралды 112 М.
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 4 МЛН