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
Marina CMI [18]
8 months ago
12

consider the following code segment, which appears in a method in a class other than password. the code segment does not compile

.
Computers and Technology
1 answer:
Romashka [77]8 months ago
4 0

The code segment does not compile because the method 'reset' does not return a value that can be displayed.

A method refers to a block of that which only runs when it is called. It is permissible to pass data, referred to as parameters, into a method. Methods are used to accomplish certain actions, and they are also called functions. As per the given code segment that appears as a method in a class, it does not compile because the method named 'reset' is not returning a value that can be printed on the screen as an output.

"

<em>Complete question:</em>

Consider the following code segment, which appears in a method in a class other than password.

Password p = new Password("password");

System.out.println("The new password is " + p.reset("password"));

The code segment does not compile because _____________ .

"

You can learn more about Method at

brainly.com/question/27415982

#SPJ4

You might be interested in
como la ciencia y tecnologia ayudan a reducir la contaminacion del aire que respiramos? Muestra algunos ejemplos
Llana [10]
  • Mediante la tecnología se han implementado el uso de medios de transporte como los "coches verdes" o eléctricos que contribuyen a disminuir la producción de  gases contaminantes atmosféricos.

A través de la ciencia y la biotecnología se ha avanzado en el campo de la purificación del aire algunas de las herramientas que actualmente se están utilizando son:

  • La biofiltraccion del aire que se realiza a través de macroporos de material filtrante por donde se filtran los compuestos orgánicos e inorgánicos atmosféricos. También es posible realizar la biodepuracion del aire con plantas purificantes y ornamentales.

  • El uso de las paredes arbóreas cubiertas de musgo ha permitido que en algunas ciudades como París y Berlín mejore la calidad del aire,ya que el musgo se caracteriza  por su gran capacidad para  filtrar contaminantes del aire como las partículas y los óxidos de nitrógeno ya que  los convierte en purificadores naturales ideales para el medio ambiente.

Lo anterior son algunos de los grandes avances que ha tenido la ciencia y la tecnología para lograr mejorar la calidad del aire y por consiguiente la calidad de vida de las personas.

Puedes encontrar mas información sobre este tema en el siguiente enlace:

brainly.com/question/1400149

4 0
2 years ago
Which best describes obliteration in a forged document?
Drupady [299]
The answer is B bc obliteration is related to covering the document
4 0
3 years ago
Alternating Current or AC is better for use in ___________, while DC direct current is needed in _________ .
PIT_PIT [208]
<span>C electric power transmisson and electronics</span>
6 0
2 years ago
Read 2 more answers
What does an SQL injection do
Afina-wow [57]

Answer:

SQL injection is a form of hacking that uses user input fields.

Explanation:

SQL injection is when a piece of code or entire algorithm is input where a program prompts for user input. They can be used to change or access data. To prevent this, a programmer should scrub inputs. Scrubbing data removes slashes and arrows, which or commonly used in code.

3 0
2 years ago
Read 2 more answers
1. Type a statement that reads a user-entered integer into variable numUsers. Assume scnr already exists.
ASHA 777 [7]

Answer:

Question 1:

int numUsers = scnr.nextInt();

Question 2:

public class OutputExample {

public static void main (String [] args) {

int numCars = 99;

Scannerscnr=new Scanner(System.in);

numCars=scnr.nextInt();

System.out.println("There are "+numCars+" cars");

return;

}

}

Question 3:

import java.util.Scanner;

public class Errors {

public static void main(String [] args) {

int userNum = 5;

System.out.println ("Predictions are hard. ");

System.out.print("Especially ");

System.out.print("about the future.");

System.out.println("Num is: "+userNum);

return;

}

}

Explanation:

In Question 1, the statement int numUsers = scnr.nextInt();  reads a new integer value from the keyboard and assigns it to the variable numUsers.

In question 2, Concatenation is used to format the print output.

In question 3, care is taken to fix each of the syntax errors (missing double quotes, semi-colon, concatenation)

3 0
2 years ago
Other questions:
  • He would like to get rid of the graph. What will accomplish
    8·1 answer
  • Hot five was the famous band of which musician?
    14·1 answer
  • An undesirable jagged appearance is referred to as
    7·2 answers
  • "As a ____ database management system, Access is particularly powerful because you can enter data once and then retrieve informa
    6·1 answer
  • 1. What is the central idea of the section "Service Record." Use two text details to
    8·1 answer
  • What tool is provided in Windows to facilitate sharing data objects between applications and computers?
    8·1 answer
  • Stephen is looking through some design diagrams created for a specific application. He spots a diagram which uses a parallelogra
    14·1 answer
  • ________ is the use of information technology to support the sharing of content among networks of users.
    14·1 answer
  • What instructions would a computer have the hardest time completing correctly
    12·1 answer
  • . Why is it important to use Social Media responsibly? ANSWER NOW!!!
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!