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:
Referring to the sample code above, which one of the following statements is correct?
class A {
public:
A() {
if(x > 1)
throw "x overflow";
else
x++;
}
private:
static int x;
};
int A::x;
Referring to the sample code above, which
one of the following statements is correct?
1 The class can be instantiated without throwing an exception two times.
2 It cannot be determined how many times the class can be instantiated (unknown value for x).
3 The class can be instantiated without throwing an exception one time.
4 Class A can be instantiated as many times as desired without throwing an exception.
5 Class A can never be instantiated without throwing an exception.
✍: Guest
2012-05-07, 4432👍, 0💬
Popular Posts:
.NET INTERVIEW QUESTIONS - Can we use events with threading ? Yes, you can use events with thread; t...
. How can a servlet refresh automatically if some new data has entered the database? You can use a c...
When should the method invokeLater() be used? This method is used to ensure that Swing components ar...
what are the advantages of hosting WCF Services in IIS as compared to self hosting? There are two ma...
Can you explain in GSC and VAF in function points? In GSC (General System Characteristic) there are ...