
J2EE Interview Question, JSP Interview Question, Servlet Interview Question
Java Interview Questions - J2EE JSP interview question
- Hibernate Interview Questions
- Are the imports checked for validity at compile time? e.g. will the code containing an import such as java.lang.ABCD compile?
- c1 = new MyClass ();
- c3 = new MyClass ();
- Can a .java file contain more than one java classes?
- Can a public class MyClass be defined in a source file named YourClass.java?
- Can a top level class be private or protected?
- Can an application have multiple classes having main method?
- Can an unreachable object become reachable again?
- Can applets communicate with each other?
- Can I have multiple main methods in the same class?
- Can I import same package/class twice? Will the JVM load the package twice at runtime?
- Can main method be declared final?
- Describe synchronization in respect to multithreading.
- Difference between HashMap and HashTable?
- Difference between Swing and Awt?
- Difference between Vector and ArrayList?
- Do I need to import java.lang package any time? Why ?
- Does garbage collection guarantee that a program will not run out of
- Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests.*?
- Does Java provide any construct to find out the size of an object?
- Explain different way of using thread?
- Give a simplest way to find out the time a method takes for execution without using any profiling tool?
- How are Observer and Observable used?
- How are this() and super() used with constructors?
- How can I customize the seralization process? i.e. how can one have a control over the serialization process?
- How can one prove that the array is not null but empty using one line of code?
- How do I serialize an object to a file?
- How does a try statement determine which catch clause should be used to handle an exception?
- How does an exception permeate through the code?
- How does Java handle integer overflows and underflows?
- How many objects are created in the following piece of code?
- How to create custom exceptions?
- If I do not provide any arguments on the command line, then the String array of Main method will be empty or null?
- If I want an object of my class to be thrown as an exception object, what should I do?
- If I write return at the end of the try block, will the finally block still execute?
- If I write System.exit (0); at the end of the try block, will the finally block still execute?
- If my class already extends from some other class what should I do if I want an instance of my class to be thrown as an exception object?
- Is delete a keyword in Java?
- Is Empty .java file a valid source file?
- Is exit a keyword in Java?
- Is it necessary that each try block must be followed by a catch block?
- Is main a keyword in Java?
- Is next a keyword in Java?
- Is String a primitive data type in Java?
- MyClass c1, c2, c3;
- Objects are passed by value or by reference?
- on declared items qualified by these modifiers.
- Primitive data types are passed by reference or pass by value?
- State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships
- System.out.println ("1" + 3);
- What are Checked and UnChecked Exception?
- What are checked exceptions?
- What are different types of inner classes?
- What are pass by reference and passby value?
- What are runtime exceptions?
- What are some alternatives to inheritance?
- What are synchronized methods and synchronized statements?
- What are synchronized methods and synchronized statements?
- What are the different scopes for Java variables?
- What are the different ways to handle exceptions?
- What are the steps in the JDBC connection?
- What are wrapper classes?
- What does it mean that a method or field is "static"? ?
- What environment variables do I need to set on my machine in order to be able to run Java programs?
- What happens if you dont initialize an instance variable of any of the primitive types in Java?
- What happens to the static fields of a class during serialization?
- What if I do not provide the String array as the argument to the method?
- What if I write static public void instead of public static void?
- What if the main method is declared as private?
- What if the static modifier is removed from the signature of the main method?
- What is an abstract class?
- What is an Iterator?
- What is daemon thread and which method is used to create the daemon thread?
- What is Externalizable interface?
- What is Externalizable?
- What is final?
- What is HashMap and Map?
- What is Overriding?
- What is serialization?
- What is static in java?
- What is synchronization and why is it important?
- What is the basic difference between the 2 approaches to exception handling...1> try catch block and 2> specifying the candidate exceptions in the throws
- What is the catch or declare rule for method declarations?
- What is the common usage of serialization?
- What is the default value of an object reference declared as an instance variable?
- What is the default value of the local variables?
- What is the difference between a constructor and a method?
- What is the difference between a while statement and a do statement?
- What is the difference between an Interface and an Abstract class?
- What is the difference between declaring a variable and defining a variable?
- What is the difference between error and an exception??
- What is the difference between preemptive scheduling and time slicing?
- What is the difference between preemptive scheduling and time slicing?
- What is the difference between static and non-static variables?
- What is the first argument of the String array in main method?
- What is the Locale class?
- What is the purpose of finalization?
- What is the purpose of garbage collection in Java, and when is it used?
- What method must be implemented by all threads?
- What modifiers are allowed for methods in an Interface?
- What one should take care of while serializing the object?
- What type of parameter passing does Java support?
- What will be the default values of all the elements of an array defined as an instance variable?
- What will be the initial value of an object reference which is defined as an instance variable?
- What will be the output of the following statement?
- When a thread is created and started, what is its initial state?
- When should you use which approach?
- When you serialize an object, what happens to the object references included in the object?
- Which methods of Serializable interface should I implement?
- Why do we need wrapper classes?
Java Interview Questions - J2EE JSP interview question
Java Interview Question Pdf, Struts Interview Question, Jdbc Interview Question, Oracle Interview Question
Partners
|
|

|