Assertion(A): To accept an integer, the Java statement is written as: int n=sc.nextInt(); Reason(R): It is mandatory to include the package in a program as: import java.util.*;
Consider the following statement- final int pi=3.14; Which of the following statements are valid for pi? A) Its value can be changed. B) Once initialized, the value remains constant. C) Final values are need not to be initialized
Knowledge Circle
Which loop is preferred for binary search?
1 week ago | [YT] | 8
View 1 reply
Knowledge Circle
Consider the expression: int x = 5; int y = ++x + x++;. What will be the final value of y?
2 weeks ago | [YT] | 11
View 7 replies
Knowledge Circle
2 weeks ago | [YT] | 20
View 11 replies
Knowledge Circle
Which of the following does NOT execute even once?
4 weeks ago | [YT] | 14
View 2 replies
Knowledge Circle
Assertion(A): To accept an integer, the Java statement is written as:
int n=sc.nextInt();
Reason(R): It is mandatory to include the package in a program as:
import java.util.*;
1 month ago | [YT] | 7
View 1 reply
Knowledge Circle
Choose the most appropriate option -
The number of students ______ fifty.
2 months ago | [YT] | 7
View 5 replies
Knowledge Circle
The correct statement invoke the method perform which accepts an integer and character and returns double value is:
2 months ago | [YT] | 12
View 2 replies
Knowledge Circle
Which planet is known as morning or evening star?
2 months ago | [YT] | 7
View 2 replies
Knowledge Circle
What is the type of error, if any, when two methods have the same signature?
3 months ago | [YT] | 5
View 8 replies
Knowledge Circle
Consider the following statement- final int pi=3.14;
Which of the following statements are valid for pi?
A) Its value can be changed.
B) Once initialized, the value remains constant.
C) Final values are need not to be initialized
4 months ago | [YT] | 4
View 6 replies
Load more