1. Write the output of these code block without running (8) class StudentFinal { private final long Student ID; private
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. Write the output of these code block without running (8) class StudentFinal { private final long Student ID; private
(8) class StudentFinal { private final long Student ID; private static long number-2007030801; public StudentFinal () { Student ID number++; } public long getID() { return Student ID; } public static void main(String[] args) { Student Final [] s = new Student Final [3]; for (int i=0; i<s. length; i++) { s=new StudentFinal (); System.out.println("The Student ID is "+s.getID());