What is module in project?
No Answer is Posted For this Question
Be the First to Post Answer
What is difference between abstract class & final class
Is hashset ordered?
What is meant by singleton class?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
Is java type safe?
what is difference betwenn Access Specifier and Access Modifier ????
Is a boolean variable?
how copy the hashmap object into arraylist at java program?
what is overloading and overriding with example?
Is java a pure object oriented language?
What is the maximum length of a url?
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