Advertisements
Advertisements
Question
Write the return data type of the following function:
log( )
Advertisements
Solution
double
APPEARS IN
RELATED QUESTIONS
Write the memory capacity (storage size) of short and float data type in bytes.
Differentiate between if else if and switch-case statements.
State the number of bytes occupied by char and int data types.
What is the data type returned by the library function?
compareTo()
Predict the output of the following code snippet: String P = "20", Q = "22";
int a = Integer.parseInt(P);
int b = Integer.value0f(Q);
System.out.println(a + " " + b);
Give the output of the following Character class method:
Character.toUpperCase('a')Write the value of n after execution:
char ch = 'd';
int n = ch + 5;What is the method to check whether a character is a letter or digit?
The method to convert a lowercase character to uppercase is ______.
Predict the output of the following code snippet:
char ch='B';
char chr=Character.toLowerCase(ch);
int n=(int)chr-10;
System.out.println((char)n+"\t"+chr);
