Live Interview Stream #1
Company IFlex
Date 14/10/2006
Mode Telephonic
Duration 35 minutes
Contributed By Satya Narayanan
Candidate's Profile 4+ Years of Exp in Java and J2EE







Interviewer : I am Ganesh calling from IFlex. There is an interviewed scheduled with you.
Interviewee : Yea Ganesh. Good Morning.

Interviewer : Good Morning Satya. Can we have the interview now?
Interviewee : Yea Pls go ahead.

Interviewer : Ok. Tell me about yourself.
Interviewee : I am Satya working for HCL. I have been working here for the past 2 years. I did my graduation and post graduation in Loyola. I am a Sun certified Java Programmer. I have mostly worked on financial domain related projects. I am married and have a small baby boy.

Interviewer : Can you tell me more about your current roles and responsibilties.
Interviewee : My role is that of a senior software engineer. Most part of job responsibilities involves coding and related actvities.

Interviewer : Can you explain the architecture of your current project.
Interviewee : ......explained the architecture....

Interviewer : Don't you use DAO's?
Interviewee : Yes we do use. There is a small java layer called Helpers which act's as DAO.

Interviewer : Are you familiar with Design patterns?
Interviewee : I have not formally gone through design pattern's but i am comfortable at whatever pattern's we are using.

Interviewer : Ok. Can you name few pattern's that you are familiar with.
Interviewee : Singleton, ServiceLocator, ControllerServlets, Session facade, Transfer Object, hmmm..

Interviewer : Can you explain about Singleton?
Interviewee : Singleton..Whenever there is a requirement to create only one object for the whole JVM, we go in for singleton's. Basically this is like where we have some configuration data which is not going to change frequently and required across the whole application then we create a single object at start up.

Interviewer : So how will you acheive this?
Interviewee : Basically a singleton's constructor should be declared as private. There should be factory method which will return the instance of the class. The factory method should be sychronised and static. In the method, we should check if an instance of the class already exists. If not we should create the object and return the instance.

Interviewer : How is the data transfered between the client and the server?
Interviewee : We have something called TravelingObject which actually is a Transfer Object. We construct this and send it across to the server.

Interviewer : Whats the properties of a Transfer Object?
Interviewee : It should be able transferable over network ie it should be serialized. Ideally it shoudn't have any getter or setter methods.

Interviewer : Can you explain on how Applet to Servlet Communication happen?
Interviewee : First we have to create an instance of URL by passing the server url. Then we have to create instance of URLConnection by invoking openConnection on URL instance. Set the required properties on the url connection. get the outputstream of the url connection then write the data.

Interviewer : ok. How do you handle Applet security?
Interviewee : Most part of the applet security is handled by using java.security and java.policy files.

Interviewer : Have you worked on JSP's?
Interviewee : No not much. But i know.

Interviewer : What database are you using?
Interviewee : DB2

Interviewer : Which version?
Interviewee : 8.1

Interviewer : How do you rate yourself in core Java?
Interviewee : 7

Interviewer : Can you explain about exception handling?
Interviewee : Exception Handling means we need to have try catch finally block. Exception Handling should be part and parcel of a decent code.

Interviewer : I am asking about Exceptions hierarchy..
Interviewee : Throwable is the base class. Exception is the immediate subclass. There are 2 types of exceptions.. checked and unchecked..

Interviewer : Do we need to handle Errors?
Interviewee : Error's need not be handled. Error's are thrown when there is something critically wrong. Basically, it's well enough to handle exception's alone.

Interviewer : There is a Class A and a method called a1. And there is another class called B which extends A. There is method a1 in class B. Is there any on restrictions on a1 method class B?
Interviewee : Class B is actually overriding the method a1 of class A. Hence method signature and return type should be same as a1 in A. The exceptions thrown should also be the same or subclasses of the thrown exception in the base class method.

Interviewer : How will you make a class immutable. We know String's are immutable. How to achieve this for your own class?
Interviewee : I haven't thought on these lines. But i think it should be achieved using singleton's. I am not really sure.

Interviewer : What classes have you used in collection framework?
Interviewee : Vector, Hashmap,Hashtable,etc

Interviewer : Whats the difference between Enumeration and a Iterator?
Interviewee : Both allow us to iterate through a collection but Iterator allows us to remove a element from the operating collection whereas Enumeration doesn't.

Interviewer : Can we define an interface inside a class?
Interviewee : I am not really sure.

Interviewer : Ok. Can we define a class inside a interface?
Interviewee : Interface provides abstraction and Classes provide concreteness. Both of the questions look twisty. May be these are possible. But I haven't tried these. I am not really sure.

Interviewer : Say i am using servlets as controllers and I want to enable or disable the encryption dynamically. How will you acheive this?
Interviewee : We have to use servlet filters.

Interviewer : What is the difference between forward and sendRedirect?
Interviewee : Both are actually used to transfer the request to a new url. forward is used to send the request to new within the same web container whereas redirect is used to send the request to a new web server. With sendRedirect the call will reoriginate from client browser.

Interviewer : How do you handle transaction's in jdbc.
Interviewee : using begin and commit methods.

Interviewer : I want to open connection to Oracle and SQL Server in the same method? Will this be possible?
Interviewee : I haven't tried but it should work.

Interviewer : Can you explain it?
Interviewee : When we want to open a connection, we load the drivers and pass the db type and other relavant information. Hence there will two connection objects and it should work.

Interviewer : Have you used CallableStatement?
Interviewee : No. I haven't.

Interviewer : How comfortable are you in EJB?
Interviewee : Yea i am good at it.

Interviewer : Whats the difference between local and remote interface?
Interviewee : Local interfaces are used when we dont want the bean to be distributable. Local Interfaces use "pass by reference" whereas Remote Interfaces communicate by "Pass by value".

Interviewer : What are home business methods?
Interviewee : Home business methods is a feature introduced in EJB2.0 which allows to define a business method in a home interface. These business methods are generally aggregate methods which are not specific to particular to a entity bean.

Interviewer : Can you give me an example for the same.
Interviewee : sum of all account balances is a good candidate for home business methods.

Interviewer : Ok Satya. I am through with my questions. Do have any questions to me?
Interviewee : When will i know the outcome of this interview.

Interviewer : You will be updated within 30 minutes by the HR team.
Interviewee : Thanks Ganesh.

Interviewer : Thanks Satya for your time.



Pls send in your feedback and contributions to vindesh.mohariya@gmail.com

© Copyright webapps 2007, All Rights Reserved.
Live Interview Stream #2 CYBERNET SOFTWARE INTERVIEW ON JAVA FOR FRESHER
Company Cybernet Software
Date 24/02/2007
Mode Direct
Duration 15 minutes
Contributed By Nalini
Candidate's Profile Fresher having Java,Servlets and JSP Knowledge







Interviewer : Good morning, I am Suresh.
Interviewee : Good morning sir.

Interviewer : Pls tell me about yourself.
Interviewee : I am Nalini. I did my engineering in computers from Jaya Engineering college. My native is tirupati and i did my schooling in native. I like gardening. My mother is a housewife and i have two elder sisters who are married and settled.

Interviewer : What does your father do?
Interviewee : He was businessman. He expired last year due to illness.

Interviewer : I am sorry.
Interviewee : Its ok sir.

Interviewer : Ok. why did you choose to learn Java?
Interviewee : I already knew the basics of C and C++. Java was a natural choice and few of my well wishers also advised me to study Java rather than .NET

Interviewer : Ok. What's the most important feature of Java?
Interviewee : Robustness.

Interviewer : It's one of the feature but Java is famous for something more important.
Interviewee : Platform Independence.

Interviewer : Yea. You are right. Ok tell me what do you mean by platform independence.
Interviewee : Platform independence means that the executable class file compiled in one operating system can run in any other operating system.

Interviewer : Are C and C++ platform independent or dependent?
Interviewee : They are platform dependent. We have to re-compile for each of the operating system individually.

Interviewer : What is abstraction?
Interviewee : Abstraction is a feature where you define only the required characteristics. The concrete behaviour would be defined by the implementing class.

Interviewer : Can you explain it with an example?
Interviewee : Hmmm...No i am not able to think of anything.

Interviewer : Think of something in this room.
Interviewee : Ok. Room if defined as a class is abstract. It will have doors and windows which are generic characteristics for any type of room. The more concrete implementations would be a class room,meeting room,etc. A class room will have chairs and blackboard which are specific to class rooms.

Interviewer : Good. Hmmm... Do you know about garbage collection?
Interviewee : Yes.. Garbage collection is automatic in java. Memory will be freed if the object is not used for a long time.

Interviewer : What do you mean by long time? Is garbage collection time dependent?
Interviewee : No. if an object is not being used then it will be garbage collected.

Interviewer : What is overloading?
Interviewee : Two methods in the same class have same name but different parameter list.

Interviewer : How about return types in overloaded methods?
Interviewee : Return types should also be same.

Interviewer : If i change the return types alone, will that be overloaded?
Interviewee : I am not sure.

Interviewer : Can you tell me 2 runtime exceptions that you encountered while executing java code.
Interviewee : NullPointerException and ArrayIndexOutOfBoundsException

Interviewer : When does an Null pointer exception arise?
Interviewee : The object reference is not pointing to any object but we try to access it, then null pointer exception will arise.

Interviewer : What is recursion?
Interviewee : A method calling itself repeatedly until a condition is satisfied.

Interviewer : Can you write a program to calculate factorial using recursion.
Interviewee : I have written that code correctly...

Interviewer : What motivates you?
Interviewee : I am not really sure. If something is challenging, i put in my best.

Interviewer : Good . You have skill and attitude. Try to learn as much as possible in the intial 2 to 3 years.
Interviewee : Am i selected for the job.

Interviewer : Yes.
Interviewee : Thanks a lot sir.

Interviewer : Wait in the lobby. HR people will call you.
Interviewee : Sure sir. Thanks.



Pls send in your feedback and contributions to vindesh.mohariya@gmail.com

© Copyright webapps 2007, All Rights Reserved.
Live Interview Stream #3 ADP WILCO
Company ADP Wilco
Date 14/03/2007
Mode Direct
Duration 25 minutes
Contributed By Sukanya
Candidate's Profile 3+ Years of Exp in Java and J2EE







Interviewer : Hi, I am Kumar. Please take ur seat.
Interviewee : Thanks.

Interviewer : Yes Sukanya. Tell me about yourself.
Interviewee : I am Sukanya working in CTS. I have been working here for the past 2 years. I did my graduation in engineering at Andhra and post graduation in M.Tech in Chennai. While doing M.Tech Project final semester i have joined as a Trainee in Megasoft. Then i moved to CTS. I have mostly worked on financial domain related projects. I am married.

Interviewer : Can you tell me more about your day to day work in office?
Interviewee : Handling support related activities and any new change is coming taking care of that coding part

Interviewer : How many members are there in ur project?
Interviewee : 4 members

Interviewer : Can u explain how u will handle when new request comes?
Interviewee : Explained the change management process...

Interviewer : Can you rate ur self in java on a scale of 1 to 5?
Interviewee : 4

Interviewer : What is the difference between String and StringBuffer?
Interviewee : Strings are immutable i.e not changeable. StringBuffers are modifiable objects.

Interviewer : What do you mean by immutable?
Interviewee : Once a string object it cannot be changed till its destruction.

Interviewer : Can you explain the same with an example?
Interviewee : Say we define a new String Object: String str = "Hello"; Now say i try to modify it as follows: str = str + "World"; Now we have 3 objects in the JVM ie "Hello", "World" and "HelloWorld" are individual objects. str is the reference to "HelloWorld" object. Now instead of creating one object we created 3 objects. For the same thing if i have StringBuffer, it would have as follows: StringBuffer str = new StringBuffer("Hello"); str = str.append("World"); Here we have one Object and one reference. So it's good to use StringBuffer when manipulating with strings.

Interviewer : How do you compare objects of String and StringBuffer?
Interviewee : using equals method.

Interviewer : Will it work?
Interviewee : mmm....

Interviewer : Ok what is toString() method?
Interviewee : toString() method will usually represent the object's data in string format. And also it depends on the implementation of toString() by the Class.

Interviewer : Now can you think about the answer to my previous question?
Interviewee : I think string buffer has to be converted to string before comparing it with string using equals() method.

Interviewer : That's right. Can you list few methods that are available at Object class leve?l
Interviewee : toString, hashCode, notify, notifyAll,...

Interviewer : Why is thread methods like notify and notifyAll is defined at Object level?
Interviewee : mmm.. I don't know...

Interviewer : Ok. In System.out.println() tell me which one is class,method,etc.
Interviewee : java.lang.System is the class, out is static variable of type java.io.PrintStream and println is a method available in PrintStream Class.

Interviewer : What is static variable?
Interviewee : It is class level variable.Only one copy exists for all objects of the class.If the value is changed in one object then the changed value will get reflected in all other objects.

Interviewer : What is bytecode?
Interviewee : During compilation, class files are converted into bytecode format.

Interviewer : Why is it converted to bytecode?
Interviewee : I am not very sure. But it is something to do with platform independence and security.

Interviewer : What are run time exceptions?
Interviewee : NullPointerException,ArrayIndexOutofBoundsException,etc. Exceptions which arise out of improper coding. Runtime Exceptions need not be explicitly handled.

Interviewer : What is Marker interface?
Interviewee : It will not have any methods in this interface.ex:java.io.Serializable,javax.rmi.remote

Interviewer : Which version of Websphere you use?
Interviewee : 5.1

Interviewer : How do u generate a ear file?
Interviewee : We mostly use ant and sometimes AAT.

Interviewer : Can you explain the architecture of your current project.
Interviewee : Explained the project...

Interviewer : What type of session beans are you using?
Interviewee : Stateless

Interviewer : Tell me the difference between Stateless session bean and statefull session bean?
Interviewee :

Interviewer : Can you name the transaction attributes?
Interviewee : Required, Requires New, Mandatory, Supports, Not Supported and Never.

Interviewer : How is Supports different from Not Supported?
Interviewee :

Interviewer : What is your best strength?
Interviewee : I am very systematic in whatever i do.

Interviewer : What is your worst weakness?
Interviewee : mmm..I am a bit short tempered.

Interviewer : I am through with my part. Do you have any questions to ask me?
Interviewee : mmm... No... Should i have to wait..

Interviewer : No.. You leave staffing division will get in touch with you.
Interviewee : Thanks sir.

Interviewer : Ok bye.



Pls send in your feedback and contributions to vindesh.mohariya@gmail.com

© Copyright webapps 2007, All Rights Reserved.
Free Web Hosting