what is singleton class in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is the syntax and characteristics of a lambda expression? Explain
what is the difference between a threads start() and run() methods? : Java thread
What is method with example?
what are the rules to use try catch finally?
How does multithreading take place on a computer with a single cpu?
What are the advantages of inner classes?
What is an accessor?
What is the difference between pageContext and page implicit objects in jsp?
9 Answers Gspann Technologies, Merrill Lynch, Polaris,
What releases of Java technology are currently available? What do they contain?
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
is java support call by reference and call by value, if supports please explain?
Is null a string?