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 3507class test { private static void main(String []adsf) { } } explain me that the above code is error or exception
3 5402class a extends b { } class b extends a { } why java doesn't support cyclic pls explain me with example
3 9787what is the main difference between string and stringbuffer? can you explain it with program?
2 5353did interface can implementation method ? i know its not possible but my interviewer said its possible ..but how..? any one have idea ???
IBM,
7 11050we 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.
1991
Why is string builder not thread safe?
Which programming language is best in future?
v-model life cycle
What is difference between hashset and hashmap?
Why multiple inheritance is not supported by java?
What are the types of sockets in java?
How do you check if a character in a string is a digit or letter?
What is the private method modifier?
How do you create a sop?
What is the purpose of the enableevents() method in java programming?
Can we have 2 main methods in java class?
How will you get the platform dependent values like line separator, path separator, etc., ?
Does string is thread-safe in java?
Explain about anonymous inner classes ?
Which one will take more memory: an int or integer?