Exforsys

Online Training

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 Tutorials forums, part of the Articles and Tutorials category; Hi all, I am a new member to this group.Let me start with my doubts... 1) If I am ...


Go Back   Exforsys > Articles and Tutorials > Java Tutorials

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-29-2004, 01:29 PM
Junior Member
 
Join Date: Jul 2004
Posts: 7
banuchithrak
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-30-2004, 02:44 AM
akpraveen
Guest
 
Posts: n/a
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.

Quote:
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-30-2004, 05:00 AM
Senior Member
 
Join Date: Nov 2004
Posts: 132
Vasu
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-30-2004, 08:58 AM
Junior Member
 
Join Date: Jul 2004
Posts: 7
banuchithrak
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.