Which one of the following statements is true about passing arrays to a method?
A) By default, arrays are passed by value to a method
B) Arrays, when updated in a called method, are not reflected to the calling method
C) By default, arrays are passed by reference to a method
D) Arrays are passed only if size is specified as another argument
Correct Answer:
Verified
Q26: Consider the following code snippet:
String[] data =
Q51: Which one of the following is the
Q52: Why is the following method header invalid?
Q53: Consider the following code snippet:
Int[][] numarray =
{
{
Q54: Which one of the following is the
Q57: Consider the following code snippet: String[] data
Q58: What is the output of the following
Q59: Consider the following code snippet:
Int[][] arr =
{
{
Q60: Consider the following code snippet in Java
Q61: Which one of the following code snippets
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents