answersLogoWhite

0


Best Answer

In that case, unless you specifically convert ("cast") at least one of the numbers to a double or float, the result will also be an integer. Example:

1 / 3 = 0

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What happens when java program attempts to divide one integer by another?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the code of a c program that will read in a positive integer value and determine If the integer is a prime number and If the integer is a Fibonacci number?

see the program


Write a program to subtract integer y from integer x?

x -=y;


Is -5 a integer?

1 hour ago my c program said no, but now I know 5 actually is an integer!


What happens when you ntry to run amother program when disk defragmentor is running?

just bring to bottom, and go to another program, when defrag. is on, click on --


What is a Utility program that attempts to locate a file on your computer?

Search


What is an access violation?

An access violation is another name in computing for a segmentation fault, a software error which occurs when a program attempts to access a memory location which it is not permitted to access.


How do you deal with the error a required file is broken on nxt Lego mindstorm?

That happens when a myblock is missing. If you are downloading programs from nxtlog you will need to make a my block of another program which is part of the big program. You can only use the program if the maker gives you a program for the myblock.


What does the ComboFix program do?

ComboFix is a program that scans a computer for malware or other malicious programs such as spyware and attempts to clean them up automatically. It seems to be a reputable program with decent ratings.


What happens to tron light cycles when they hit a light wall?

they are derezzed when they hit their own light trail or another program/users trail


Wrie a program to receive an integer and find its octal equivalant?

Use %o


What happens if the static modifier is removed from the signature of the main program in java?

Actually speaking nothing major happens. That method would become just another method in the class. You cannot use that as the method to begin the program execution in your class. Your class will not be a standalone java program and you cannot execute it like you did before using the public static void main() method.


How would you write a program that read an integer for display each of digit of integer in English?

Use an enum if you are using a c style language. Or a map data structure. Assign each integer an English value and then match it to what the user inputs.