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 10:30
Dave has to create animations for a game. which tool can dave use?
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
question
Computers and Technology, 23.06.2019 19:50
Which feature is selected to practice and save the timing of a presentation
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
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, 21.06.2019 20:10
question
Social Studies, 21.06.2019 20:10
question
Geography, 21.06.2019 20:20
Questions on the website: 13722361