MCQOPTIONS
Bookmark
Saved Bookmarks
→
Accenture
→
Aptitude & Logical - Accenture
→
Which is valid declaration of a float?
1.
Which is valid declaration of a float?
A.
float f = 1F;
B.
float f = 1.0;
C.
float f = "1";
D.
float f = 1.0d;
Answer» B. float f = 1.0;
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Assume the following method is properly synchronized and called from a thread A on an object B: wait(2000); After calling this method, when will the thread A become a candidate to get another turn at the CPU?
Which will contain the body of the thread?
Which method must be defined by a class implementing the java.lang.Runnable interface?
Which of the following will directly stop the execution of a Thread?
Which cannot directly cause a thread to stop executing?
What is the name of the method used to start a thread execution?
What is the numerical range of char?
Which is valid declaration of a float?
Which collection class allows you to access its elements by associating a key with an element's value, and provides synchronization?
Which collection class allows you to associate its elements with key values, and allows you to retrieve objects in FIFO (first-in, first-out) sequence?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies