adplus-dvertising
frame-decoration

Question

Which is correct syntax?

a.

classname objectname= new() integer;

b.

classname objectname= new classname;

c.

classname objectname= new classname();

d.

classname objectname= new() classname();

Answer: (c).classname objectname= new classname();

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which is correct syntax?