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
Ray Of Light [21]
4 years ago
8

The program has a compilation error because s is not initialized, but it is referenced in the println statement. The program has

a runtime error because s is not initialized, but it is referenced in the println statement. The program has a runtime error because s is null in the println statement. The program compiles and runs fine.
Computers and Technology
1 answer:
maw [93]4 years ago
3 0

Answer:

The program compiles y runs fine

Explanation:

Remember the following:

1. the reserved word “null” indicates that a variable that refers to an object is “without object”,

2. The variable has been declared but does not point to any object.

3. This may be because it was not initialized by assigning an object through the new instruction,

4. or that by mistake the reference contained in the variable has been deleted.

The solution is that it was applied to avoid the error is:

• It is not enough that there is a declaration of the variable

• The variable will be initialized.

You might be interested in
Text documents images audio clips and software applications are all examples of blank that are stored in files
pav-90 [236]

They are all types of computer data stored in files.

7 0
3 years ago
Read 2 more answers
class Login: def __init__(self): self.login_name = 'none' self.login_password = 'none' # TODO: Define class method - check_crede
Gnoma [55]

Create boolean variable that receives return value from # calling check_credentials(login, password) # TODO a loop that will continue until login attempts run out or a successful login is returned # TODO #elegance Login elegance Login: #_init def _init_(self)  #initializing login_name as none self.login_name = 'none'.

<h3>What is a code in programming?</h3>

In laptop programming, laptop code refers back to the set of instructions, or a device of rules, written in a specific programming language (i.e., the supply code). It is likewise the time period used for the supply code after it's been processed via way of means of a compiler and made equipped to run at the laptop (i.e., the item code).

  1. CODE
  2. #elegance Login
  3. elegance Login:
  4. #_init_
  5. def _init_(self):
  6.  #initializing login_name as none
  7.  self.login_name = 'none'
  8.  #initializing login_password as none
  9.  self.login_password = 'none' #check_credentials()
  10. def check_credentials(self, user_login, user_passwd):
  11.  #initializing simlogin as 'Test'
  12.  simlogin = 'Test' #initializing simpass as 'Test'
  13.  simpass = 'test1234' #if consumer despatched an appropriate credentials
  14.  if user_login == simlogin and user_passwd == simpass:
  15.   #print "Successful login!"
  16.   print("Successful login!")
  17.   #returns False
  18.   go back False
  19.    #returns False
  20.   go back False
  21.   #timeout variable used for login attempts
  22. timeout = five
  23. #spark off for password
  24. password = input()
  25. #if now no longer legitimate login
  26.  else:
  27.   #decrements timeout
  28.  timeout = timeout - 1
  29.   #if timeout equals 0
  30.   if timeout == 0:
  31.    #prints "five failed login attempts. No extra login attempts."
  32.    print("five failed login attempts. No extra login attempts.")
  33.     #exits the loop
  34.    break
  35.  #spark off for consumer call
  36.  login = input()

Read more about the code:

brainly.com/question/4514135

#SPJ1

4 0
2 years ago
The superintendent forbade the students to bring their books and copies in the exam hall. (into direct speech)​
nata0808 [166]

Answer:

in direct speech, we convey the message of the speaker in his own actual words without any change to another person.

Explanation:

7 0
4 years ago
In the 21st century organization we will see:
kykrilka [37]

Answer: All of the above

Explanation: As the technology is getting improved and advanced time to time, it will put a huge impact on various sections of organization.

The advancement in the IT infrastructures will be seen by the improvement in the software,networks, data centers, hardware etc and their functioning.This will lead increase the focus of the technology towards the IT infrastructure.

Security is the feature that requires to be developed throughout the time as hacker and attackers come up with various attacks and other malicious activity to steal the confidential data and information .Thus security constantly needs to be improved and focused which will continue to happen in 21st century.

Business of organizations are becoming online and this will tend the organizations to become more indulged online business or e-business in future as it provides more benefits and vast coverage .Thus, all the options are correct.

5 0
4 years ago
Took some photos today for photography class what do you think??
Grace [21]

Answer:

good

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • A(n) ____ is a primary key that consists of a column that uniquely identifies an entity, such as a person's social security numb
    14·1 answer
  • Give a big-O estimate the number of operations, where an operation is a comparison or a multiplication, used in this segment of
    10·1 answer
  • Henry created a software that manages all of his music. He wishes to run software on another computer system that runs an operat
    8·1 answer
  • What option from the format tab should you use to remove unwanted parts of a picture
    8·1 answer
  • What is essence of computer systems and networks?​
    9·1 answer
  • How are gems and precious metals similar?
    6·2 answers
  • A _______ read inputs the first data item from a file. It typically appears immediately before the loop that processes the data
    5·1 answer
  • Question # 4
    5·1 answer
  • What is a current trend in ERP systems?
    12·1 answer
  • What percentage of teens say they have witnessed cyberbullying?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!