1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
serg [7]
3 years ago
8

Which of these is a consequnce of removing a method declaration from an interface after it has been implemented?a. There are no

consequences, interfaces can always be modified to remove methods. b. The method definitions would need to be removed from every subclass that implements the interface.c. Code would breakwhenever an interface reference is used to polymorphicaly call the method in an instance of an implementing class
Computers and Technology
1 answer:
user100 [1]3 years ago
8 0

Answer:

Option (a)

Explanation:

It will not produce any error as if a function is declared in the interface and then implemented by a class same function can be defined, but if that declaration is removed then also that class will consider that method as new declaration and it won't produce any type of error. For example : if following code of Java  is run -

interface printing{  

   void print_it();   //method declared

   }  

class Student implements printing{  

public void print_it()    //method implemented

{

   System.out.println("Hello World");

}      

public static void main(String args[]){  

Student obj = new Student();  

obj.print_it();    //method called

   }  

}

OUTPUT :

Hello world

But if the program is altered and declaration of print_it is deleted from the interface like following :

interface printing{  

//method is removed from here

   }  

class Student implements printing{  

public void print_it()    //method implemented

{

   System.out.println("Hello World");

}      

public static void main(String args[]){  

Student obj = new Student();  

obj.print_it();    //method called

   }  

}

Still no error is generated and same output is displayed as before.

You might be interested in
PLSSSS HURRY THIS IS A FINAL!!!!
kenny6666 [7]

Answer:

2.5

Explanation:

A float has numbers on both sides of the decimal, it is similar to a decimal, except with less space in memory.

4 0
3 years ago
If a citation has a volume, title, and page numbers, it is a:
Sergeu [11.5K]

Answer:

It has to be Journal Article Citation

Explanation:

3 0
3 years ago
Read 2 more answers
A data __________ is trained in both computer science and statistics and knows how to effectively process and analyze large amou
Inga [223]

Answer: data scientist

Explanation:

3 0
3 years ago
A(n) ____cookie is created by an ad on a website, where the ad is owned and managed by a
mart [117]

Answer:

Third-party cookies

Explanation:

4 0
3 years ago
You have just installed a SOHO router in a customer's home and the owner has called you saying his son is complaining that Inter
monitta

Answer:

This question is not complete. See the complete question below.

You have just installed a SOHO router in a customer’s home and the owner has called you saying his son is complaining that Internet gaming is too slow. His son is using a wireless connection to the network. Which possibilities should you consider in order to speed up the son’s gaming experience? Select all that apply.

A.Verify the wireless connection is using the fastest wireless standard the router supports.

B.Disable encryption on the wireless network to speed up transmissions.

C.Suggest the son use a wired Gigabit Ethernet connection to the network.

D.Enable QoS for the gaming applications on the router and on the son’s computer.

ANSWER

A. Verify the wireless connection is using the fastest wireless standard the router supports.

C. Suggest the son use a wired Gigabit Ethernet connection to the network.

D. Enable QoS for the gaming applications on the router and on the son’s computer.

Explanation:

A. Verify the wireless connection is using the fastest wireless standard the router supports.

This is the first thing to be done because by enabling the fastest wireless standard the router supports you are sure the router is performing at it best.

B. Disable encryption on the wireless network to speed up transmissions.

There will be no need to disable encryption on the wireless network as this does not necessarily affect the transmission speed. Doing this will make the network vulnerable to threats.

C. Suggest the son use a wired Gigabit Ethernet connection to the network.

This will be the last step when there is no improvement in wireless transmission speed. As wired network is more stable and not susceptible to interference experienced on wireless networks.  

D. Enable QoS for the gaming applications on the router and the son’s computer.

This is important as enabling QoS on either the router or the son's computer only will not help in improving wireless speed. We will confirm that QoS is enabled on both. When am done with this and there is still no improvement in wireless transmission speed, I can then consider option C

5 0
3 years ago
Other questions:
  • What seems to be the prevailing opinion about enterprise clouds?
    8·2 answers
  • What is the maximum number of communication paths for a team of twenty people?
    5·1 answer
  • Project 4: Strictly Identical arrays
    7·1 answer
  • Please check my answer! (Java)
    7·1 answer
  • 1. Multiple Choice(25 points) 1) 4’b1001 represents the following decimal number______________ a) 8 b) 9 c) 10 d) 11 2) The foll
    10·1 answer
  • How many radio buttons from the following code can be selected at any given time?a.Home Addressb.Federal Expressc.UPS
    9·1 answer
  • 4. What is the package name in which the Scanner class resides?
    14·1 answer
  • It is an electronic device that capable of accessing accepting processing product and storing data​
    13·1 answer
  • Write a method named numUnique that accepts a sorted array of integers as a parameter and that returns the number of unique valu
    15·1 answer
  • Computers are not automatic they need human to operate.(true or false)​
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!