Computers and Technology
Computers and Technology, 03.01.2020 20:31, vavio3287

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;

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:10, shimmerandshine1
When you reach a yield sign, yield to cross traffic and before you enter the intersection. a. flash your headlights b. wait for a signal c. wait five seconds d. wait for a safe gap
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, jc624826
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
image
Computers and Technology, 23.06.2019 09:00, mimithurmond03
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
image
Computers and Technology, 23.06.2019 13:10, BrianKeokot4534
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
Do you know the correct answer?
Can i lease get on this? it's the last 5 questions that i don't understand.

1- which of...

Questions in other subjects: