What is finalize() function in java?
No Answer is Posted For this Question
Be the First to Post Answer
Differentiate between stringbuffer and stringbuilder in java.
What is the use of math abs in java?
Why call by value prevents parameter value change?
Explain JSP life cycle
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
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
How to create an interface?
what is inner class in java?
What is Java Annotations?
Is Java a dying language?
Does java trim remove newline?
Explain the use of shift operator in java. Can you give some examples?