Computer Applications
What will be the output of the following statement?
String s = "JavaProgramming";
System.out.println(s.substring(4, 11).toUpperCase());
- Programm
- PROGRAMM
- PROGRAM
- program
Related Questions
Typecasting is often necessary when dealing with financial data. Identify the correct syntax to typecast a double to an int using the variables:
int amount; double valueINR- int amount = valueINR;
- int amount = Integer.parseInt (valueINR);
- int amount = (int) valueINR;
- int amount = int (valueINR);
What is the output of the code snippet given below?
int lives = 5; System.out.print(lives--); System.out.print(lives);- 4 3
- 5 4
- 5 3
- 4 4
Which of the following access specifiers will make a member accessible only within its own class?
- public
- private
- protected
- default
What will be the output of the following Java method?
Character.isLetterOrDigit('\n')- 1
- 0
- true
- false