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, 4951👍, 0💬
Popular Posts:
What will be printed as the result of the operation below: main() { int a=0; if (a==0) printf("Cisco...
.NET INTERVIEW QUESTIONS - What are Daemon threads and how can a thread be created as Daemon? Daemon...
WHat will be the result of the following code? #define TRUE 0 // some code while (TRUE) { // some co...
Can we get a strongly typed resource class rather than using resource manager? In the previous quest...
What is application domain? Explain. An application domain is the CLR equivalent of an operation sys...