Break statement can be used as labels in java?
No Answer is Posted For this Question
Be the First to Post Answer
Is vector thread safe in java?
What does index mean in java?
Does google use java?
what is the use of Clonable,and serializable interface?
How do you replace all in word?
what is the difference between yielding and sleeping? : Java thread
Explain JMS in detail.
explain autoboxing in java?
How to sort numbers in java without array?
What is the use of collections in java? How it is implemented in real time applications?
Explain about public and private access specifiers?
hi to all,i have a question on static block. i saved below as test.java class test extends a { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p as static test static but if i change base class as test class then class test { static { System.out.println("test static"); } public static void main(String []dfs) { } } class a extends test { static { System.out.println("a static"); } public static void main(String []asdf) { } } o/p test static explain me why "a static" wasn't print in second code when it is in derived class