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
PolarNik [594]
3 years ago
7

Methods that require you to use an object to call them are called ____ methods.1. accessor

Computers and Technology
1 answer:
nata0808 [166]3 years ago
6 0

Answer:

The answer is "Option 2".

Explanation:

Methods of instance are needed to construct an object of their class and needed to call. In java, the static method can be called without generating a class object. and other options are not correct that can be explained as follows:

  • In option 1, Accessor is a function that is used to set the value of private fields that's why it is not correct.
  • In option 3, Internal is a keyword that is used to provide accessibility to function.
  • In option 4, Static is a keyword that is used with a class, method, and variable. This keyword is used to share the same variable or method to the class. That's why it is not correct.

You might be interested in
What is the difference between the (BIOS) basic.input.output.system and R.O.M
abruzzese [7]
EX: A BIOS is a file used to make an emulator work properly. <span>A ROM is a copy of a game downloadable online.</span>
6 0
3 years ago
Design a program takes as input, X, an unsorted list of numbers, and returns the sorted list of numbers in X. The program must b
Lelechka [254]

Answer:

The program in python is as follows:

def split(X):

   L = []; G = []

   for i in range(len(X)):

       if X[i]>=X[0]:

           G.append(X[i])

       else:

           L.append(X[i])

   L.sort(); G.sort()

   return L,G

X = []

n = int(input("Length of X: "))

for i in range(n):

   inp = int(input(": "))

   X.append(inp)

   

if len(X) == 0 or len(X) == 1:

   print(X)

else:

   X1,X2=split(X)

   newList = sorted(X1 + X2)

   print(newList)

Explanation:

The following represents the split function in the previous problem

def split(X):

This initializes L and G to empty lists

   L = []; G = []

This iterates through X

   for i in range(len(X)):

All elements of X greater than 0 equal to the first element are appended to G

      <em> if X[i]>=X[0]:</em>

<em>            G.append(X[i])</em>

Others are appended to L

<em>        else:</em>

<em>            L.append(X[i])</em>

This sorts L and G

   L.sort(); G.sort()

This returns sorted lists L and G

   return L,G

The main function begins here

This initializes X

X = []

This gets the length of list X

n = int(input("Length of X: "))

This gets input for list X

<em>for i in range(n):</em>

<em>    inp = int(input(": "))</em>

<em>    X.append(inp)</em>

This prints X is X is empty of has 1 element

<em>if len(X) == 0 or len(X) == 1:</em>

<em>    print(X)</em>

If otherwise

else:

This calls the split function to split X into 2

   X1,X2=split(X)

This merges the two lists returned (sorted)

   newList = sorted(X1 + X2)

This prints the new list

   print(newList)

7 0
3 years ago
Write the definition of a method, isReverse, whose two parameters are arrays of integers of equal size. The method returns true
Marat540 [252]

Answer:

   public static boolean isReverse(int [ ]a, int [ ]b ){

       for (int i=0;i<a.length;i++)

       {

           if(!(a[i] == b[a.length-i-1]))

               return false;

       }

       return true;

       }

Explanation:

Using a for loop, we go through the elements of the first array. The if comapres and checks if any of the values are not the same as the appropriate value on the other array, if it is so, then it is not a reverse, and we return false. else  we return true.

7 0
3 years ago
Which of the following may businesses use to screen out applicants for a position? A. social media B. applications C. resumes D.
Nataly_w [17]
The correct answer is E
8 0
3 years ago
Read 2 more answers
Classes can create new classes from existing classes. this important feature ____.
user100 [1]

Inheritance describes the ability to create new classes based on an existing class.

<h3>What is Inheritance ?</h3>

Receiving private property, titles, debts, entitlements, advantages, rights, and liabilities when a person dies is the practice known as inheritance. Different societies have different inheritance laws, which have evolved over time. A testator may formally bequeath private property and/or obligations by means of a will, as attested by a notary public, or by other legal ways.

If there was no will left by the decedent, intestate laws may apply to determine how the inheritance is distributed. The intestate laws will then take effect if the will is found to be in violation of the laws in effect at the time it was written (certain states, for instance, do not recognize handwritten wills as legitimate, or only in certain circumstances).

Disinheritance is the exclusion from inheritance of a person who was an heir in a prior will or would ordinarily be expected to inherit.

To learn more about Inheritance from the given link:

brainly.com/question/15078897

#SPJ4

4 0
2 years ago
Other questions:
  • Brian is testing a banking application. He enters an input and expects a certain output. What is the actual output of the applic
    11·1 answer
  • Liz's meeting is scheduled to end at 9:30. It is 9:20 and team
    9·1 answer
  • In a _____ network, each device on the network is attached to a central server. If the server fails, then the other devices will
    8·1 answer
  • Compute (110110001.01)2 + (27.12)10 + (121.25)16 – (130.20)16 and display the answer in hexadecimal base.
    7·1 answer
  • The ________ view in access looks similar to an excel spreadsheet.
    5·1 answer
  • Why would a user want to resend a message? Check all that apply.
    7·2 answers
  • 16. If a user can make modifications to database objects, what permission has that
    13·1 answer
  • Instructions: Write a program that calculates the amount of ingredients needed for various flavors of cheesecake.
    13·1 answer
  • What is a possible weakness of an expert-novice pair?
    9·1 answer
  • Question 1 of 10
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!