What do you understand by the term constructor in java, JAVA Programming

Assignment Help:

Question:

(a) What are the main differences between an object and a class? Illustrate with appropriate examples.

(b) Differentiate between a global variable and a local variable. You may use a simple Java program to illustrate your answer.

(c) What do you understand by the term ‘constructor' in Java? Explain your answer with an appropriate example.

(d) Declare and initialise an array of type float of size 5 to store the marks obtained by a student at his examinations. Initialise the array with the following values {65, 57, 75, 49, 88}.

Write the code fragments in Java to find:

(i) the average mark obtained by the student at the examinations.
(ii) the highest mark obtained by the student.
(iii) the lowest mark obtained.


Related Discussions:- What do you understand by the term constructor in java

Develop a color picker, Project Description: We need same kind of concep...

Project Description: We need same kind of concept with some changes # Change single colors in a particular design. you need to be able to change the color of only the fox or

Payroll calculator application, Payroll Calculator for Both Hourly and Comm...

Payroll Calculator for Both Hourly and Commission Employees In assignment 13, we will create a payroll calculator that calculates   gross pay ,   taxes , and   net pay   fo

Difference between pre-emptive scheduling and time slicing, Explain the dif...

Explain the difference between pre-emptive scheduling and time slicing ?

Elaborate vector or object oriented graphics, Elaborate Vector or Object or...

Elaborate Vector or Object oriented graphics along with at least one example. Object Oriented Graphics are the graphics that are commonly oriented towards the objects and have

Describe the relational operators in java, Describe the relational operator...

Describe the relational operators in java? Java has six relational operators which compare two numbers and return a boolean value. The relational operators are , > , , >=

I want a viral script for facebook likes, I want a viral script for faceboo...

I want a viral script for facebook likes Project Description: I am seeking someone to sell me or make for me a VIRAL script for facebook likes and auto share. Skills requi

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd