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 of the following does NOT execute even once?
1 week ago | [YT] | 13
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.*;
3 weeks ago | [YT] | 8
View 1 reply
Knowledge Circle
Choose the most appropriate option -
The number of students ______ fifty.
1 month 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:
1 month 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?
2 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
3 months ago | [YT] | 4
View 6 replies
Knowledge Circle
Which the following can't be obtained from method signature?
3 months ago | [YT] | 9
View 4 replies
Knowledge Circle
A method that reverses the given number is ____ method.
3 months ago | [YT] | 8
View 2 replies
Knowledge Circle
Which of the following Java statement assigns 250 to last element of a 4×4 array?
3 months ago | [YT] | 11
View 2 replies
Load more