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 2866class test { private static void main(String []adsf) { } } explain me that the above code is error or exception
3 4282class a extends b { } class b extends a { } why java doesn't support cyclic pls explain me with example
3 8762what is the main difference between string and stringbuffer? can you explain it with program?
2 4297did interface can implementation method ? i know its not possible but my interviewer said its possible ..but how..? any one have idea ???
IBM,
7 9110we 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.
1550
Explain about the main() method in java?
What is mnemonic code?
Can you extend main method in java?
What are the advantages of unicode?
How do you sort words in java?
what do you understand by the term string with respect to java?
What are design patterns and please explain?
What is string substring?
What are the major drawbacks of external iteration?
Why hashmap is used in java?
Why is flag used in java?
What does %d do in java?
What is the access scope of a protected method?
What is difference between overloading and overriding in java?
What is jvm? Why is java called the platform independent programming language?