What is a nonetype?
No Answer is Posted For this Question
Be the First to Post Answer
what is the purpose of the final in the try-catch-final
What is the basic functionality of DataOutput interface in java?
Is main an identifier?
explain what is transient variable in java?
State some advantages of java?
Is array size fixed in java?
What's the difference between int and integer in java?
How do you override a method in java?
When would you use a static class?
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
what is polymorphism?
How can we run a java program without making any object?