Explain the use of sublass in a java program?
No Answer is Posted For this Question
Be the First to Post Answer
Why do we use return statement?
What is string subsequence method?
What is difference between final and immutable?
what is Portal(web based online portal)?
What are singleton services?
Explain all java features with real time examples
What is the difference between the file and randomaccessfile classes?
What is difference between variable declaration and definition?
explain me with a code snippet about the generation and handling of null point exceptions.
can you program for reverse string?
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
Difference between a MenuItem and a CheckboxMenuItem?