• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JQplus

 
shabbir zakir
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quetion Id: 953841239150
What will be the output of the following program?
public class SubStringTest
{
public static void main(String args[])
{
String String = "string is a string";
System.out.println(String.substring(3,6));
}
}
1)it will not compile.
2)ing is
3) 'ing isa'
4) 'ing'
5) None of the above
the answer given is 5 when the answer is 4.
Q.2)Is questions regarding applets are going to come in the exam. if No then why in JQplus questions about applets are asked ?
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3776
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The given answer is correct. You have not typed choice 4 exactly as given. There is a space after g. In actual exam also you should read all the options very carefully. Some questions are very simple but still require attention.
You probably did not look at the general comments for the question about applet. It says that although Applet is not in the list of objectives we have still included a simple question on it just to make sure that user gets an idea.
HTH,
Paul.
------------------
Get Certified, Guaranteed!
(Now Revised for the new Pattern)
www.enthuware.com/jqplus
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic