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, 23.06.2019 00:20
The open systems interconnection (osi) reference model: defines standards for many aspects of computing and communications within a network. is a generic description for how computers use multiple layers of protocol rules to communicate across a network. defines standards for wireless local area network (wlan) communication protocols. details the advantages and disadvantages of various basic network cabling options.
Answers: 1
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 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
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
Biology, 19.12.2019 18:31
question
Computers and Technology, 19.12.2019 18:31