class A { private int i; } class B extends A { private int i; } if I create an object of B class what will be the memory of that object.
2 7222Map map = new HashMap(2); map.add(“1”,”one”); map.add(“2”,”two”); map.add(“3”,”three”); What will happen at this line?
5 13817Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
2286
What is the finalize method do?
Why do we need singleton class?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
Where is jre installed?
Are functions objects in java?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
Is null == null in java?
Why arraylist is not synchronized in java example?
Why does abstract class have constructor?
Explain public static void main(string args[]).
Explain the use of sublass in a java program?
What are the characteristics of Final,Finally and Finalize keywords.
How does finally block differ from finalize() method?
What is a singleton class? Give a practical example of its usage.
How to convert string to char and vice versa?