Corejava - Basics - Static blocks in java

Поділитися
Вставка
  • Опубліковано 20 гру 2024

КОМЕНТАРІ • 125

  • @healthwithbhavesh6030
    @healthwithbhavesh6030 5 років тому +6

    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 років тому +8

    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).

  • @darshanswamy1201
    @darshanswamy1201 6 років тому +4

    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 2 роки тому

      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.

  • @muddanasrinavasarao4227
    @muddanasrinavasarao4227 4 роки тому +1

    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.....

  • @divyeshparadava5629
    @divyeshparadava5629 6 років тому +4

    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

  • @pranitjangada3395
    @pranitjangada3395 3 роки тому +2

    Ratan #Legend of JAVA

  • @PavanKumarIsukapalli
    @PavanKumarIsukapalli 4 роки тому +1

    Thankyou Ratan for nice explanation just now completed total class elements.

  • @nehruprasad854
    @nehruprasad854 2 роки тому +1

    your amazing class teacher in programming thank u

  • @rowansiwakoti9928
    @rowansiwakoti9928 8 років тому +11

    Its not boring sir, its just amazing 👍💪

  • @naveenkumar-yd3ln
    @naveenkumar-yd3ln 7 років тому

    i followed every video. Before i was nil in java but now i am confident to learn selenium. U r really made for java

  • @gururajkulkarni3946
    @gururajkulkarni3946 6 років тому +2

    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

  • @ikbalhossain7524
    @ikbalhossain7524 3 роки тому +1

    Thank you so much sir for your all videos
    Keep uploading more videos for us

  • @truptigandhi891
    @truptigandhi891 4 роки тому +1

    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😑

  • @sudiptagoswami2412
    @sudiptagoswami2412 6 років тому +1

    Best faculty,i have ever seen.Thank you sir

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 років тому

      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

  • @ramanadulla2786
    @ramanadulla2786 2 роки тому +1

    Super Rathan sir....

  • @nilesh122n
    @nilesh122n 5 років тому +2

    ratan sir ,very well done and noted always believe on practical knowledge.

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  5 років тому +1

      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 5 років тому

      @@DurgaSoftwareSolutions :Please convey my thanks to Ratan Sir,it always help me prepare interview, after gap I always prefer to watch your training vdo.

  • @Travelmoments
    @Travelmoments 6 років тому +1

    Great Sir...Good going...You are the one to explain the topic in simple manner and easily viewers can identify the same.

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 років тому

      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

  • @lakshmipriyathaduri6127
    @lakshmipriyathaduri6127 5 років тому +3

    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

  • @suneelkrishna1504
    @suneelkrishna1504 7 років тому +33

    really dangerous man if u seen one video.u feel to see entire playlist

    • @DineshKumar-tn7pu
      @DineshKumar-tn7pu 3 роки тому +2

      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.

  • @traptisingh5051
    @traptisingh5051 8 років тому

    Thank You Ratan SIr, your java video tutorials are really very good!!

  • @banisettiatchutarao1156
    @banisettiatchutarao1156 6 років тому +2

    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 років тому +1

    Haha u r funny sir "u r also dangerous"...I love ur videos so unique and knowledgeable

  • @diptykumari1213
    @diptykumari1213 8 років тому +1

    Thank you Sir for amazing classes....

  • @raghdhmfasf
    @raghdhmfasf 5 років тому +1

    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

  • @sprinklecake10
    @sprinklecake10 8 років тому

    Thank you Ratan. These classes are very helpful.

  • @ambikamishra2138
    @ambikamishra2138 21 день тому +1

    Thankyou Ratan sir..

  • @raghavbindass9600
    @raghavbindass9600 8 років тому

    i never felt bored awesome explanation

  • @krupamaraka2064
    @krupamaraka2064 7 років тому +3

    Thank you, Ratan sir.

  • @vikasmsiteee
    @vikasmsiteee 7 років тому +1

    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.

  • @sreeram3
    @sreeram3 8 років тому

    excellent sir I learned perfectly total class and let me know I need total core java videos by ratan sir

  • @asangachandradeepa7670
    @asangachandradeepa7670 3 роки тому +1

    Nice teaching,sir

  • @narojusaivarun3604
    @narojusaivarun3604 7 років тому

    your java tutorials are really very helpful

  • @gopikirankamma8293
    @gopikirankamma8293 6 років тому +6

    maaa devudu nuvvenayya ma kosam vachavayya just kidding
    sir you are telling the things in a very practical manner

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 років тому

      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.

  • @chintureddy8226
    @chintureddy8226 6 років тому +1

    U r videos are awesome sir

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 років тому

      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

  • @pratikkumar6148
    @pratikkumar6148 7 років тому

    sir your explanations are just superb , keep it up

  • @asirhiareddy
    @asirhiareddy 6 років тому +5

    No words .!!!

  • @Kavy-fw4rx
    @Kavy-fw4rx 6 років тому +2

    Very nice explanation

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 років тому

      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

  • @Rahulkumar-ip5mt
    @Rahulkumar-ip5mt 8 років тому

    thnx alot for these video tutorials..

  • @antishandex8984
    @antishandex8984 2 роки тому +1

    Awesome !!!!

  • @poonamkhirodkar5559
    @poonamkhirodkar5559 7 років тому

    great videos...easy to understand

  • @saudnaeem
    @saudnaeem 7 років тому

    Ratan is the most dangerous Java trainer in the world

  • @kalkaliyamoorthy8613
    @kalkaliyamoorthy8613 7 років тому

    Really great one ji

  • @rajanjaiswal3728
    @rajanjaiswal3728 7 років тому

    Best trainer.......(:-

  • @jagadeeshkumarkotha5645
    @jagadeeshkumarkotha5645 8 років тому +1

    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.

  • @modupallimadan4056
    @modupallimadan4056 5 років тому +1

    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

  • @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?

  • @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.

  • @kurubasuresh7236
    @kurubasuresh7236 4 роки тому +1

    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

  • @modupallimadan4056
    @modupallimadan4056 5 років тому +1

    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

  • @Sky_Factss
    @Sky_Factss 6 років тому +1

    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 років тому +1

    very valuable video sir , sir forname method is not working on my pc sir i have checked multiple times by own

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  5 років тому +1

      Hello Aakash.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @rasalajaikrishna8186
    @rasalajaikrishna8186 3 роки тому +2

    Ratan sir Ur Telugu person? Am I correct??

  • @vishnusingh2245
    @vishnusingh2245 4 роки тому +1

    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 роки тому +1

      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 .

  • @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.

  • @pragatikumar26
    @pragatikumar26 7 років тому

    RATAN SIR IS THE BEST IN JAVA

  • @healthwithbhavesh6030
    @healthwithbhavesh6030 5 років тому +1

    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

  • @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.

  • @vishnusingh2245
    @vishnusingh2245 5 років тому +1

    I am not able to use of forName method in my programme. It always shows exception 'ClassNotFoundException'. How to resolve this issue?

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  5 років тому

      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.

  • @RaushanKumar-gf5fc
    @RaushanKumar-gf5fc 8 років тому

    why ClassNotFoundException occoured in last example(ie. dynamically calling other class) ? pls provide an answer for it.

  • @arpanbanerjee8584
    @arpanbanerjee8584 7 років тому

    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.

  • @narojusaivarun3604
    @narojusaivarun3604 7 років тому

    tnq ratan sir

  • @shyamprasad5229
    @shyamprasad5229 7 років тому

    Ratan Please mention forclass video name

  • @anushyaanu3406
    @anushyaanu3406 5 років тому +2

    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

  • @AmitKumar-qh4ow
    @AmitKumar-qh4ow 9 років тому

    Superb.

  • @AvudurthiSaikiran-me1jh
    @AvudurthiSaikiran-me1jh 2 роки тому +1

    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??

  • @swapniljadhav48
    @swapniljadhav48 6 років тому +1

    nice sir

  • @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();

  • @sharmasinamerica5229
    @sharmasinamerica5229 8 років тому

    superb

  • @yogeshnarwade3659
    @yogeshnarwade3659 8 років тому

    awesome!

  • @vairagijayesh
    @vairagijayesh 8 років тому

    Superrr

  • @hidayathbabu4072
    @hidayathbabu4072 5 років тому +1

    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 4 роки тому +1

    Next continuation video emitu

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 роки тому

      Hello Giri.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @Mona001-01g
    @Mona001-01g 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 7 років тому

      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

  • @alauddinraje7410
    @alauddinraje7410 9 років тому

    thanks sir

  • @kavyadachepalli1586
    @kavyadachepalli1586 8 років тому

    tqqq

  • @giriprakash5931
    @giriprakash5931 4 роки тому +1

    Class aypoindhi ...what is next video

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 роки тому

      Hello Giri.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @kurubasuresh7236
    @kurubasuresh7236 4 роки тому +1

    Hi sir

  • @sattiprathyusha6399
    @sattiprathyusha6399 7 років тому

    tq sir

  • @praveenkumarbeedanal5986
    @praveenkumarbeedanal5986 8 років тому

    sir please upload the deleted video. It may helpful.

  • @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

  • @arupnaskar3818
    @arupnaskar3818 7 років тому +1

    😢😢😢😢😊☺copy +past=life0

  • @chandel_rajputbundelkhand
    @chandel_rajputbundelkhand 8 років тому +2

    sir please upload the deleted video. It may helpful.