What environment variables do I need to set on my machine in order to be able to run java programs?
No Answer is Posted For this Question
Be the First to Post Answer
What happens if a constructor is declared private?
Explain OOPs concept.
what is singleton in java?
What does serializing data mean?
How to change the priority of thread or how to set priority of thread?
What is the method to declare member of a class static?
What is static binding and where it occurs?
Describe what a thread-local variable is in java?
Can we instantiate interface 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 core java called?
How are multiple inheritances done in Java?