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
madreJ [45]
4 years ago
14

A method variable a class variable with the same name. a) acquiesces to b) destroys c) overrides d) alters

Computers and Technology
1 answer:
arlik [135]4 years ago
4 0

Answer:

Option(c) is the correct answer for the given question.

Explanation:

The method variable overrides the class variable name with same name The method variable overrides of the class variable name .

Following are the example in java language

public class Main

{

int b=90; // class varaible or instance varaible

void sum()

{

   int b=34; // method having same name as class varaible name

   b=b+10;

   System.out.println(b); // display b

}

public static void main(String[] args)  // main method

{

 Main ob=new Main(); // craete object

 ob.sum(); // calling method sum

}

}

Output:

44

In this we declared a variable 'b' as int type in class and override this variable in sum() function it means same variable name is declared in function sum() .

acquiesces ,destroys,alters are the wrong for the given question.

So overrides is the correct answer

You might be interested in
Pls help I will give points
Brrunno [24]

Answer:

Desktop

Explanation:

3 0
3 years ago
What company was credited with developing the first smartphone?
MArishka [77]

IBM developed the world's first smartphone in 1992

5 0
3 years ago
Read 2 more answers
We are tall straight and upright who are we
mamaluj [8]
The answer to this puzzle can be anything but most commonly it is Trees. Pines, Redwood, Sequoias, any kind that is tall and straight. Or it can be something like poles, or even humans.

3 0
4 years ago
Read 2 more answers
Bob is having no luck performing a penetration test on Retail Store's network. He is running the test from home and has download
Novosadov [1.4K]

Incomplete question. The full question read;

Why is Jim having these problems?

Options:

A. Security scanners are not designed to do testing through a firewall.

B. Security scanners cannot perform vulnerability linkage.

C. Security scanners are only as smart as their database and cannot find unpublished vulnerabilities.

D. All of the above.

Answer:

<u>D. All of the above.</u>

Explanation:

<em>Remember, </em><u>security scanners</u> are only designed to <em>gather</em> information about a network, but not with the ability to perform firewall testing. Also, these security scanners are pre-programmed with existing vulnerabilities in their database, and so it would impossible to discover vulnerabilities on the Retail store's network.

Hence, since Bob is using the wrong tools, he is unsuccessful in performing a penetration test.

3 0
3 years ago
What scientific principle would a plumber need to know when designing and installing plumbing a new construction
Volgvan
Diong reasearch to know what your dion
7 0
4 years ago
Other questions:
  • Which function is used to display a string value to the screen?
    8·1 answer
  • Help me!!!!! This is the last question! HELP ME! I REPEAT: HELP ME!!!! I AM SO IN NEED!!!
    12·2 answers
  • Which of the following is a benefit, as well as a risk, associated with peer-to-peer networks?
    11·2 answers
  • What is the process of copying items from ram to a storage device?
    8·1 answer
  • Within the Differentiated Services (DiffServ) architecture, how many classes of service (CoS) are there?
    7·1 answer
  • When you are giving a presentation, which of these elements will help you to explain the content better
    9·1 answer
  • What is wrong with the following C++ code? How would you fix it? int sum; for (int i=0; i&lt;1000; ++i) sum += i; { printf("Sum
    5·1 answer
  • Mobile cameras are now of a higher quality than when they first arrived on the market. Describe the difference in
    5·1 answer
  • 10<br> Which of the following is not one of the most popular Spreadsheet software applications?
    6·1 answer
  • Which statement describes a biotic factor interacting with the environment?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!