Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Identify the name of the class. 2. Identify the object of the class. 3. Create an additional object for the class. 4. Identify the method
Identify the name of the class.
2. Identify the object of the class.
3. Create an additional object for the class.
4. Identify the method and type of method.
5.What is the use of Scanner class? What is the object created for Scanner class.
6.Which statement in below code calling the method?
7.Write one more method to calculate grade and display the result of the marks are 60 and above the result is pass otherwise fail. Also call this method in main method.
import jav public class $Examale. int marks public void getMarks ( System.out.printiel Enter marks"); Scanner a= new Scanner(System.in); marks extint): } public static void main(String args[]){ SetMarks 1
Step by Step Solution
★★★★★
3.38 Rating (154 Votes )
There are 3 Steps involved in it
Step: 1
1 Class name ScannerExample 2 Object of the class male 3 Additional obje...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started