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
Be the first to start discuss.
Q. What is the result of the expression 3 << 2 in Java?
Q. TCP,FTP,Telnet,SMTP are example of?
Q. Choose a correct statement about Type Casting using Wrapper class objects in Java?
Q. Which keyword is used to inherit class?
Q. What type of servlets use these methods doGet(), doPost(),doHead, doDelete(), doTrace()?
Discusssion
Login to discuss.