subject

Can i lease get on this? it's the last 5 questions that i don't understand.

1- which of the following statements is false?

a) all java classes have a main method.
b) a class is a template that defines what an object's data fields and methods will be.
c) an objects is an instance of a class
d) a constructor is a special method that is invoked when creating an object.

2- suppose class circle has a public constructor that takes no arguments. which of the following statements creates an insurance of class circle and assigns a reference to tat instance to a reference variable?

a) class circle = new circle;
b) var circle c = new circle;
c) circle c = new circle;
d) circle c = new circle ();

3- which which of the following shows a valid header for a constructor of class named location?

a) public void location(string city)
b) public string location(string city)
c) public location(string city)
d) public class location(string city)

4- suppose class circle has a public method named getarea ( ) that returns a double value. suppose that circle is a reference variable that currently refers to an object of type circle.. which of the following statements correctly calls the getarea ( ) method on circle and stores the result?

a) circle. getarea ( );
b) double a = circle. getarea ( );
c) double circle = getarea ( );
d) double a = getarea (circle);

5- suppose class circle has a public instance variable names=d radius of type double. suppose that ref is reference variable that currently refers to an instance of type circle. which of the following statements would assign a value of 5 to the variable radius belonging to that instance.

a) ref. value = 5;
b) ref. radius = 5;
c) circle. radius = 5;
d) circle. radius = 5;

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:30
The total revenues for a company are $150,223 and the total expenses were 125,766. if you are calculating the net income, which of these spreadsheets would you use? insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2-b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2+b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2/b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2*b3. the formula should be showing in the formula bar.
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
One of your customers wants you to build a personal server that he can use in his home. one of his concerns is making sure he has at least one backup of their data stored on the server in the event that a disk fails. you have decided to back up his data using raid. since this server is for personal use only, the customer wants to keep costs down. therefore, he would like to keep the number of drives to a minimum. which of the following raid systems would best meet the customer's specifications? a. raid 0 b. raid 1 c. raid 5 d. raid 10
Answers: 3
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
question
Computers and Technology, 24.06.2019 18:30
What are the benefits to using presentations to organize and deliver information in the workplace? they add visual appeal. they are easy to update. they ensure accuracy. they can be created quickly. the work can't be lost.
Answers: 1
You know the right answer?
Can i lease get on this? it's the last 5 questions that i don't understand.

1- which of...
Questions
question
English, 26.10.2020 20:40
question
Mathematics, 26.10.2020 20:40
Questions on the website: 13722360