How is a variable stored in memory?
No Answer is Posted For this Question
Be the First to Post Answer
what is difference between abstraction and interface?
What does business logic mean?
What is difference between Heap and Stack Memory?
What is the use of arrays tostring () in java?
What are three ways in which a thread can enter the waiting state in java programming?
What are heterogeneous objects?
Is null == null in java?
Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?
What are possible key words, we can use to declare a class?
What do you mean by checked exceptions?
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
Why declare Main() inside the class in java ?