What are access specifiers available in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is the advantage of OOP in java?
What is the difference between numeric and integer?
What is the association?
What is externalizable?
Which is bigger float or double?
What are java annotations?
What is the default execution method in java?
Why java Don't Support Multiple interitence
What are thread groups?
Explain the difference between an object-oriented programming language and object-based programming language?
why static class in java or what is use of static class in java
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