Page 1 of 1

Given the following method class passing Argument, which of the method calls would be true? 1 public class passingArgume

Posted: Sun Jul 03, 2022 12:00 pm
by answerhappygod
Given The Following Method Class Passing Argument Which Of The Method Calls Would Be True 1 Public Class Passingargume 1
Given The Following Method Class Passing Argument Which Of The Method Calls Would Be True 1 Public Class Passingargume 1 (29.36 KiB) Viewed 20 times
Is line 6, 7, 8, or 9 correct?
Given the following method class passing Argument, which of the method calls would be true? 1 public class passingArgument { 2 3 4 displayValue (a,b); 5 } 6 //Lpublic static void displayValue (int x, 7 // public static void displayValue (short) 8 // public static void displayValue (short 9 // public static void displayValue (long System.out.println (x+y); 10 11 12 ) } public static void main(String args[]) { short a-10; long b-20; int y) { x, byte y) { x, long y) { x, byte y) {