Showing posts with label J2EE. Show all posts
Showing posts with label J2EE. Show all posts

August 1, 2007

J2EE Interview Questions -4

  1. What is the difference between tomact and weblogic
  2. What is the webserver used for running the Servlets?
  3. What is a tagged interface?
  4. Why we cannot define constructor of super class in a sub class ?
  5. When you use a struts framework, where would you place your business logic
  6. How will you initialize an Applet?
  7. Can we implement an interface in JSP Page? If yes How? Write the code?
  8. Write a program that singleton objects returns two instances?
  9. Whether private, protected method can be overloaded, override d or not? Tell me
  10. How can we store elements in array list? As by using index or by node?
  11. How will you pass values from HTML page to the Servlet?
  12. Why we can not override static method?
  13. Why we can't put semicolon at the end of a class in java??
  14. How can i call parameterized constructor if am instantiating a object using "Class.forName( "Abc").newInstan ce()"?
  15. Difference between wait and notify in java?
  16. What is the use of volatile specifier
  17. What do you mean by virtual methods?
  18. Mention 5 basic differences between Array List and Vector in Java Colletion FrameWork.
  19. What is the Vector class
  20. Diff between ArrayList and Vector?

J2EE Interview Questions - 3

  1. What are the problems faced by Java programmers who don't use layout managers?
  2. What is synchronization and why is it important?
  3. What is the immediate superclass of the Dialog class?
  4. Name four Container classes?
  5. What is widning and narrowing ?
  6. In overriding, the super class method throws I/O exception & in sub class that method throws arithmetic exception. what happens?
  7. How we know a class is Serialized or not from a package
  8. What is the difference between Serializalble and Externalizable interface?
  9. Please give me answer why we use Interface though it contain only blank implementation
  10. What is the order of intialization of variables in Java.
  11. How does a try statement determine which catch clause should be used tohandle an exception?
  12. How does a try statement determine which catch clause should be used to handle an exception?
  13. What is the relationship between clipping and repainting?
  14. What state does a thread enter when it terminates its processing?
  15. When a thread blocks on I/O, what state does it enter
  16. What happens when you invoke a thread's interrupt method while it is sleeping or waiting?
  17. What is the difference between yielding and sleeping?
  18. What is the difference between String and StringBuffer? Which is better to use in project?
  19. When is update method called?
  20. What is the use of unicast remote object?

J2EE Interview Questions - 2

  1. Can you invoke the methods on a Thread once it is stopped?
  2. Can we serialize the static members?
  3. Is there a separate stack for each thread in Java
  4. Can the main() method be overloaded? or overrided? and what happens when we do so?
  5. Whether we can set the time implicitly for the garbage collection?
  6. Can an exception be rethrown?
  7. Can a lock be acquired on a class?
  8. Can a for statement loop indefinitely?
  9. Can a double value be cast to a byte?
  10. Can we serialize the static variable?
  11. Can I create final executable from Java?
  12. Does JVM maintain a cache by itself? Does the JVM allocate objects in heap? Is this the OS heapor the heap maintained by the JVM? Why
  13. Can we send object using Sockets
  14. Can we declare multiple main() methods in multiple classes.ie can we have each main method in its class in our program?
  15. Can i limit the initial capacity of vector in java?
  16. What are wrapper classes?
  17. IS String is a wrapperclass? explain wrapper class
  18. What are wrapped classes?
  19. What are wrapped classes?
  20. What are the problems faced by Java programmers who don't use layout managers?

July 31, 2007

J2EE Interview Questions -1

  1. What is Collection?
  2. Why do you create interfaces, and when MUST you use one?
  3. How to make application thread-safe?
  4. How to make application thread-safe?
  5. What synchronization constructs does Java provide? How do they work?
  6. If i create a object which is to be serialized then do I need to implement any methods?
  7. How can we write our own array list without using collections?
  8. Can we make constructor STATIC?
  9. Are constructors inherited? Can a subclass call the parent's class constructor? When?
  10. How can we do bug tracking in an intranet project for a pharmaceutical company using java,jdbc,ejb sevlet using oracle as backend can anyone guide?
  11. What is the corresponding Layout for Card in Swing ?
  12. Can u kill thread manually? What is the disadvantage?
  13. How can we invoke private method using refleciotn API(AccessibileObje ct class)?
  14. What happen if we write many curly braces in main method and write println method inside it program will compile or not?
  15. How can you load DLL files when your java class is loading first time ?
  16. Size of object in java : Is there any way in java to find of size of an object ?( like sizeof() operator of C/C++ )
  17. Have you ever used HashTable and Dictionary ?
  18. Is is true that JAVA is not 100% object oriented language ?
  19. Can we write return statement in try catch or finally block. suposse we write return 0 in try catch or finally. can we do.
  20. Is there any provision in java to find the address of a particular memory location?(like & in 'C' language)