Few JAVA Interview Questions Framed by TCS Associates

download Few JAVA Interview Questions Framed by TCS Associates

of 6

Transcript of Few JAVA Interview Questions Framed by TCS Associates

  • 8/6/2019 Few JAVA Interview Questions Framed by TCS Associates

    1/6

    The Following are few JAVA Interview questions framed by TCS Associates. Pl. Try to

    find answers/ solutions for these and mail me backnot to this group.

    Person: 1

    1. Describe your current project

    2. Depending on the technology used eg mine was java and corba - Few questions based

    on that3. How does corba operate

    4. Was the platform - Windows NT or Unix and Why

    5. Any experienc wth Unix

    6. Kind of security build in the system7. Use of session

    8. List of session variables used

    9. where is the temporary session information stored

    10. Experience in java servlets.11. Experience in XML

    12. XML features13. Describe actual project experience of using XML and XSL

    14. How are the XML/XSL Microsoft parsers used

    15. What is the xsl:apply-templates tag used for

    16. when was the last time you worked with XML17. Any experience with XML Schemas

    18. What is the difference between DOM and SAX parsers

    Person: 2

    1. How to retrieve value from ArrrayList?

    2. What is interface? Diff. between Abstract and Interface?3. Why we are using Application server and Web server?

    4. What are the setting we have to do in the Web server?

    5. Which architecture you are used in your project?

    6. How MVC applied in your project?7. What are the command u know in Unix and what purpose you are used it?

    8. In DB2 how to create the table?

    9. Where you are used the XML in your project and what purpose?10. What is the different between SAX and DOM?

    11. What are IDE you are used?

    12. In Visual Age how to setup your project (means how to add the project) and howrun in the browser?

    13. In HTML combo box values are loaded dynamically from the Database . I need to

    display particular values in time of display?

  • 8/6/2019 Few JAVA Interview Questions Framed by TCS Associates

    2/6

    14. What the browser you are used in your project? What u find the difference

    between them?

    15.

    PERSON: 3

    INTERVIEW QUESTIONS

    JAVA

    1. Object class and its significance.

    2. Single threaded class and its significance.

    3. Various IDEs used and their usefulness.

    JAVA SERVLETS

    1. Session tracking in servlets and project-wise implementation of

    the same.

    2. Single threaded servlets.3. XML parsing in servlets.

    4. Optimum number of servlets required for a project.

    5. Common functionality required in certain classes to be implemented in servlets architectural benefits.

    JSP

    1. Scope variable for java-beans and project-wise implementation of

    the same.2. URL encoding, URL hiding.

    3. Request-Response mapping in Xml file.

    XML

    1. XML parsing.2. XML namespaces.

    3. Project-wise implementation of SOAP web-services.

    DB

    1. Joins (Inner & Outer)

  • 8/6/2019 Few JAVA Interview Questions Framed by TCS Associates

    3/6

    J2EE ARCHITECTURE

    1. MVC Architecture and uses.

    2. Basic Model Classes used in MVC.3. Mappings and properties files in MVC architecture.

    4. DAO classes used in LEAF architecture.

    5. LEAF (Lightweight Enterprise Application Framework) Architecture.

    HTML / JAVASCRIPT

    1. Event-driven functions.

    2. Disabling right-click (view source).

    3. Validation of form-fields.

    4. Submit of form after validation.

    OTHER QUESTIONS

    1. Websphere performance issues.

    2. UNIX Commands and familiarity with the same.3. Hummingbird and e-Matrix related issues and familiarity with the same.

    4. Performance of LoadRunner.

    5. Simulating a case of 500 virtual users for LoadRunner at the same time and atdifferent intervals.

    6. Design using Rational Rose.

    PERSON: 4

    1. About Current project and technologies used.

    2. What is the difference between Visual Caf and Visual Age.

    3. About IBM Websphere Test Enivronment.4. How did you use XML s in your applications?

    5. What XML parsers you used ?

    6. How comfartable are you in working with XML parsers?7. What is JDOM?. Compare the features with SAX and DOM.

    8. How to extract data from the elements in the xml file document?

    9. In DB2, Are you using any complicated SQLs ?.

  • 8/6/2019 Few JAVA Interview Questions Framed by TCS Associates

    4/6

    PERSON: 5

    INTERVIEW QUESTIONS

    JAVA

    4. Advantages of Java usage5. ArrayList and its implementation

    6. String :- Difference of usage of S1.equals(S2) and S1== S2

    JAVA SERVLETS

    6. Session tracking in servlets and project-wise implementation of

    the same.

    7. Optimum number of servlets required for a project.8. On submit of the form , how it is processed in the servlet - Implementation of the

    same in the project

    J2EE ARCHITECTURE

    6. EJB Performance Issues

    7. Implementation JSP-Servlet-Session-Entity in the project

    8. Exception Handling in the Project9. Interfaces handled in the project

    10. CMP Vs BMP

    HTML / JAVASCRIPT /JSP

    5. Validation of form-fields.6. Submit of form after validation.

    7. Usage of HTTP Session is Jsp and implementation

    OTHER QUESTIONS

    7. UNIX Commands and familiarity with the same. How to rename a file

    8. Techonolgy architecture adapted in the project

    PERSON: 6

  • 8/6/2019 Few JAVA Interview Questions Framed by TCS Associates

    5/6

    Java Questions

    1. What is finally used for and will it be executed if an exception occurs.2. Difference between ArrayList and Vector

    3. How would you extract values from a HashSet by looping through it

    4. What is a TreeSet5. What is the difference between x+=y and x=x+y

    6. Why are Stored Procedures used

    7. In JDBC what is the difference between Statement and Callable Statement

    8. When does Garbage Collection run. (Explain the process and about forceful garbagecollection)

    9. Does increasing the heap size improve performance(Felt this was an important area

    on which they focus)10. What can be done to increase performance of Java programs.

    11. How would you find out which part of a huge program is taking more time to

    execute.

    12. How do you implement connection pooling13. What is the significance of Classpath

    14. What are library files

    15. What is JNI16. What are packages

    Applet Questions

    1. What is MVC

    Servlet Questions

    1. What is the life cycle of a servlet.2. How many times is the init method called

    3. How long does the servlet stay in memory

    4. What are the exceptions thrown by the doGet and doPost methods

    General Questions

    1. Familiarity with Object Oriented Design

    2. Explain about the project with respect to the technology and architecture used

    Overall areas that they seem to focus on

    1. Collections framework

    2. Performance tuning

  • 8/6/2019 Few JAVA Interview Questions Framed by TCS Associates

    6/6

    FAQs

    1. What is an interface and how is it useful?2. What is an abstract class and how it differs from an interface?

    3. What is polymorphism?

    4. What is late binding?5. What is the difference between overloading and over-riding?

    6. Explain exception handling in Java. What is the finally block?

    7. What is a constructor? What is a default constructor?

    8. What is garbage collection? How do we enforce forceful garbage collection?9. What is the difference between ArrayList and Vector?

    10. What is a synchronized method?

    11. What are static and instance variables? Can static methods access instance variables?

    12. What does the keyword transient mean?13. From an overriden method in the child class, how can you invoke the base class

    method?14. What is an Object class? What is it significance?

    15. What is the significance of protected ?

    16. How will you prevent a class from being inherited ? Similarly, how will you prevent a

    public method from being over-ridden by the child?17. What is a singleton? How will you implement it?

    18. What is the difference between exception and error?

    19. What are checked and unchecked exceptions?20. What is a marker interface? Why do we use it ?

    21. What is the difference between String and String Buffer?

    22. What are accessor and mutator methods?