Answered step by step
Verified Expert Solution
Link Copied!

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Explain all drawbacks of application procedure.

Answered: 1 week ago