Final class can be overridden. This statement is…
True
False
"toString" is a method of Class String.
Are JavaBeans J2EE Component
Can you instantiate "Math" class
main(){ int i=100,j=10,k=20; int sum; float ave; char myformat[]="ave=%.2f"; sum=i+j+k; ave=sum/3; printf(myformat,ave); }
Compile error
ave=43.33
link error
ave= 43.00
What would be the output of the following: class A { A() const; //... };
Compile-Time Error
Run time error
Default construtor is called
none of the above
main(){ int x=5; printf("%d %d %d\n", x,x<<2,x=x>>2); }
5 4 1
1 4 1
5 20 1
main(){ int a,b; a=0; b=(a=1)?2:3; printf("%d %d",a,b); }
1 3
1 2
0 3
Compile Error
struct aaa{ struct aaa *prev; int i; struct aaa *next; }; main(){ struct aaa abc,def,ghi,jkl; int x=100; abc.i=0;abc.prev=&jkl; abc.next=&def; def.i=1; def.prev=&abc; def.next=&ghi; ghi.i=2; ghi.prev=&def; ghi.next=&jkl; jkl.i=3; jkl.prev=&ghi; jkl.next=&abc; x=abc.next->next->prev->next->i; printf("%d",x); }
1
2
3
nullpointer assignment
abc(){ _AX = 1000;} main(){ int i; i = abc(); printf("%d",i); }
1000
garbage value
undefined symbol _AX
none of these