Question: please help) Given the class name: Test, what is a valid file name for this class? Select from the following options: anyname.java Test.java testclass.java Testclass.java
please help")


Given the class name: Test, what is a valid file name for this class? Select from the following options: anyname.java Test.java testclass.java Testclass.java Select all constructs that can have a visibility modifier in java method field constructor a local variable declaration (in a method, for example) You have a class called Statistics that has a (public) method called "average" that takes an array of doubles and returns the average of the array. Suppose you see the following line(s) of code in another file: double arr={4.0,2.3,4.6,1.1}; double avg = Statistics.average(arr); System.out.println("the average is: " + avg); What listed below must be true about the average method? average must be a private method average must be a static method (no instance of the Statistics class) the code won't compile average is being called on an instance of the Statistics class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
