what is the difference between static block and static
method
Answer Posted / aluru srinivasa rao
static block is executed first even before constructor is
invoked,static methods are invoked from a static method.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
what is the difference between thread and runnable types? : Java thread
What invokes a thread's run() method in java programming?
What does sizeof return?
How do you sort in descending order in java using collections sort?
Why is a singleton bad?
What are anonymous inner classes?
Is minecraft java edition free?
Give any two differences between C++ and java.
What are the kinds of polymorphism?
What is the return type of the main method?
What is the default value of the local variables?
Which collections are thread safe in java?
Can we inherit a class with private constructor?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea
If system.exit (0); is written at the end of the try block, will the finally block still execute?