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 9600What 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 13440my 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 4035why 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 13266StringBuilder 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 9279
What is lazy class?
How to create a base64 decoder in java8?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
What is a classloader in java?
What is a constructor overloading in java?
How is declarative handling of exceptions done in struts ?
Can we return resultset in java?
what are the different modes of archival? Explain each mode in two lines each?
What is java string pool?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What do you mean by an interface in java?
How to sort array in descending order in java?
Explain public static void main(string args[]) in java.
Realized?
Write a program to find the whether a number is an Armstrong number or not?