Jan 23, 2014

Servlets & JSP Interview Questions & Answers PDF Format

Here you can find the popular/regular interview question and Answers on java Servlets & JSP .
These Question & Answers  will help you through the technical round of java in any organization.

Question and Answers are in .pdf format ,You can 
  • Download pdf file  
  • View it in full screen mode for reading on the screen.
  • Search for particular topic using search input box below the screen.
JSP Question & Answers.pdf



If are experiencing any problem in viewing the above Servlet's Q&A in PDF view please click here:Download PDF

Jan 19, 2014

Core java interview Questions and Answers

Here you can find the popular/regular interview question and Answers on Core java.
These Question & Answers  will help you through the first technical round of java in any organization.

Question and Answers are in .pdf format ,You can down load pdf file  or view full screen mode for reading on the scree.you can search for particular topic using search input box below the screen.


Core Java Interview Question and Answers.pdf

If you are unable to view the above message please click here to download: Download PDF Here

More Questions and Answers continues...

core java question & answers 2



If you are unable to view the above message please click here to download: Download PDF Here

More Questions and Answers continues...

core java interview questions & answers 3



If you are unable to view the above message please click here to download: Download PDF Here

More Questions and Answers continues...

core java questions & answers 04


 If you are unable to view the above message please click here to download: Download PDF Here

Jan 18, 2014

Dividing list of objects into sub lists

Some times we may need to break down the list of objects/primitives from a master/parent list and create objects/primitives sub lists.

Say, we have a list of 2000 employee numbers , and we would like to divide them into 20 sub lists of 200 employee numbers each. then the following method comes handy. it's a kind of utility method.

   /**
    * @param parentList
    * @param childListSize
    * @return
    */

    List<List<Integer>> createSubLists(List<Integer> parentList,
           int childListSize) {
        List<List<Integer>>listOfSublists = new ArrayList<List<Integer>>();
      
       int parentListSize = parentList.size();
       System.out.println("Size of the parent list:["+parentListSize+"]");
       for(int parentIndex = 0; parentIndex < parentListSize;){
           List<Integer> tempChildList = new ArrayList<Integer> ();
           for(int childIndex = 0; childIndex < childListSize ; childIndex++ ){
               if(parentIndex >= parentListSize){
                   break;
               }
               tempChildList.add(parentList.get(parentIndex++));
           }
           listOfSublists.add(tempChildList);
       }
       return listOfSublists;
   }



Execution:

Input :

parentList : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]
childListSize : 5

Output:

Size of the parent list:[30]
sub list size desired : 5
Number of sub lists divided : 6
 

List 1: [1,2,3,4,5]
List 2: [6,7,8,9,10]
List 3: [11,12,13,14,15]
List 4: [16,17,18,19, 20]
List 5: [21,22,23,24,25]
List 6: [26,27,28,29,30]


we can use this method for other data types also by making the list as generic.

Jun 14, 2013

Oracle SOA Suite 11g Certification Details

Oracle SOA Suite 11g Essentials

  • Exam Number: 1Z0-478
  • Associated Certifications: Oracle SOA Suite 11g Certified Implementation Specialist.
  • Exam Product Version: SOA Suite,
  • Exam Price: US$ 245 (More on exam pricing)
  • Duration: 120 minutes
  • Number of Questions: 73
  • Passing Score: 60% View passing score policy
  • Format: Multiple Choice

To Register Please Click here: Register



Certification Ownership Policy

Individual candidates are certified when the prerequisite requirements are met. The certification is valid and associated with an individual, and not a specific company.

Certification Validity Policy

Once a candidate achieves a certification, this certification does not expire or retire. The certification path, or the exam(s) that lead to this certification may retire, but the certification remains valid at the level and version obtained by the candidate. This includes certifications granted by companies acquired by Oracle. Any certification granted prior to the acquisition remains a valid certification. Not all certifications will be supported or maintained, but will remain valid certifications.

Exam Scoring Policy

Exam Passing Scores:
Oracle routinely publishes new versions of its Oracle Certification exams. The passing score for each exam version is set independently to maintain a consistent scoring standard across versions. For example, to maintain a consistent standard for success, a new version of an exam which contains more difficult questions than the prior version will be assigned a somewhat lower required passing score. For this reason, passing scores may vary between different exams in your certification track, and between later and earlier versions of the same exam.

Oracle does not recommend an exam preparation strategy targeting the passing score, as passing scores are subject to change without notice.

Scored and Unscored Questions:
Your exam may contain unscored questions in addition to the scored questions, so the total number of questions that are presented to you may be greater than the number shown on the exam page. This is standard testing practice. You will not know which questions are unscored. If your exam contains unscored questions, the time allowed for the exam takes into consideration the time you will need to answer all questions and review your work. Your exam results will reflect your performance on the scored questions only.

Study Guide For SOA Exam:

soasuite11g-Study-Guide





Frequently Asked Questions on SOA exam:

SOA 11g-FAQ.pdf

Jan 27, 2013

SCJP / OCP JP Ceritificaton PRogram Information

Hyderabad Sun Learning Centre
 
# 204 B, 2nd Floor, Surekha Chambers
Opp: VIP Showroom
Near Lal Bunglow
Ameerpet, Hyderabad -500-016
Contact: Mr Stanley
Phone: +91 99595 39947
Email: stanley@rpssoft.com, sunil@rpssoft.com


The approximate cost of taking the exam is:  7500

SCJP 6.0 Certification Exam

Exam Info

Exam number CX-310-065
Prerequisites None
Exam type Multiple choice and drag and drop
Number of questions 72
Passing score 65% (47 of 72 questions)
Time limit 210 minutes

Delivered at Authorized Worldwide Prometric Testing Centers
*As per the day of this article.
  • Exam Number - CX-310-065
  • Prerequisites - None
  • Type of Questions - The type of questions asked in the exam are multiple-choice(single response and multiple response), and drag-n-drop. Again, if a multiple-choice question has more than one correct choice, it is explicitly stated in the question.
  • Time - The time allowed to complete this exam is 210 minutes, which is sufficient. You are allowed to go back to earlier questions during the exam, but take care that you are able to review only the marked questions, once all questions are filled in.
  • Passing % - You need to obtain at least 65% to be successful. The exam asks you 72 questions and you need to correctly answer at least 47. Note: sometimes one additional question is added for testing purposes. This additional question is not used for the passing score.
  • Cost - US $ 300 (or locally priced)
  • Related exams - Sun Certified Programmer for the Java Platform, Standard Edition 6 Upgrade Exam (CX-310-066) for candidates who have already successfully certified on a previous version of SCJP.

Useful Resources


    Mock Exams - Fulfill the need to practice for the exam.

    http://www.jchq.net/mockexams/exam1.htm
    http://www.javacertificationexams.com/scjp-mock-exams.php

Tips and Tricks

  • Try to get a group together to study with, it makes it easier.
  • As you progress through your study you will begin to get a ‘feeling’ for what the question is asking.
  • Read, practice, sit practice exams and discuss with colleagues over and over again.
  • If you buy a certification book (recommended) be prepared to read your chosen study book 3 times.
  • In the Drag and Drop type questions, the answer gets reset if you try to review it. So, always complete and double check your answer before moving away from a Drag and Drop question.
  • It would be helpful to solve Drag and Drop questions on a sheet of paper before actually attempting them in the test.
  • The revised exam has more performance-based questions than knowledge-based questions requiring memorization of API details. So spend more time on hands-on practice, especially of commonly used methods, and avoid trying to memorize each and every API detail simply by reading.
  • Be clear about the classes implementing the Collection types like List, Set, and Map. Be aware of which of these types support sorting, which allow duplicates, which give the best performance, and so on.
  • Remember that immutable string objects are returned by the String class. StringBuilder and StringBufffer both return mutable strings; the only difference between them is that StringBuffer is thread-safe, while the other is not.
  • When you see the usage of varargs in a method, ensure that the ellipsis is appearing as the last argument to the method.
  • Remember that the super type of generic Collection objects is Collection and not Collection .
  • Remember that since the wildcard (?) stands for an unknown type, you cannot add to generic types using wildcards.
  • Know the distinction between Comparable and Comparator and the methods defined by these interfaces.
  • Ask your employer to pay for the exam. They may pay or reimburse you if you pass the exam?
     Whizlbs ***
 http://www.whizlabs.com/scjp/scjp.html

Nov 22, 2012

Classpath settings in java


Notes on changing CLASSPATH

If you are using an IDE, the IDE might be doing the work of setting up your CLASSPATH, so you might not have had to deal with it.
The CLASSPATH is an environment variable.  The exact method of setting and changing it is system dependent.  In Windows 98, it gets set in your autoexec.bat using a line of the form
SET CLASSPATH=dir1;dir2;dir2;dir4
In Windows/NT, you can set the CLASSPATH from the control panel's System panel.  In Unix, you would normally set it from your profile (e.g. .profile or .cshrc file.)  If you are not sure, ask someone familiar with your operating system regarding the method of setting or changing it.  An example of an autoexec.bat line to set classpath is
SET CLASSPATH=C:\MyJspClasses;C:\ThirdPartyClasses
or even just
SET CLASSPATH=C:\MyJspClasses
The value of the classpath is one or more entries separated by the semi-colon character.   Each element is the path of a directory (folder) or the path of a .jar file.  Whether the element is a directory or a .jar file, it contains class files (with the .class extension.)  These class files get loaded by the Java interpreter and utilities.
You may not have a classpath (specially if you are using JDK 1.3,) in which case you can add one.by adding a line to your autoexec.bat or profile file, or by adding a new environment variable from your Windows NT control panel's "System" panel.
If you already have a classpath, you can insert a new directory into it.
Let us suppose you have modified your classpath and added the path C:\MyJspClasses to it, and have created the C:\MyJspClasses directory.  (On Windows 98, you would also need to re-boot your PC so the class path is in effect.  On NT, you would need to start a new command window so the new class path is picked up.  On Unix, logging in again will activate the changed profile.)
Then you can compile your bean's java file by using the command
    javac -d C:\MyJspClasses UserData.java
which will create the UserData.class file directly into C:\MyJspClasses (and would also have created any necessary directory structure if the class were in a package.)
If you had to change your classpath, typically you will also need to stop and restart your web-server so it can pick up the new classpath.

Oct 17, 2012

know about your JSP and Servlet Versions

It's always better to know what version of servlet container we are using and which version of JSP is compatible with that. To know the version of servlet containr and JSP versions , you can use the following lines in JSP.
Servlet Engine: <%=session.getServletContext().getMajorVersion()%>.<%=session.getServletContext().getMinorVersion()%>

JSP Engine: <%=JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion()%>

Application Server: <%=application.getServerInfo()%>
(OR)
Server info: <%= application.getServerInfo() %>
 
Servlet version: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %>
 
JSP version: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %>
 
Java version: <%= System.getProperty("java.version") %>
The actually used Servlet API version is to be found in the web.xml root declaration.

 The JSP version usually goes hand in hand with the servlet version as follows:
  • Servlet 2.5 uses JSP 2.1
  • Servlet 2.4 uses JSP 2.0
  • Servlet 2.3 uses JSP 1.2
  • Servlet 2.2 uses JSP 1.1
  • Servlet 2.1 uses JSP 1.0  

Main Differences Between SVN and Git