Question

In: Computer Science

Just give answer no need to explain Which of the following are true about Interface? An...

Just give answer no need to explain

Which of the following are true about Interface?

An interface can have methods

An interface can have properties

An interface can have constructor

An interface can have fields

Which of the following are benefits of the Collection

Collection have builtin sorting facility

We have to manage memory of collections as we require.

Collections cannot be readonly or of fixed size.

Solutions

Expert Solution

1.

Which of the following are true about Interface?

a) An interface can have methods -- TRUE

b) An interface can have properties -- FALSE

c) An interface can have constructor -- FALSE

d) An interface can have fields -- TRUE

2.

Which of the following are benefits of the Collection?

a) Collection have builtin sorting facility -- TRUE

b) We have to manage memory of collections as we require. -- FALSE

c) Collections cannot be readonly or of fixed size. -- FALSE

A few brief comments:

1.

a) Interfaces can have methods. Although there will be no body of methods if they are not default.

b) Properties are instance variables. All variables declared inside the interface are static and final. They are constant and called fields.

c) Interface cannot have constructor.

d) Refer point (b)

2.

a) Collections have built in sorting facility.

b) Memory management is automatic in java

c) Collections can be made readonly.


Related Solutions

Just answer dont need to explain Which of the following is TRUE about the working-age population?...
Just answer dont need to explain Which of the following is TRUE about the working-age population? It consists of two groups of people: in the labour force and people looking for work. in the labour force and people with a jo looking for work and those in the armed forces. in the labour force and people who are not in the labour force. Country A has 100 unemployed and 1000 employed individuals. The working-age population is 1,400. Therefore, the labour...
3. Which statement about methods in an interface is true? A.)All methods in an interface must...
3. Which statement about methods in an interface is true? A.)All methods in an interface must be explicitly declared as private or public. B.)All methods in an interface are automatically public. C.)All methods in an interface are automatically private. D.)All methods in an interface are automatically static.
Which of the following about mRNA transport in eukaryotes is true? And explain answer a. proteins...
Which of the following about mRNA transport in eukaryotes is true? And explain answer a. proteins bind to mature mRNA at exon:intron boundaries b. mRNA transport is not a highly regulated process c. mature mRNA is transported out of the nucleus by passive transport d. mature mRNA is associated with specific proteins that signal the mRNA for transport
Which of the following is true about fringe benefits? Which of the following is true about...
Which of the following is true about fringe benefits? Which of the following is true about fringe benefits? They represent additional compensation given for services performed They are only available for employees. The amount of the fringe benefit is never subject to income tax. They represent additional cash paid directly to employees.
Which of the following statements is true? a. A network interface card (NIC) is assigned a...
Which of the following statements is true? a. A network interface card (NIC) is assigned a permanent IP address by the manufacturer. b. A MAC address is assigned dynamically by DHCP and can change when you attach your computer to a different network. c. An IP address is assigned dynamically by DHCP and can change when you attach your computer to a different network. d. To communicate via inter-networking, a device does not require a MAC address. e. To communicate...
Which of the following is true about the dividend policy of a company? Group of answer...
Which of the following is true about the dividend policy of a company? Group of answer choices The dividend policy of a company should affect the future value of a stock but not the current value Companies with low excess return periods typically pay lower dividends The higher the dividend paid, the higher the current value of the stock If the dividend is expected to grow, it will reduce the expected future value of the stock because the company is...
Is the following statement true or false? Give your answer and briefly explain it. "A research...
Is the following statement true or false? Give your answer and briefly explain it. "A research study’s sample can be another research study’s population."
(i just need an answer for question 4) (i just need an answer for just question...
(i just need an answer for question 4) (i just need an answer for just question 4) you have two facilities, one in Malaysia and one in Indonesia. The variable cost curve in the Malaysian plant is described as follows: VCM = q­ + .0005*q2 , where q is quantity produced in that plant per month. The variable cost curve in the Indonesian plant is described by VCI = .5q + .00075q2, where q is the quantity produced in that...
Which of the following are true about transition state analogs? Group of answer choices They are...
Which of the following are true about transition state analogs? Group of answer choices They are molecules. [ Choose ]FALSETRUE They are enzymes. [ Choose ]FALSETRUE They fit in the active site of the target enzyme. [ Choose ]FALSETRUE They bind less tightly than the substrates of the normal enzyme-catalyzed reaction. [ Choose ]FALSETRUE They bind more tightly than the products of the normal enzyme-catalyzed reaction.
Which of the following statements about chloroplasts is true? Group of answer choices The stacks of...
Which of the following statements about chloroplasts is true? Group of answer choices The stacks of interconnected sacs within the chloroplast are known as stroma; this is where the light-collecting for photosynthesis occurs. The stacks of interconnected sacs within the chloroplast are known as thylakoids; the light-collecting for photosynthesis occurs here. Chloroplasts are found in eukaryotic cells, therefore they contain linear DNA. The DNA of the chloroplast is found within the thylakoid sacs. The chloroplast has one single membrane layer...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT