Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Which of the following can be used as class member modifiers (check all that app

ID: 3843372 • Letter: W

Question

Which of the following can be used as class member modifiers (check all that apply): local private public static protected dynamic The java. lang. Math class offers many useful methods that can be used by any client Class without creating an instance of Math. The code fragment below shows two such example methods. Considering their usage, what 2 class. member modifiers would both of these method definitions have included? double rand = Math random(); int min = Math.min (512, 1024); Which modifier below makes a Java Class data member a constant? static const read-only final midterm Which of the following is true about the way parameters are passed to invoked methods in Java? (check all that apply): Parameters can be array types. The called method receives copies of the past parameters which can be modified, but the original variables used by the invoking method will never be affected. The called method can invoke all available methods on Object reference parameters, and potentially change the state of the underlying object instance. Object reference parameters are exactly like address variables in C++, and are handled the same way.

Explanation / Answer

Question 6:

Answer:

public

public

If no access specifier is given the variable decalred are treated as public.

Question 7:

Answer:

Final

static

final once a value is assigned to variable you cannot modify it.

static: we cannot re initilize the value to variable, that instance of variable is shared through out the code

Question 8:

Answer:

option

a) parameters can be array types java

yes parameter can be arrays

b) is also correct

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote