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 8417Map map = new HashMap(2); map.add(“1”,”one”); map.add(“2”,”two”); map.add(“3”,”three”); What will happen at this line?
5 15787Write 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.
2681
What is variable declaration and definition?
What is getclass () getname () in java?
What are scalar data types?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
Explain treeset?
How do you control extraneous variables?
Can a class extends itself in java?
Why java is platform independent? Explain.
What are the advantages of user defined functions?
Is java code slower than native code?
What are pass by reference and pass by value?
What are generic methods?
Why java is made?
What is the advantage of OOP in java?
State the merge-sort principle and its time complexity.