Answer to Question #184656 in Java | JSP | JSF for Tim

Question #184656

*Based on answers A-E, which option is correct?


2. Assuming there exists a Java class named "Fruits", which can create an instance named "f1"

of the "Fruits" class that calls the default constructor for initialization?


A. Fruits(f1) = new Fruits();

B. Fruits f1 = new();

C. Fruits f1 = new Fruits();

D. Fruits *f1 = new Fruits();

E. Fruits *f1 = new Fruits;


1
Expert's answer
2021-04-23T07:06:32-0400

C. Fruits f1 = new Fruits();


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog