1. Which of the following would compile without error?





Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 02 Jun 2017 01.26 am
    The return value of the Math.abs() method is always the same as the type of the parameter passed into that method. In the case of A, an integer is passed in and so the result is also an integer which is fine for assignment to "int a". The values used in B, C & D respectively are a double, a float and a long. The compiler will complain about a possible loss of precision if we try to assign the results to an "int".
Show Similar Question And Answers
QA->Compile (v)....
QA->Name the type of illustration which contains only solid areas of black or any process color without tints which can be reproduced without half toning ?....
QA->He was (a)/ punished severely (b)/ on sleeping (c)/ in the class (d) Spot the portion which carries error....
QA->A photo sensitive material would emit electrons, if excited by photons beyond a threshold. To overcome the threshold, one would increase?....
QA->If a man sell his horse for Rs. 450, he would lose 25%. For what price he would sell his horse if he has to get 15% gain?....
MCQ->Which of the following would compile without error?....
MCQ->In the following question, some part of the sentence may have errors. Find out which part of the sentence has an error and select the appropriate option. If a sentence is free from error, select 'No Error'. Were I the President(A)/ I would award(B)/ you a title.(C)/ No error(D)....
MCQ->Which one of the following is correct about the statements given below? All function calls are resolved at compile-time in Procedure Oriented Programming. All function calls are resolved at compile-time in OOPS.....
MCQ->In the following question, some part of the sentence may have errors. Find out which part of the sentence has an error and select the appropriate option. If a sentence is free from error, select 'No Error'. The receptionist gave us (A)/ much informations (B)/ which we needed. (C)/ No Error (D)....
MCQ->Pick out thể one word for - a secret arrangement....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution