Java J2EE (14736)
J2ME (151)
Java Related AllOther (507) 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 13306my method "abc" return array of interface "xyz" and "pqr" is abstract class implements abc and class "jkl" extends pqr My problem 1) when i call abc it retrun array xyz how can i do this hint xyz refer_xyz = new jkl(); but i can't create array. 2)I want to access method of jkl using reference of xyz??
1 3941why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic.
5 13087StringBuilder s = new StringBuilder("Hello Mom");s.append(",I mean,Mother"); Response.Write(s.ToString()); String s = "Hello Mom"; s+ = ",I mean Mom"; Response.Write(s); Which is faster ? which uses the most memory?
HCL,
6 9036
What are the different orm’s supported by spring?
What is the use of object and class classes?
What data type is true or false?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What are advice, aspect, join-point and point cut in spring?
How to perform quicksort in java?
Mention some interfaces implemented by linked list in java.
Explain about strings in java?
Explain the rowcallbackhandler in spring?
What is difference between iterator and enumeration in java?
What is the use of default method in interface in java? Explain
What is the benefit of having jdbcrowset implementation?
What one should take care of, while serializing the object?
What is container-managed transaction?
How to split arraylist elements in java?