Home / Programming MCQs / JAVA MCQs / Question
K
Q. What is the output of the following code snippet?
String s1 = “Hello”; System.out.println(sA)endsWith(“lo”));
The endsWith method in Java checks whether a string ends with a specified substring. In this case, sA)endsWith(“lo”) returns true because the string “Hello” ends with “lo”.
You must be Logged in to update hint/solution
What will be the output of the following code
What code would you use to construct a 24-point bold serif font?
“request” is instance of which one of the following classes?
What will be the output of the following code –
What is the range of data type byte in Java?
The JDBC architecture consists of _____________ to access a database.
_________ classes cannot be instantiated
Which of these operators can skip evaluating right hand operand?
Which of these methods can be used to output a string in an applet?
Which of these is returned by “greater than”, “less than” and “equal to” operators?
Discusssion
Login to discuss.