Loading...
int x = (int) 32.8; is an example of __________ typecasting.
Write the value of n after execution: char ch ='d'; int n = ch + 5;
String s1 = "45.50"; String s2 = "54.50"; double d1=Double.parseDouble(s1); double d2=Double.parseDouble(s2); int x= (int)(d1+d2); What is value of x?
System.out.println('Z'+32); will display:
The output of the statement: System.out.println(Character.toUpperCase(‘b’) + 2); is:
Define a class to overload the method format as follows: void format (): To print the following pattern using Nested for loops only: 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5 int format (String s): To calculate and return the sum of ASCII codes of each character of the String. Example: CAB Output: 67 + 65 + 66 198 void format (int n): To calculate and display the sum of natural numbers up to n given by the formula. n(n + 1) / 2
© 2026 PadhAiPro. This question is provided for educational purposes.