Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java programming IDE eclips can anyone help me ! thank u What will be the output of the following program. elass BikeTester public static void

java programming IDE eclips
can anyone help me !
thank u image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
What will be the output of the following program. elass BikeTester public static void main(String (1) Bike bike = new Bike(): bike.company = "Hero Honda" bike.model = "Shine" bike.cc = 125, bike, vileage = 72.53 bike.diskBrakes = false; System.out.println(bike.company bike.model.gives lege of bike milenge "mpl."); ) class Bike Bike(String companyParan, String modelParan, int csParan) company companyaran model modelParam; CE Parang > String companys String models int ce double silence boolean diskBrakes Compilation error once the bike object is created using a corrector without parameters Compilation errorunce data ispred to member warbles mileage and does alter the distret Hero Honda's Shinees a mage of 72.impl. The Nullen occurs while secting the program What will be the output of the following program? class TestArithmeticutils public static void main(String[]) ( Arithmeticutils utils = new Arithmeticutils(); int x = utils.add(2, 3), // LINE M double y = utils.add(3.4, 6.6), // LINEN int rutils.add(x, y, 20); // LINE O System.out.println("1 = " 3); > > class Arithmeticutils int add(int i, int 3) // LINE A return 1. 3) > double add(double 1, double ) // LINE 3 return 1 + 3 3 double add(int i, double s, int k) return 1-3.kz 3 double add(nt I, double sint k, double 1) // LINE C return 1+ - k. 13 Compilation Error at LINE O. Compilation Error at LINEM Compilation Error at LINEC Consider the following UML diagramol a class. How many constructors in the class. > Student (default package) e idint e fName- String . IName. String Student(int) Student(int String, String) getid() int setid(int) void getfName() String setfName(String) void - getiName()-String setlName(String) void DisplayMessage()-String What will be the output of the following program? public class Rose [ public Rose(String name) { System.out.println("Passed Name is " + name) ) public static void main(String[] args) { Rose my Rose = new Rose(red"); myRose = new Rose("white"); 3 Passed Name is red Passed Name is white Passed Name is red Passed Name is white O Compilation Error or Runtime Error Output of following Java program? class Main public static void main(String args) { intx = 0; inty= 10: intz= y c } 3 o Compiler Error o Compiles and runs fine Compiles fine but throws ArithmeticException exception No

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

e. What are notable achievements of the group?

Answered: 1 week ago