InterviewSolution
Saved Bookmarks
| 1. |
What Is The Output Of This Program? 1. Class Output { 2. Public Static Void Main(string Args[]) { 3. Double X = 102; 4. Double Y = 5; 5. Double Z = Math.ieeeremainder(x, Y); 6. System.out.print(z);} 7. } 8. } |
|
Answer» IEEEremainder() returns the REMAINDER of dividend / devisor. Here dividend is 102 and devisor is 5 therefore remainder is 2. It is similar to MODULUS – ‘%’ operator of C/C++ LANGUAGE. $ javac Output.java IEEEremainder() returns the remainder of dividend / devisor. Here dividend is 102 and devisor is 5 therefore remainder is 2. It is similar to modulus – ‘%’ operator of C/C++ language. Output: $ javac Output.java |
|