What is a null class?
No Answer is Posted For this Question
Be the First to Post Answer
How to find the length and capacity of a string buffer ?
Is a boolean 1 bit?
Define interface?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
Why is a string immutable?
what do you mean by classloader?
Can a for statement loop indefinitely?
Can we have a method name same as class name in java?
What is main string [] args?
Explain Connection Pooling?
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
Explain about main() method in java ?