Answer Posted / srinivasa
Static block is executed when the class is loaded into the
memory before the main(). Only once it will be executed.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
When do we use synchronized blocks and advantages of using synchronized blocks?
What is the difference between synchronized and synchronized block?
What is default exception handling in java?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What do u mean by variable?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
Is null a string in java?
Can we serialize static variables in java?
Can sleep() method causes another thread to sleep?
What is the static field modifier?
What is an interoperable application in java ?
Can constructor be inherited?
Why call by value prevents parameter value change?
Why static functions are used?
How do I enable java in safari?