Is java free for businesses?
No Answer is Posted For this Question
Be the First to Post Answer
When should you use arraylist and when should you use linkedlist?
How do you do a line break in java?
When is the finalize() called?
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
State two differences between C and Java.
What are the restriction imposed on a static method or a static block of code?
When should I use singleton?
What is the use of protected in java?
what are the methods of an object class?
Why can we not override static method?
What is nullpointerexception in java?
what is meant by Byte code concept in Java?