✏️ Explanatory Question

(a) Differentiate between if else if and switch-case statements

(b) Give the output of the following code:


String P = "20", Q ="19";
int a = Integer.parseInt(P);
int b = Integer.valueOf(Q);
System.out.println(a+""+b);

(c) What are the various types of errors in Java?

(d) State the data type and value of res after the following is executed:


char ch = '9';
res= Character.isDigit(ch);

(e) What is the difference between the linear search and the binary search technique?

👁 140 Views
📘 Detailed Answer
🟢 Easy
← Previous (a) Name any two basic principles of Object-oriented Programming. Answer Encapsulation Inheritance (b) Write a difference between unary and binary operator. (c) Name the keyword which: indicates that a method has no return type. makes the variable as a class variable (d) Write the memory capacity (storage size) of short and float data type in bytes. (e) Identify and name the following tokens:
💡

Answer with Explanation

Answer not available right now.

← Previous (a) Name any two basic principles of Object-oriented Programming. Answer Encapsulation Inheritance (b) Write a difference between unary and binary operator. (c) Name the keyword which: indicates that a method has no return type. makes the variable as a class variable (d) Write the memory capacity (storage size) of short and float data type in bytes. (e) Identify and name the following tokens: