Solved

Consider a Method Named Calc, Which Accepts Two Numbers as Integers

Question 22

Multiple Choice

Consider a method named calc, which accepts two numbers as integers and returns their sum as an integer. Which of the following is the correct statement to invoke the method calc?


A) calc(2, 3.14) ;
B) int sum = calc(2, 3) ;
C) calc() ;
D) int sum = calc("2", "3") ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents