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
iragen [17]
3 years ago
5

Write a public interface named Test with the following behavior:

Computers and Technology
1 answer:
enyata [817]3 years ago
8 0

Answer:

The code to this question can be given as:

Code:

public interface Test  //define interface  

{

   public abstract Duration getDuration(); //define method

getDuration.  

   public abstract Result check(int a);

//define method

check .

   public abstract double getScore();

//define method getScore.  

}

Explanation:

In the above code, we define an interface that is "Test" inside an interface, we define three methods that can be defined as:

  • First, we define a method that is "getDuration" that method returns  Duration as an object.
  • Second, we define a method that is "check" this method accepts an integer parameter that is a and return Result.
  • The third method is "getScore" this method will return a double value.
You might be interested in
Which type of firewall automatically adjusts its filtering rules based on the content of the traffic of existing sessions?
vaieri [72.5K]

Answer: Dynamic packet filtering

Explanation:

Dynamic packet filtering is the type of fire wall which is used automatically to enabled the modification in the real time based on the traffic content according to the filtering rules.

The dynamic packet filtering also facilitates to monitor the actual state of connection which is active.

It is also used to determine the actual state of network packet and permits the packet of network pass through firewall.

7 0
4 years ago
Jason logged into a banking website. A few later, he found that money from his account had been transferred to another account w
NemiM [27]
I think it’s bank fraud or cybercrime idk
8 0
3 years ago
Assume that you have an ArrayList variable named a containing 4 elements, and an object named element that is the correct type t
jonny [76]

Answer:

Option (4) is the correct answer.

Explanation:

In Java programming language ,array collection starts from 0 index location and ends in a size-1 index location. So to access the last elements the user needs to use a[Size-1] statement. so to modify the value of the last location of the array the user needs to use "a[size-1]= element;".

But when the user wants to add some new value to the end of the array list collection then he needs to use the statement--

a.add(element); //where add is a function, element is a value and a is a array list object.

Another option is invalid because--

  • Option 1 is not the correct because "a[3]=element;" modify the value of the 3rd element of the array.
  • Option 2 gives a compile-time error because add functions bracts are not closed.
  • Option 3 gives the error because a[4] gives the location of the 5th element of the array but the above question says that a is defined with 4 elements.
7 0
3 years ago
When you see ##### in a cell, you should A. increase the cell width. B. increase the cell height. C. decrease the cell width. D.
Usimov [2.4K]
A. Increase the cell width this is because there is not enough room in the cell to display the number that was given. 
4 0
4 years ago
________________are programs that designed to help users to be more productive with their personal tasks
Sergio039 [100]
Answer is • designers •

Have a nice day
7 0
3 years ago
Read 2 more answers
Other questions:
  • Wendy is an attacker who recently gained access to a vulnerable web server running Microsoft Windows. What command can she use t
    9·1 answer
  • A touch screen is classified as a special type of scanning device true or false
    15·1 answer
  • Which of the following is NOT a consideration designers must make when using colors?
    15·1 answer
  • A company has a number of employees. The attributes of EMPLOYEE include Employee ID (identifier), Name, Address, and Birthdate.
    11·1 answer
  • Which of the following enables robots to do things such as understand itself, walk, talk, and develop skills?
    15·1 answer
  • Anyone wanna hop on 1v1.lol<br> party code : usfhb6
    12·2 answers
  • Need help ASAP <br><br> Thankss + BRAINLIST only for correct answers
    10·1 answer
  • Suppose a computer's login mechanism first asks for a user name, and then for the password, regardless of whether or not the log
    15·2 answers
  • The electors in each state shall have the qualifications requisite for electors of the most numerous branch of the state legisla
    11·1 answer
  • Which agency motors the sale and registration of vehicles and vessels within the state
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!