πŸ“Š JAVA
Q. What will be the output of the following Java code?
class binary
{
public static void main(String args[])
{
int num = 17;
System.out.print(Integer.toBinaryString(num));
}
}
  • (A) 1001
  • (B) 10011
  • (C) 11011
  • (D) 10001
πŸ’¬ Discuss
βœ… Correct Answer: (D) 10001

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
111
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Neelam Mittal
Publisher
πŸ“ˆ
89%
Success Rate