Exforsys
+ Reply to Thread
Results 1 to 4 of 4

About Tomcat and Appended Strs vs Array of Strs

This is a discussion on About Tomcat and Appended Strs vs Array of Strs within the Java forums, part of the Programming Talk category; Hi all, I am a new member to this group.Let me start with my doubts... 1) If I am a ...

  1. #1
    banuchithrak is offline Junior Member Array
    Join Date
    Jul 2004
    Answers
    7

    About Tomcat and Appended Strs vs Array of Strs

    Hi all,
    I am a new member to this group.Let me start with my doubts...

    1) If I am a 1 year experienced person ( in Java,Servlets and JSP with Apache Tomcat ) , what will an interviiewer expect from me? Especially what should I know about Tomcat? I am going to start learning now only. I know that there is a server.xml file where we change the port number and add our context. And that there is a web.xml file for each context. Besides this I know almost nothing. So to startwith, what should I be knowing about Tomcat?

    2)I have been having this doubt for some time now. May be I should have searched extensively on Google....

    When I have to pass a number of Strings to a method, which way will be better, sending as an array of Strings or appending all the Strings and retrieving the values by splitting the Strings inside the method?

    Which is better? Why?

    Thanks in advance.


  2. #2
    akpraveen Guest

    Re:About Tomcat and Appended Strs vs Array of Strs

    Welcome Ms.BanuChitraK to exforsys.com!

    Just grab the interview questions documentation from this Site to prepare yourself for the interview.

    Java -> Serialization, Threads, Collections apart from the basics

    Servlets -> doGet, doPost, Servlet Specification, URL Redirection,

    JSP -> Tags, Tag libraries !!

    Thats what comes off the top of my head now! There is more!

    As for Tomcat, I don\'t have much experience on Tomcat.

    When I have to pass a number of Strings to a method, which way will be better, sending as an array
    of Strings or appending all the Strings and retrieving the values by splitting the Strings inside
    the method?
    Are you passing it by value or are you passing it by reference? Arrays of primitive literals can be passed by value but Arrays of Objects (Such as Strings) can be passed only as reference! I would take the Array route though to answer your question, simply because if you were to pass the number of strings as one big string, you would have to use a stringtokenizer to break it and store it in a local array when you can simply use the array reference!


  3. #3
    Vasu is offline Member Array
    Join Date
    Nov 2004
    Answers
    36

    Re:About Tomcat and Appended Strs vs Array of Strs

    Hi banuchithrak,

    The following are the mostly repeated questions from the interviewer.

    Java:
    -Access modifiers and differences between them
    -Abstract class vs interface
    -HashMap vs HashTable
    -Vector vs ArrayList vs Array
    -Various ways of creating Thread
    -List vs Set vs Map
    -StringBuffer vs String
    -Overloading vs Overriding
    -final vs finally vs finalized
    -Syncronization concept
    -Thread life cycle
    -Applet life cycle

    JSP:
    JSP vs Servlet
    Custom tag definition and example
    jsp:include directive vs jsp:include action
    Implicit objects and difference bet. them
    jsp:usebean purpose and its scope attributes and diff. bet. them.

    Servlets:
    -Servlet Life Cycle
    -Session Tracking and various ways - HTTPSession, URL rewriting, etc and their methods.
    -Request Dispatcher and methods - include() and forward()
    -doGet() vs doPost()
    -sendRedirect() vs forward()

    When coming to Tomcat, just you need to know how you will deploy the jsp/servlets in Tomcat. And also configuration files like what you mentioned.

    You can find more interview questions @ Resouces->EFS Repository section.


  4. #4
    banuchithrak is offline Junior Member Array
    Join Date
    Jul 2004
    Answers
    7

    Re:About Tomcat and Appended Strs vs Array of Strs

    Thank you Mr.Praveen and Mr.Vasu
    Thanks a lot for your responses. Now I get an idea about it. And yes, I\'ll download the interview questions.Thanks.


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...