Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How many objects are created in the following piece of code?
How many objects are created in the following piece of code?
MyClass c1, c2, c3;
c1 = new MyClass ();
c3 = new MyClass ();
✍: Guest
Only 2 objects are created, c1 and c3. The reference c2 is only declared and not initialized.
2013-07-01, 5563👍, 0💬
Popular Posts:
How Are Vertical Margins between Two Block Elements Collapsed? - CSS Tutorials - Understanding Multi...
What is the main difference between a Vector and an ArrayList? Java Vector class is internally synch...
What is the difference between include directive & jsp:include action? Difference between includ...
Is There Any XSD File to Validate Atom Feed Files? - RSS FAQs - Atom Feed Introduction and File Gene...
What Is the Difference between Formal Parameters and Actual Parameters? - Oracle DBA FAQ - Creating ...