File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes JQplus Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "JQplus" Watch "JQplus" New topic
Author

JQplus

shabbir zakir
Ranch Hand

Joined: Nov 12, 2000
Posts: 183
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

Joined: Sep 23, 2000
Posts: 3287
    
    7
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


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
 
wood burning stoves
 
subject: JQplus