Which of the following statements is true about the array names created here (assume that the class Name is correctly defined in Name.java as part of your project): Name[][] names = new Name[3][2]; You can select as many answers as you want. O 5 reference variables for Name objects are created by the above statement. O The above declaration is illegal because elements of an array cannot be a class type. O 6 reference variables for Name objects are created by the above statement. O 6 Name objects are instantiated by the above statement.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter6: Using Arrays
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question

Java Programing

Which of the following statements is true about the array names created here (assume that the class
Name is correctly defined in Name.java as part of your project):
Name [][] names = new Name[3][2];
You can select as many answers as you want.
O 5 reference variables for Name objects are created by the above statement.
O The above declaration is illegal because elements of an array cannot be a class type.
O 6 reference variables for Name objects are created by the above statement.
O 6 Name objects are instantiated by the above statement.
Transcribed Image Text:Which of the following statements is true about the array names created here (assume that the class Name is correctly defined in Name.java as part of your project): Name [][] names = new Name[3][2]; You can select as many answers as you want. O 5 reference variables for Name objects are created by the above statement. O The above declaration is illegal because elements of an array cannot be a class type. O 6 reference variables for Name objects are created by the above statement. O 6 Name objects are instantiated by the above statement.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT