Codespan style="color: #666666; font-style: italic;">// insert code here } }Copyright GeekInterview.com
Profile Answers by lalithakasiraj Questions by lalithakasiraj
Questions by lalithakasiraj
sashank Dec 22nd, 2012 b) Class1 c1 = new Class2(){ };
b) Class1 c1 = new Class2(){ };
Prasad MN Dec 28th, 2012 Class c1 = new Class2()
Class c1 = new Class2()
Somone Mar 29th, 2013 a & b
a & b
Abhinav Rohatgi Apr 1st, 2013 Both a & b
Both a & b
If you think the above answer is not correct, Please select a reason and add your answer below.
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
Disable Ad Blocker
Learn More
Login GeekInterview
Login
Create your GeekInterview account
Signup
Continue Reading after Disabling
Refresh
Which of the following options can be inserted at the commented line to compile the given code:
a) Class1 c1 = new Class1("HCL"){ }
b) Class1 c1 = new Class2(){ };
c) Class2 c3 = new Class1(String s){};
d) Class1 c1 = new Class1(100){ };
Profile Answers by lalithakasiraj Questions by lalithakasiraj
Questions by lalithakasiraj
Related Answered Questions
Related Open Questions