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
anygoal [31]
3 years ago
11

What occurs when you call a method on a reference variable that contains null? Select one: a. An ArrayIndexOutOfBoundsException

error b. An ArithmeticException error c. A NullPointerException error d. A ClassCastException error
Computers and Technology
1 answer:
Finger [1]3 years ago
5 0

Answer:

Option(c) i.e "A NullPointerException error " is the correct answer for the given question.

Explanation:

Exception are the run time error in the program.A NullPointerException is the runtime error when the pointer containing the NULL value .This type of exception occur when we call that function on the pointer variable which contains the NULL.

  • ArrayIndexOutOfBoundsException error occur when we accessing the element which is out of the index or bound so this option is incorrect.
  • An ArithmeticException error  occur in the arithmetic operation. Suppose a number is divided by zero then the ArithmeticException error is occured .
  • ClassCastException error occur in the typecasting of a specific object.So this option is incorrect.
You might be interested in
What is the keyboard shortcut for copying text?<br><br> Ctrl+P<br> Shift+P<br> Ctrl+C<br> Ctrl+P
iren2701 [21]

Answer:

ctrl+c

Explanation:

6 0
3 years ago
Read 2 more answers
When typing in a cell, hitting Tab will bring which result?
iren2701 [21]

<span>C. 
Move to the next cell down.</span>
7 0
3 years ago
Read 2 more answers
Entering the search criteria "B?" would yield which of the following results? A. Bedford B. Be C. Birmingham D. Bentonville
lidiya [134]
It would be either one i belive... but i would choose C if your talking about google
4 0
3 years ago
Read 2 more answers
When using Internet explore what options will empty the log of Internet sites you have recently viewed
alexira [117]
I think it’s clear history
7 0
3 years ago
_____________technique can be used to create smooth animations or to display one of severalimages based on the requirement.
kozerog [31]

Answer: Image preloading

Explanation:

The Image Preloading process  can be describes as follows:

1. Using the new keyword an instance of the image object is created.

2. The src property and the flename of the image is set be equal.

3. Then image is downloaded into the cache with displaying it.

4. The src property is set equal to the prefetched image when it is required to display the image.

3 0
3 years ago
Other questions:
  • Jake is photographing his pet puppy. He wants to preview the image the camera will capture. What part of the camera that is insi
    6·2 answers
  • How do i set up a RAID 1 array?​
    6·1 answer
  • Is the IOT governable by frameworks? Explain your rationale.
    13·1 answer
  • 3. Which one of the following statements is correct? _____ variables are those whose storage bindings are created when their dec
    12·1 answer
  • DJ Davon is making a playlist for an internet radio show; he is trying to decide what 1212 songs to play and in what order they
    12·1 answer
  • , 13 dB correspond to a power ratio of ....?
    14·1 answer
  • 23+ Composition refers to
    11·1 answer
  • Please help. will give u brainliest!! khan academy computers and the internet!!
    12·1 answer
  • Mbr and guid advantages and disadvantages
    9·1 answer
  • Create a set of functions that compute the mean, median, and mode of a set of
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!