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
1 3612class test { private static void main(String []adsf) { } } explain me that the above code is error or exception
3 5539class a extends b { } class b extends a { } why java doesn't support cyclic pls explain me with example
3 9927what is the main difference between string and stringbuffer? can you explain it with program?
2 5499did interface can implementation method ? i know its not possible but my interviewer said its possible ..but how..? any one have idea ???
IBM,
7 11337we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
2034
What does += mean coding?
What is == in java?
What is an eror in java?
Can we declare an interface as final?
What is the difference between super class & sub class?
What is methodological framework?
What is the argument in java?
What is the difference between interface & abstract class?
What is busy spin, and why should you use it?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What is java used for on a computer?
Is int primitive data type?
what is predefined function in java?
What is difference between float and double?
Explain java coding standards for interfaces?