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, 4689👍, 0💬
Popular Posts:
it will be very helpful if you send some important Questions with Answers of DBMS Tell us what types...
What is V model in testing? V model map’s the type of test to the stage of development in a project....
What is the output of printf("%d")? 1. When we write printf("%d",x); this means compiler will print ...
Why is there extra white space before or after tables? This is often caused by invalid HTML syntax. ...
How to reduce the final size of an executable file? Size of the final execuatable can be reduced usi...