What is singleton class?
Answer Posted / sathya
This is a class which can be instatiated only once.
Public class Singleton
private static single = new Singleton();
For a singleton class, the constructor is made private and
a static variable is used for instatiating the class.
|Is This Answer Correct ?||241 Yes||44 No|
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
what is difference betweem home interface and remote interface?
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on email@example.com once u appear for interview
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
whatis Home interface and Remoteinterface? with example?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
Can you give names of Container classes?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
what is server side caching?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on firstname.lastname@example.org
java Technical questions asked by JPMC
What is the exact difference in between Unicast and Multicast object?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
what is object slice?