How to create packages in java?
No Answer is Posted For this Question
Be the First to Post Answer
Which non-unicode letter characters may be used as the first character of an identifier?
What are the parameters used in Connection pooling?
Can we use static class instead of singleton?
Is special character in java?
What is a linkedhashmap java?
What is the difference between set and list?
What is the difference between compare and compareto in java?
How do you remove duplicates in java?
how to print the below in java? * * * * * * * * *
Explain the features of interfaces 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
What is use of a abstract variable?