Core Java (6529)
Advanced Java (552)
Swing (223)
EJB (402)
Java Networking (49)
Hibernate (1009)
Spring Framework (1486)
Java J2EE AllOther (116) Real Time sample code for Encapsulation and Abstraction. where to use abstract and where to use specifies like public private.
2 9417What 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 13270my 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 3906why 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 13004StringBuilder 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 8965
What is a constructor overloading in java?
Why do we use spring?
What is the difference between normal report & matrix report?
Explain java code for recursive solution's base case?
Define the toolbar elements.
How do you call a reference in java?
What does indexof return in java?
java program with complete 4 oops concepts implemented example
If you are given the name of the function at run time how will you invoke the function?
What is bootstrap in hibernate?
Are registers volatile?
What is string in java? String is a data type?
What language is pass by reference?
Which is better spring jpa or hibernate?
What is java argument list?