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, 21.06.2019 22:00
Which one of the following identifies the primary a purpose of information classification processes? a. define the requirements for protecting sensitive data.b. define the requirements for backing up data.c. define the requirements for storing data.d. define the requirements for transmitting data.
Answers: 2
question
Computers and Technology, 22.06.2019 08:40
1. the program must provide following functions to extract some statistics. note that the data_list parameter specified in these functions may be the same for all functions or different for different functions—that is your choice. a skeleton file is provided on mirmir. a) open_file()prompts the user to enter a year number for the data file. the program will check whether the year is between 1990 and 2015 (both inclusive). if year number is valid, the program will try to open data file with file name ‘year.txt’, where is the year. appropriate error message should be shown if the data file cannot be opened or if the year number is invalid. this function will loop until it receives proper input and successfully opens the file. it returns a file pointer and year. i. hint: use string concatenation to construct the file name b) read_file(fp)has one parameter, a file pointer read. this function returns a list of your choosing containing data you need for other parts of this project. c) find_average(data_list) takes a list of data (of some organization of your choosing) and returns the average salary. the function does not print anything. hints: i. this is not the average of the last column of data. it is not mathematically valid to find an average by finding the average of averages—for example, in this case there are many more in the lowest category than in the highest category. ii. how many wage earners are considered in finding the average (denominator)
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Jason needs to learn a new web tool. he went through his books to understand more about it. now he wants hands-on experience with using that tool. what would him? jason can use websites where workspace is provided to test the results of your code.
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
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
Mathematics, 20.08.2019 13:00
question
Mathematics, 20.08.2019 13:00
question
Mathematics, 20.08.2019 13:00
Questions on the website: 13722362