Question
Which is the predefined method available in Java to convert decimal to binary numbers?
Answer: Option D
Was this answer helpful ?
The method toBinaryString() takes an integer argument and is defined in java.lang package. Usage is java.lang.Integer.toBinaryString(int) this returns the string representation of the unsigned integer value.
Was this answer helpful ?
Submit Solution