Advance Java: Test 2 - Online Test

Test Difficulty Level: Medium

Syllabus of Test

Sample Question from this online test:

Question: Consider
public class MyClass{
public MyClass(){/*code*/}
// more code...
}
To instantiate MyClass, you would write?

Option A: MyClass mc = MyClass;

Option B: MyClass mc = MyClass();

Option C: MyClass mc = new MyClass();

Option D: MyClass mc = new MyClass;

To answer, click the "Start This Test" button below.

Start this Test






Comments

syed abdul on 2011-03-01 11:08:40 wrote,

Thanks Dude.

syed abdul on 2011-03-01 12:13:22 wrote,

Haaa Haaaa Haaaaa...

yp027 paghadal on 2011-06-09 10:27:57 wrote,

fdfggfgfg

uma mohanani on 2012-01-13 10:18:12 wrote,

good questions

Prajakta Jadhav on 2012-03-11 14:53:48 wrote,

nice it's really helpful for us...

roop gupta on 2012-06-02 18:42:44 wrote,

that's gd really helpul for us

ARUNKUMAR B on 2012-06-06 09:04:46 wrote,

4th answer was wrong.......web server wont call init() method it calls init(ServletConfig cg) method.......just correct it..........

Anilkumar Bathula on 2013-04-23 15:37:27 wrote,

4th one is Write, No Problem in that