Question: write the output class Student4 int id; String name; Student4(int 1, String n) { id-1: namen: X void display () (System.out.println(id+ +name); public static void
- write the output

class Student4 int id; String name; Student4(int 1, String n) { id-1: namen: X void display () (System.out.println(id+" "+name); public static void main (String args[]) ( Student4 sl new Student4(111,"Sleiman"); Student4 s2-new Student4(222,"Athab"); $1. display(); s2. display (); } Output:
Step by Step Solution
There are 3 Steps involved in it
There are a few mistakes in the coding provided Here is the corrected version with the exp... View full answer
Get step-by-step solutions from verified subject matter experts
