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
GarryVolchara [31]
4 years ago
8

If you create an object using Java’s BigDecimal class, and then perform a division that results in a non-terminating decimal div

ision such as 1/3, but specify that an exact result is needed, a(n) ____ is thrown.
Computers and Technology
1 answer:
azamat4 years ago
3 0

Answer:

Arithmetic Exception is the correct answer to the following blank.

Explanation:

Because the BigDecimal class is the class of the Java Programming Language that deal with the double data type numbers for the arithmetic expressions and also for the format conversions and it is the math type class of the Java Programming language which is used in arithmetic operations. So, that's why the following answer is not wrong.

You might be interested in
Tell four permanent icons on the desktop​
Alex777 [14]

Answer:

Desktop icons include Computer, your personal folder, Network, the Recycle Bin, Internet Explorer, and Control Panel. 1. Right-click an empty area of the desktop, and then click Personalize.

To arrange icons by name, type, date, or size, right-click a blank area on the desktop, and then click Arrange Icons. Click the command that indicates how you want to arrange the icons (by Name, by Type, and so on).

5 0
3 years ago
write a command-line program which prompts the user for a series of decimal integer values separated by spaces. display each dec
zepelin [54]

A number expressed by 0s and 1s is referred to as a binary literal (binary digits). Integral types (byte, short, int, and long) can be expressed in Java using a binary number system.

The integral value might be prefixed with 0b or 0B to specify a binary literal. By constantly dividing the supplied number by 2 until we receive 0 as the quotient, we can convert a decimal number to a binary number in the simplest way possible. The binary value of the specified decimal number is then obtained by writing the remainders in reverse order. Any of the digits 0 through 9 can be found in a decimal integer literal. The octal integer literal, as opposed to the decimal integer literal, is used to interpret integer literals that start with the number 0.

Learn more about binary here-

brainly.com/question/19802955

#SPJ4

5 0
1 year ago
Consider a smart array that automatically expands on demand. (Like the java.util.ArrayList.) It starts with some given initial c
elena-14-01-66 [18.8K]

Answer:

Total unit of work required is 1019 units.

Solution:

As per the question:

Initial capacity = 100

On each expansion 50 is added to the present capacity.

Now,

Work done required in addition  of 1000 items = 1000 unit

No. of times there is a need for the allocation of a new Array is given by:

n = \frac{1000 - 100}{50} = 18

We know that:

On addition of 101th element it expands from 100 to 150

On addition of 151st element it expands from 150 to 200 and so on till

On addition of 951st element it expands from 950 to 1000

Now,

For an array of 100 size - 1 for initial allocation.

Therefore, total work done is  given by:

W = 1000 + \frac{1000 - 100}{50} + 1 = 1019\ units

4 0
4 years ago
In the box provided below, write a for loop that adds the numbers in this sequence: 10,12,14,16,18, and stores the total in an i
pantera1 [17]
Int sum=0;
for(int num=10; num<=18; num+=2) {
   sum += num;
}
4 0
3 years ago
How is a flow chart used?what are some advantages and disadvantages to using one for software
Mars2501 [29]

Answer: See explanation

Explanation:

A flowchart simply means the representation of a computer program in graphics. In flowchart, the relationship in the program are been defined by using geometric symbols like arrows, oval shapes and rectangle.

Advantages of flowchart include cost reduction, faster and easier way of communication, it also facilitates troubleshooting and helps in the promotion of logical accuracy.

Disadvantages include the fact it is expensive and also because it is not easy to manage.

7 0
3 years ago
Other questions:
  • As you explore career options why is it important to take personal inventory is and assessments
    13·2 answers
  • 30 points!! What should I do if I plug my computer in and it starts making noises and sounds and it starts smelling.
    9·1 answer
  • You are connected to a server on the Internet and you click a link on the server and receive a time-out message. What layer coul
    12·1 answer
  • arlos, an algebra teacher, is creating a series of PowerPoint presentations to use during class lectures. After writing, formatt
    12·2 answers
  • On an unweighted scale, a grade of A is worth _____ points
    7·1 answer
  • A security manager has discovered that sensitive information stored on a server has been compromised. The organization is requir
    7·1 answer
  • customer seeks to buy a new computer for private use at home. The customer primarily needs the computer to use the Microsoft Pow
    5·1 answer
  • Time
    6·1 answer
  • Lập trình web truy vấn csdl và hienr thị ra màn hình danh sách các bản ghi
    15·1 answer
  • What are the two main types of citing information?
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!