Question: 1. A Java method that is called from main can do all of these except for one. Which of the choices below is not allowed

 1. A Java method that is called from main can do

1. A Java method that is called from main can do all of these except for one. Which of the choices below is not allowed in Java? (pick exactly one the one you are certain is not allowed!) a) The method returns a single value of some data type, as specified in the method header b) The method does not return any values, and this is specified to the compiler with keyword void preceding the name of the method in the method header c) The same method may return some values or may return no values at all, depending on how is the method being invoked d) The method returns an object, that may contain multiple variables of various data types Consider the following method header: public static char[] someMethod (int intValue, int[] numbers) w Answer the following questions: 2 someMethod whose header is defined above returns a value of the following type: a) A single char b) An array of chars c) An array of int d) Does not return any value 3 The input parameters to someMethod above are (pick exactly one choice!): WWWWWWWWWWWWW a) Two different integers b) Two arrays of type int c) Several different values (more than two) d) An integer and an array of integers 4 Assume someMethod is a part of some class A. Assume that main in some other class B wants to invoke someMethod. Assume the actual parameters x and list passed to someMethod are of correct datatypes. The way to do this method invocation in Java is: wwwwwwwwwwwww a) someMethod (x, list); b) A. someMethod (x, list); c)B. someMethod (x, list); d) You cannot call a Java method from another class. WWW

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!