Java Programming Language MCQ Java Constructor and Methods
⚠ Report ✓ Question Verified Copy Link
class Test{ public int display(int x, int y){ return ("The sum of x and y is " + x + y); } public static void main(String args[]){ Test test = new Test(); System.out.println(test.display(4,5)); } }
Learn More MCQ Questions from Java Programming Language MCQ Java Constructor and Methods