How hashmap increases its size in java?
No Answer is Posted For this Question
Be the First to Post Answer
What will happen inside init() in servlet. my interviewer asked servlet lifecycle. i said "once servlet is loaded in to memory init() will be called which performs servlet initialization " . Again interview asked what values will be initialized . what is difference between init() and init(ServletConfig config).
2 Answers Infinite Computer Solutions, TCS,
What is instanceof keyword?
If a method is declared as protected, where may the method be accessed in java programming?
What is a reflection package?
"We cannot create an object of interface but we can create a variable of it". Discuss the statement with the help of an example. (Plz help us to provide immediately.)
what is template design pattern?
How can we achieve IPC in JAVA?
what is difference between business delegate and data access object(dao)? in java?
What will happen if we declare don’t declare the main as static?
explain the concept of virtual method invocation in polymorphism in detail?
Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }
How to validate the request (Eg:user name and password) in session(http session)? not in LDAP server ?