How is rounding performed under integer division?
Answers were Sorted based on User's Feedback
Answer / divya
the fractional part of the result is truncated .this is
known as rounding toward zero.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / satya
We can use java.lang.Math.ceil() and java.lang.Math.floor()
methodes in order for rounding numbers.
Is This Answer Correct ? | 1 Yes | 1 No |
84. try { 85. ResourceConnection con = resourceFactory.getConnection(); 86. Results r = con.query(”GET INFO FROM CUSTOMER”); 87. info = r.getData(); 88. con.close(); 89. } catch (ResourceException re) { 90. errorLog.write(re.getMessage()); 91. } 92. return info; Which is true if a ResourceException is thrown on line 86? 1 Line 92 will not execute. 2 The connection will not be retrieved in line 85. 3 The resource connection will not be closed on line 88. 4 The enclosing method will throw an exception to its caller.
Explain the protected field modifier?
What is the order of method invocation in an Applet?
what is a package?
Describe different states of a thread.
What is mean by collections in java?
how cani read a command line argument?(usingfile object).
Define "Access specifiers" in java.
Is null a value?
What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } } 10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } }
Where pragma is used?
wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA