Question: What is the output of the following Java program? public class Exam { static int studyingHours = 3 1 ; private String course = OOP
What is the output of the following Java program?
public class Exam
static int studyingHours ;
private String course OOP;
public void computeint studyingHours
Exam e new Exam;
this.studyingHours ;
course Math;
System.out.printlnExamstudyingHours: Exam.studyingHours;
System.out.printlnestudyingHours: estudyingHours;
System.out.printlnecourse: ecourse;
System.out.printlncourse: course;
public static void mainString args
Exam e new Exam;
ecompute;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
