Ask Question

Which of the following is a valid call for the generic method declared below? and why?

public class Whovian {

public static void print (E[] list)

{ / /print array }

public static void main (String[] args) {

String [] Companions = {"Rose", "Amy", "Rory", "Clara", "Bill");

//call generic function

Answers:

print (Companions);

print (Companions);

print (Companions);

Whovian. print (Companions);

+3
Answers (2)
  1. 27 January, 13:23
    0
    Answer:print (Companions);

    Explanation:it is the name of the array to printed
  2. 27 January, 13:32
    0
    Print (companions);

    Print (companions);

    Print (companions);

    Print (companions);
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which of the following is a valid call for the generic method declared below? and why? public class Whovian { public static void print (E[] ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers