Computer Applications
Predict the output of the following code snippet:
String a = "20";
String b = "23";
int p = Integer.parseInt(a);
int q = Integer.parseInt(b);
System.out.print(a + "*" + b);
Related Questions
Write the output of the following String methods:
(a) "ARTIFICIAL".indexOf('I')
(b) "DOG and PUPPY".trim().length()
Name any two jump statements.
When there is no explicit initialization, what are the default values set for variables in the following cases?
(a) Integer variable
(b) String variable
int P[ ] = {12, 14, 16, 18};
int Q[ ] = {20, 22, 24};Place all elements of P array and Q array in the array R one after the other.
(a) What will be the size of array R[ ] ?
(b) Write index position of first and last element?