Home / Programming MCQs / JAVA MCQs / Question
R
Q. What does this Java code snippet prints?
int b=45; String str=""; while(b > 0) { str = str + b%2; b = b/2; } StringBuilder sb = new StringBuilder(str); sb.reverse(); System.out.println(sb.toString());
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What is the output of the following?
What is the output of this program?
Which of these method of class StringBuffer is used to reverse sequence of characters?
What are the advantages of Method Overriding in Java?
Identify the return type of a method that does not return any value.
What will be the output of the following code
Iterator returned by ConcurrentSkipListMap on key, value and entry is?
Discusssion
Login to discuss.