Home
Web Directory
Travel
Freelancing
Games
Articles
Free Scripts
Jobs
Recipes
Lyrics
Number Times Read : 113
Go To Article :
What is a transient variable
Why do threads block on I/O
. Which containers use a border Layout as their default layout
How are Observer and Observable used
. What is synchronization and why is it important
Can a lock be acquired on a class
What's new with the stop(), suspend() and resume() methods in JDK 1.2
Is null a keyword
The null value is not a keyword.
. What is the preferred size of a component
. What method is used to specify a container's layout
. Which containers use a FlowLayout as their default layout
. What state does a thread enter when it terminates its processing
. What is the Collections API
which characters may be used as the second character of an identifier, but not as the first character of an identifier
. which characters may be used as the second character of an identifier, but not as the first character of an identifier
What is the List interface
How does Java handle integer overflows and underflows
What is the Vector class
What modifiers may be used with an inner class that is a member of an outer class
. What is an Iterator interface
. What is the difference between the >> and >>> operators
Which method of the Component class is used to set the position and size of a component
. How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters
What is the difference between yielding and sleeping
Which java.util classes and interfaces support event handling
Is sizeof a keyword
What are wrapper classes
Does garbage collection guarantee that a program will not run out of memory
. What restrictions are placed on the location of a package statement within a source code file
Can an object's finalize() method be invoked while it is reachable
What is the immediate superclass of the Applet class
What is the difference between preemptive scheduling and time slicing
. Name three Component subclasses that support painting
. What value does readLine() return when it has reached the end of a file
What is the immediate superclass of the Dialog class
What is clipping
What is a native method
Can a for statement loop indefinitely
What are order of precedence and associativity, and how are they used
When a thread blocks on I/O, what state does it enter
To what value is a variable of the String type automatically initialized
. What is the catch or declare rule for method declarations
What is the difference between a MenuItem and a CheckboxMenuItem
. What is a task's priority and how is it used in scheduling
. What class is the top of the AWT event hierarchy
When a thread is created and started, what is its initial state
Can an anonymous class be declared as implementing an interface and extending a class
What is the range of the short type
What is the range of the char type
In which package are most of the AWT events that support the event-delegation model defined
What is the immediate superclass of Menu
What is the purpose of finalization
. Which class is the immediate superclass of the MenuComponent class.
. What invokes a thread's run() method
. What is the difference between the Boolean & operator and the && operator
Name three subclasses of the Component class
. What is the GregorianCalendar class
Which Container method is used to cause a container to be laid out and redisplayed
What is the purpose of the Runtime class
How many times may an object's finalize() method be invoked by the
What is the purpose of the finally clause of a try-catch-finally statement
. What is the argument type of a program's main() method
Which Java operator is right associative
What is the Locale class
What is the difference between a break statement and a continue statement
What must a class do to implement an interface
What method is invoked to cause an object to begin executing as a separate thread
. Name two subclasses of the TextComponent class
What is the advantage of the event-delegation model over the earlier event-inheritance model
Which containers may have a MenuBar
How are commas used in the initialization and iteration parts of a for statement
What is the purpose of the wait(), notify(), and notifyAll() methods
What is an abstract method
. How are Java source code files named
What is the relationship between the Canvas class and the Graphics class
What are the high-level thread states
What value does read() return when it has reached the end of a file
Can a Byte object be cast to a double value
What is the difference between a static and a non-static inner class
What is the difference between the String and StringBuffer classes
. If a variable is declared as private, where may the variable be accessed
. What is an object's lock and which objects have locks
What is the Dictionary class
How are the elements of a BorderLayout organized
What is the % operator
When can an object reference be cast to an interface reference
What is the difference between a Window and a Frame
Which class is extended by all other classes
. Can an object be garbage collected while it is still reachable
. Is the ternary operator written x : y ? z or x ? y : z
What is the difference between the Font and FontMetrics classes
How is rounding performed under integer division
The fractional part of the result is truncated. This is known as rounding toward zero.
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy
What classes of exceptions may be caught by a catch clause
. If a class is declared without any access modifiers, where may the class be accessed
What is the SimpleTimeZone class
. What is the Map interface
. For which statements does it make sense to use a label
What is the purpose of the System class
Which TextComponent method is used to set a TextComponent to the read-only state
How are the elements of a CardLayout organized
Is &&= a valid Java operator
. Name the eight primitive Java types.
Which class should you use to obtain design information about an object
. What is the relationship between clipping and repainting
. Is "abc" a primitive value
What is the relationship between an event-listener interface and an event-adapter class
. What restrictions are placed on the values of each case of a switch statement
What modifiers may be used with an interface declaration
Is a class a subclass of itself
. What is the highest-level event class of the event-delegation model
What event results from the clicking of a button
How can a GUI component handle its own events
What is the difference between a while statement and a do statement
How are the elements of a GridBagLayout organized
What advantage do Java's layout managers provide over traditional windowing systems
What is the Collection interface
What modifiers can be used with a local inner class
What is the difference between static and non-static variables
. What is the difference between the paint() and repaint() methods
What is the purpose of the File class
Can an exception be rethrown
Which Math method is used to calculate the absolute value of a number
. How does multithreading take place on a computer with a single CPU
When does the compiler supply a default constructor for a class
When is the finally clause of a try-catch-finally statement executed
Which class is the immediate superclass of the Container class
If a method is declared as protected, where may the method be accessed
How can the Checkbox class be used to create a radio button
Which non-Unicode letter characters may be used as the first character of an identifier
What restrictions are placed on method overloading
. What happens when you invoke a thread's interrupt method while it is sleeping or waiting
. What is casting
What is the return type of a program's main() method
. Name four Container classes
What is the difference between a Choice and a List
What class of exceptions are generated by the Java run-time system
What class allows you to read objects directly from a stream
What is the difference between a field variable and a local variable
Under what conditions is an object's finalize() method invoked by the garbage collector
. How are this () and super () used with constructors
. What is the relationship between a method's throws clause and the exceptions that can be thrown during the method's execution
. What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1
. How is it possible for two String objects with identical values not to be equal under the == operator
Why are the methods of the Math class static
What Checkbox method allows you to tell if a Checkbox is checked
What state is a thread in when it is executing
What are the legal operands of the instanceof operator
How are the elements of a GridLayout organized
What an I/O filter
. If an object is garbage collected, can it become reachable again
. What is the Set interface
What classes of exceptions may be thrown by a throw statement
What are E and PI
Are true and false keywords
What is a void return type
What is the purpose of the enableEvents() method
What is the difference between the File and RandomAccessFile classes
. What happens when you add a double value to a String
What is your platform's default character encoding
Which package is always imported by default
What interface must an object implement before it can be written to a stream as an object
. How are this and super used
. What is the purpose of garbage collection
What happens when you invoke a thread's interrupt method while it is sleeping or waiting
Name four Container classes
What class of exceptions are generated by the Java run-time system
. What is the difference between a field variable and a local variable
How are this () and super () used with constructors
What is the relationship between a method's throws clause and the exceptions that can be thrown during the method's execution
What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1
How is it possible for two String objects with identical values not to be equal under the == operator
. What Checkbox method allows you to tell if a Checkbox is checked
To what value is a variable of the boolean type automatically initialized
Can try statements be nested
What is the difference between the prefix and postfix forms of the ++ operator
What is the purpose of a statement block
What is a Java package and how is it used
What modifiers may be used with a top-level class
What are the Object and Class classes used for
How does a try statement determine which catch clause should be used to handle an exception
Can an unreachable object become reachable again
When is an object subject to garbage collection
What method must be implemented by all threads
What methods are used to get and set the text label displayed by a Button object
Which Component subclass is used for drawing and painting
What are synchronized methods and synchronized statements
What are the two basic ways in which classes that can be run as threads may be defined
What are the problems faced by Java programmers who don't use layout managers
What is the difference between an if statement and a switch statement
What is the difference between an Interface and an Abstract class
What is the purpose of garbage collection in Java, and when is it used
Describe synchronization in respect to multithreading
Explain different way of using thread
What are pass by reference and passby value
What is HashMap and Map
Difference between HashMap and HashTable
Difference between Vector and ArrayList
Difference between Swing and Awt
What is the difference between a constructor and a method
What is an Iterator
State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers
What is an abstract class
What is static in java
What is final
What if the main method is declared as private
What if the static modifier is removed from the signature of the main method
What if I write static public void instead of public static void
What if I do not provide the String array as the argument to the method
What is the first argument of the String array in main me
What is the first argument of the String array in main method
. If I do not provide any arguments on the command line, then the String array of Main method will be empty or null
How can one prove that the array is not null but empty using one line of code
What environment variables do I need to set on my machine in order to be able to run Java programs
Can an application have multiple classes having main method
Can I have multiple main methods in the same class
Do I need to import java.lang package any time Why
Can I import same package/class twice? Will the JVM load the package twice at runtime
What are Checked and UnChecked Exception
What is Overriding
What are different types of inner classes
What are different types of inner classes
. Are the imports checked for validity at compile time? e.g. will the code containing an import such as java.lang.ABCD compile
Does importing a package imports the subpackages as well? e.g. Does importing com.MyTest.* also import com.MyTest.UnitTests
What is the difference between declaring a variable and defining a variable
What is the default value of an object reference declared as an instance variable
Can a top level class be private or protected
What type of parameter passing does Java support
Primitive data types are passed by reference or pass by value
Objects are passed by value or by reference
What is serialization
How do I serialize an object to a file
Which methods of Serializable interface should I implement
How can I customize the seralization process? i.e. how can one have a control over the serialization process
What is the common usage of serialization
What is Externalizable interface
When you serialize an object, what happens to the object references included in the object
What one should take care of while serializing the object
What happens to the static fields of a class during serialization
Can a class be it’s own event handler? Explain how to implement this.
Why does JComponent have add() and remove() methods but Component does not
How would you create a button with rounded edges
If I wanted to use a SolarisUI for just a JTabbedPane, and the Metal UI for everything else, how would I do that
What is the difference between the ‘Font’ and ‘FontMetrics’ class
What class is at the top of the AWT event hierarchy
Explain how to render an HTML page using only Swing
How would you detect a keypress in a JComboBox
Why should the implementation of any Swing callback (like a listener) execute quickly
In what context should the value of Swing components be updated directly
Why would you use SwingUtilities.invokeAndWait or SwingUtilities.invokeLater
If your UI seems to freeze periodically, what might be a likely reason
Which Swing methods are thread-safe
Why won’t the JVM terminate when I close all the application windows
Explain the life cycle methods of a Servlet.
What is the difference between the getRequestDispatcher(String path) method of javax.servlet.ServletRequest interface and javax.servlet.ServletContext interface
Explain the directory structure of a web application.
Explain ServletContext.
What is preinitialization of a servlet
What is the difference between Difference between doGet() and doPost()
: What is the difference between Difference between doGet() and doPost()
What is the difference between an Applet and an Application (Applets)
What are the Applet's Life Cycle methods Explain them (Applets
What is the sequence for calling the methods by AWT for applets (Applets)
How are the differences between Applets and Applications (Applets)
How do we pass a parameter from HTML page to Applet (Applets)
When an user wants to send an int from HTML what does he needs to
How can I arrange for different applets on a web page to communicate
How do I go from my applet to another JSP or HTML page? (Applets)
How do I determine the width and height of my application (Applets)
Which classes and interfaces does Applet class consist (Applets)
What is AppletStub Interface (Applets)
What tags are mandatory when creating HTML to display an
What are the methods to retrive information about an applet (Applets)
If you need to display a String on the applet, what would you do (Applets)
How do you play audio clips without using applet class (Applets)
which containers use a border Layout as their default layout (AWT)
What is the preferred size of a component (AWT)
Which containers use a FlowLayout as their default layout (AWT)
What is the immediate superclass of the Applet class (AWT)
Name three Component subclasses that support painting (AWT)
What is the immediate superclass of the Dialog class (AWT)
What is clipping n (AWT)
What is the difference between a MenuItem and a
What class is the top of the AWT event hierarchy (AWT)
In which package are most of the AWT events that support the eventdelegation
Which class is the immediate superclass of the MenuComponent
Which containers may have a MenuBar (AWT)
What is the relationship between the Canvas class and the Graphics
How are the elements of a BorderLayout organized (AWT)
What is the difference between a Window and a Frame (AWT)
What is the difference between the Font and FontMetrics classes (AWT)
How are the elements of a CardLayout organized? (AWT)
What is the relationship between clipping and repainting (AWT)
What is the relationship between an event-listener interface and an
How can a GUI component handle its own events (AWT)
What advantage do Java's layout managers provide over traditional
What is the difference between the paint() and repaint() methods (AWT)
How can the Checkbox class be used to create a radio button (AWT)
What is the difference between a Choice and a List (AWT)
What interface is extended by AWT event listeners (AWT)
What is a layout manager? (AWT)
Which Component subclass is used for drawing and painting (AWT)
What are the problems faced by Java programmers who dont use layout
Why variables/objects in java bean classes are declared as private
Can there be an abstract class with no abstract methods in it (CoreJava)
Can an Interface be final (CoreJava)
Can an Interface have an inner class (CoreJava)
Can we define private and protected modifiers for variables in
What is Externalizable (CoreJava)
What modifiers are allowed for methods in an Interface (CoreJava)
What is a local, member and a class variable (CoreJava)
I made my class Cloneable but I still get 'Can't access protected method
What are the different identifier states of a Thread (CoreJava)
Can we overload main method in java (CoreJava)
What are some alternatives to inheritance (CoreJava)
Why isn't there operator overloading (CoreJava)
What does it mean that a method or field is "static"? (CoreJava)
Diffrence between JRE And JVM AND JDK (CoreJava)
Why do threads block on I/O (CoreJava)
What is synchronization and why is it important (CoreJava)
Is null a keyword (CoreJava)
Which characters may be used as the second character of an
What modifiers may be used with an inner class that is a member of an
How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8
What are wrapped classes (CoreJava)
What restrictions are placed on the location of a package statement
What is the difference between preemptive scheduling and time
What is a native methodn (CoreJava)
What are order of precedence and associativity, and how are they
What is the catch or declare rule for method declarations (CoreJava)
Can an anonymous class be declared as implementing an interface and
What is the range of the char type (CoreJava)
What is the purpose of finalization (CoreJava)
What is the difference between the Boolean & operator and the &&
What is the purpose of the finally clause of a try-catch-finally
What is the argument type of a program's main() method (CoreJava)
Which Java operator is right associative (CoreJava)
Can a double value be cast to a byte (CoreJava)
What is the difference between a break statement and a continue
What must a class do to implement an interface (CoreJava)
What is the advantage of the event-delegation model over the earlier
How are commas used in the intialization and iteration parts of a for
What is an abstract method (CoreJava)
What value does read() return when it has reached the end of a
Can a Byte object be cast to a double value (CoreJava)
What is the difference between a static and a non-static inner
If a variable is declared as private, where may the variable be
What is an object's lock and which object's have locks (CoreJava)
What is the % operator (CoreJava)
When can an object reference be cast to an interface reference (CoreJava)
Which class is extended by all other classes? (CoreJava)
Can an object be garbage collected while it is still reachable (CoreJava)
Is the ternary operator written x : y ? z or x ? y : z (CoreJava)
How is rounding performed under integer division (CoreJava)
What is the difference between the Reader/Writer class hierarchy and the
What classes of exceptions may be caught by a catch clause (CoreJava)
If a class is declared without any access modifiers, where may the class
Does a class inherit the constructors of its superclass (CoreJava)
What is the purpose of the System class? (CoreJava)
Name the eight primitive Java types. (CoreJava)
Which class should you use to obtain design information about an
Is "abc" a primitive value (CoreJava)
What restrictions are placed on the values of each case of a switch
What modifiers may be used with an interface declaration (CoreJava)
Is a class a subclass of itself (CoreJava)
What is the difference between a while statement and a do
What modifiers can be used with a local inner class (CoreJava)
What is the purpose of the File class (CoreJava)
Can an exception be rethrown (CoreJava)
When does the compiler supply a default constructor for a class (CoreJava)
If a method is declared as protected, where may the method be
Which non-Unicode letter characters may be used as the first character of
What restrictions are placed on method overloading (CoreJava)
What is casting (CoreJava)
What is the return type of a program's main() method (CoreJava)
What class of exceptions are generated by the Java run-time
What class allows you to read objects directly from a stream (CoreJava)
What is the difference between a field variable and a local
How are this() and super() used with constructors? (CoreJava) Discuss in Detail
What is the relationship between a method's throws clause and the
Why are the methods of the Math class static (CoreJava)
What are the legal operands of the instanceof operator (CoreJava)
What an I/O filter (CoreJava)
If an object is garbage collected, can it become reachable again (CoreJava)
What are E and PI (CoreJava)
Are true and false keywords (CoreJava)
What is the difference between the File and RandomAccessFile
What happens when you add a double value to a String (CoreJava)
What is your platform's default character encoding (CoreJava)
Which package is always imported by default (CoreJava)
What interface must an object implement before it can be written to a
Whats the difference between notify() and notifyAll() (CoreJava)
Why can't I say just abs() or sin() instead of Math.abs() and
Wha is the output from System.out.println("Hello"+null); (CoreJava
Why are there no global variables in Java (CoreJava)
What does it mean that a class or member is final (CoreJava)
What does it mean that a method or class is abstract (CoreJava)
what is a transient variable (CoreJava)
How are Observer and Observable used (CoreJava)
Can a lock be acquired on a class (CoreJava)
What state does a thread enter when it terminates its
How does Java handle integer overflows and underflows (CoreJava)
What is the difference between the >> and >>> operators (CoreJava)
Is sizeof a keyword (CoreJava)
Does garbage collection guarantee that a program will not run out of
Can an object's finalize() method be invoked while it is
What value does readLine() return when it has reached the end of a
Can a for statement loop indefinitely (CoreJava)
To what value is a variable of the String type automatically
What is a task's priority and how is it used in scheduling (CoreJava)
What is the range of the short type (CoreJava)
What is the purpose of garbage collection (CoreJava)
What do you understand by private, protected and public (CoreJava)
What is Downcasting (CoreJava)
method be overloaded based on different return type but same
What happens to a static var that is defined within a method of a
How many static init can you have (CoreJava)
What is the difference amongst JVM Spec, JVM Implementation, JVM
Describe what happens when an object is created in Java (CoreJava)
What does the "final" keyword mean in front of a variable A method A
What is the difference between instanceof and isInstance (CoreJava)
Why is not recommended to have instance variables in Interface (CoreJava)
What is the diffrence between inner class and nested class (CoreJava)
How the private constructor is called in the main java
Which is garbage collected first: Normal variables or static
Diffrence between JRE And JVM AND JDK (CoreJava) (CoreJava)
is it necessary to initialize a final variable at the time of
What is a compilation unit (CoreJava)
What restrictions are placed on method overriding (CoreJava)
How can a dead thread be restarted (CoreJava)
What happens if an exception is not caught (CoreJava)
Which arithmetic operations can result in the throwing of an
Can an abstract class be final (CoreJava)
What happens if a try-catch-finally statement does not have a catch
What is numeric promotion (CoreJava)
What is the difference between a public and a non-public class (CoreJava)
To what value is a variable of the boolean type automatically
Can try statements be nested (CoreJava)
What is the difference between the prefix and postfix forms of the ++
What is the purpose of a statement block (CoreJava)
What is a Java package and how is it used (CoreJava)
What modifiers may be used with a top-level class (CoreJava)
What are the Object and Class classes used for (CoreJava)
How does a try statement determine which catch clause should be used
What are synchronized methods and synchronized statements (CoreJava)
What is the difference between an if statement and a switch
What gives java it's "write once and run anywhere" nature (CoreJava)
Difference between a Class and an Object (CoreJava)
What is the difference between method overriding and
What is a "stateless" protocol (CoreJava)
What is constructor chaining and how is it achieved in Java (CoreJava)
What is passed by ref and what by value (CoreJava)
You can create a String object as String str = "abc"; Why cant a button
What does the "abstract" keyword mean in front of a method A
How many methods do u implement if implement the Serializable
What are the practical benefits, if any, of importing a specific class rather
What is the difference between logical data independence and physical
What is user defined exception (CoreJava)
Difference Between Abstraction and Encapsulation (CoreJava)
What are Checked and Un-Checked Exceptions Explain. (CoreJava)
Can we sort an Hashtable (CoreJava)
What is the exact difference between Abstract classes and
Garbage collector thread belongs to which priority (CoreJava)
Can you throw (and re-throw) an exception inside a catch{}
What is the difference between ArrayList and Vector (CoreJava)
Can we have inner class in the interface (CoreJava)
How to get values from a Vector (CoreJava)
What is meant by Instance Variables and Class Variables (CoreJava)
What is difference between jsp and Servlet (CoreJava)
Does the code in finally block get executed if there is an exception and a
What is an I/O filter (CoreJava)
The object serialization classes are stream oriented. How do I write
Can I compress the serial representation of my objects using my own zip/
When a local object is serialized and passed as a parameter in an RMI
Explain about Singleton Class (CoreJava)
Strings are immutable, How are we able to perform concatination on
It is valid to declare an inherited method as abstract? (CoreJava)
what is j2EE? (CoreJava)
Can an Interface have an inner class? (CoreJava)
what is tunnelling (CoreJava)
How are this() and super() used with constructors (CoreJava)
What is the purpose of the Runtime class (CoreJava)
Does object serialization support encryption? (CoreJava)
Why is OutOfMemoryError thrown after writing a large number of objects
Why is UTFDataFormatException thrown by DataOutputStream.writeUTF()
How can I create an ObjectInputStream from an ObjectOutputStream
Why can't a file that contains multiple appended ObjectOutputStreams be
What is the difference between Shallow Copy and Deep Copy (CoreJava)
Can an abstract class have final method (CoreJava)
Can an abstract class have only final methods (CoreJava)
Can a final class have abstract method (CoreJava)
Can you compare if null is equal to null i.e.
Post-increment or Post-Decrement Which would give better
What's the difference between a queue and a stack (CoreJava)
Can an inner class declared inside of a method access local variables of
What are the different ways in which polymorphism can be achieved in
What's the difference between constructors and other methods (CoreJava)
It is valid to declare an inherited method as abstract (CoreJava)
What would you use to compare two String variables - the operator ==
How do you know if an explicit object casting is needed (CoreJava)
What will the output of the following programme be
Have a look at the following code.
Why do we require public static void main(String args[]) method in Java
Assume you have an ArrayList with 7 objects in it. And there is an int[] as
What is Tight Encapsulation (CoreJava)
What is the maximum size of Integer wrapper class (CoreJava)
Can main() of one java program be invoked in another java program's
Can we write a static keyword before the main class (CoreJava)
int[] array = new int[5];
Can an exception be re-thrown? (CoreJava)
What are the different inner classes available in java Explain each inner
What is the disadvantage of using an inner class (CoreJava)
Does java support pointers? (CoreJava)
Does java support global variables (CoreJava)
Can an interface have variables defined in it How do you use
In a scenario, where you have to write an application which navigates
What is the differences between inheritance and composition (CoreJava)
What is meant by upcasting (CoreJava)
Why Java is not complete Object Oriented Programming
Write a program in java to get in output as follows.
What is the difference between break, continue and return
What are dynamic class loaders? (CoreJava)
What is the difference between local inner class and non-local inner
What is meant by Virtual function in Java Does Java supports Virtual
Why does main() in java taking String[] as argument (CoreJava)
Why java is called as PLATFORM independent (CoreJava)
Since Object class is the super class of every class in java and suppose if I
How do you uniquely identify one instance of a class among 10 instances
What is the difference between inheritance and decorator design
What are the difference between DAO (Data Access Object ) and DAC
Are enterprise beans allowed to use Thread.sleep() (EJB)
Is it possible to write two EJB's that share the same Remote and Home
Is it possible to specify multiple JNDI names when deploying an
Is there any way to force an Entity Bean to store itself to the db I don't
I am developing a BMP Entity bean
Can an EJB send asynchronous notifications to its clients (EJB)
How can I access EJB from ASP (EJB)
Is there a guarantee of uniqueness for entity beans (EJB)
How do the six transaction attributes map to isolation levels like "dirty
I have created a remote reference to an EJB in FirstServlet. Can I put the
Can the primary key in the entity bean be a Java primitive type such as
What's new in the EJB 2.0 specification (EJB)
What is the need of Remote and Home interface. Why cant it be in
What is the difference between Java Beans and EJB s (EJB)
Question With regard to Entity Beans, what happens if both my EJB
Question Can you control when passivation occurs (EJB)
Does EJB 1.1 support mandate the support for RMI-IIOP ? What is the
The EJB specification says that we cannot use Bean Managed Transaction
Can I invoke Runtime.gc() in an EJB (EJB)
What is clustering What are the different algorithms used for
What is the advantage of using Entity bean for database operations, over
What is the role of serialization in EJB (EJB)
What is EJB QL (EJB)
Is is possible for an EJB client to marshall an object of class
Is it legal to have static initializer blocks in EJB (EJB)
Is it possible to stop the execution of a method before completion in a
What is the default transaction attribute for an EJB (EJB)
What is the difference between session and entity beans When should I
Is there any default cache management system with Entity beans In
Why is ejbFindByPrimaryKey mandatory (EJB)
Why do we have a remove method in both EJBHome and EJBObject? (EJB)
How can I call one EJB from inside of another EJB (EJB)
What is the difference between a Server, a Container, and a
How is persistence implemented in enterprise beans (EJB)
What is an EJB Context (EJB)
Is method overloading allowed in EJB (EJB)
Should synchronization primitives be used on bean methods (EJB)
Question For Entity Beans, What happens to an instance field not mapped
Question What is a Message Driven Bean, What functions does a message
The EJB container implements the EJBHome and EJBObject classes. For
What is the advantage of putting an Entity Bean instance from the "Ready
Can a Session Bean be defined without ejbCreate() method (EJB)
Is it possible to share an HttpSession between a JSP and EJB? What
Is there any way to read values from an entity bean without locking it for
What is the difference between a "Coarse Grained" Entity Bean and a
What is EJBDoclet (EJB)
What are the main benefits of J2EE (EJB)
Name a few Design Patterns used in J2ee applications (EJB)
What is the deployment order for the deployed server components in
Why do the create() or find() method return the remote reference or a
Which XML parser comes with WebLogic Server 6.1 (EJB)
Can I use the getAttribute() and setAttribute() methods of Version 2.2 of
How can I run multiple instances of the same servlet class in the same
What technologies are included in J2EE (EJB)
What is the Java Authentication and Authorization Service (JAAS)
Must my bean-managed persistence mechanism use the WebLogic JTS
Must EJBs be homogeneously deployed across a cluster? Why? (EJB)
Is an XSLT processor bundled in WebLogic Server (EJB)
I plugged in a version of Apache Xalan that I downloaded from the
How do I increase WebLogic Server memory (EJB)
What causes Java.io exceptions in the log file of WebLogic Server (EJB)
What is the function of T3 in WebLogic Server (EJB)
What are the enhancements in EJB 2.0 specification with respect to
What are the enhancements in EJB 2.0 with respect to CMP (EJB)
Can you briefly describe about local interfaces (EJB)
What are the special design care that must be taken when you work with
What happens if remove( ) is never invoked on a session bean? (EJB)
What is the difference between creating a distributed application using
bean class implement the EJBObject class directly
What does isIdentical() method return in case of different type of
How should you type cast a remote object Why (EJB)
What should you do in a passivate method (EJB)
What is the relationship between local interfaces and container-managed
What does a remove method do for different cases of beans (EJB)
How does a container-managed relationship work (EJB)
What is the new basic requirement for a CMP entity bean class in 2.0
What are the basic classes required in the client for invoking an EJB (EJB)
What is the difference between Message Driven Beans and Stateless
What is the need for Clustering (EJB)
What are the benefits of Clustering (Workload Management) (EJB)
What are the types of Scaling (EJB)
What is Vertical Scaling (EJB)
What is Horizontal Scaling (EJB)
What is a Server Group (EJB)
What is a Clone (EJB)
What is Ripple Effect (EJB)
What level of Load Balancing is possible with EJBs (EJB)
What is the basic requirement for in-memory replication in
How JDBC services can be used in clustered environment? (EJB)
What are the services that should not be used in a Clustered
Mention some tools to cluster Web Servers (EJB)
What is in-memory replication (EJB)
What cannot be or is recommended not to be done using EJB (EJB)
What is t3 protocol in weblogic (EJB)
What design pattern would you use to reduce JNDI lookups (EJB)
What are the different XML files used in J2EE (EJB)
What is a design pattern (General)
Describe the visitor design pattern (General)
What is the difference between Internationalization and
What is the difference between a Portal server and an Application
What are the basic configurations that needs to be taken care before an
What is the Collections API (JavaUtil)
What is the List interface (JavaUtil)
What is the Vector class (JavaUtil)
What is an Iterator interface (JavaUtil)
Which java.util classes and interfaces support event handling (JavaUtil)
What is the GregorianCalendar class (JavaUtil)
What is the Locale class (JavaUtil)
What is the SimpleTimeZone class (JavaUtil)
What is the Map interface (JavaUtil)
What is the highest-level event class of the event-delegation
What is the Collection interface (JavaUtil)
What is the Set interface (JavaUtil)
What is the purpose of the enableEvents() method (JavaUtil)
What is the ResourceBundle class (JavaUtil)
What is the default size of the vector (JavaUtil)
How does an included file in jsp look in the compiled .java file (JavaUtil)
What is the Properties class (JavaUtil)
What is the difference between ArrayList and Vector (JavaUtil)
What is the difference between Iterator and Enumeration (JavaUtil)
What is the ResourceBundle class (JavaUtil)
How would you guarantee sorting of objects in a class that implements
How can u avoid the conflict between java.util.Date and
What is the difference b/w HashSet & LinkedHashSet (JavaUtil)
What is the query used to display all tables names in SQL Server (Query
How many types of JDBC Drivers are present and what are they (JDBC)
What is the fastest type of JDBC driver (JDBC)
What Class.forName will do while loading drivers (JDBC)
How to Retrieve Warnings (JDBC)
what are stored procedures How is it useful (JDBC)
How to call a Stored Procedure from JDBC (JDBC)
Is the JDBC-ODBC Bridge multi-threaded (JDBC)
Does the JDBC-ODBC Bridge support multiple concurrent open
What is cold backup, hot backup, warm backup recovery (JDBC)
When we will Denormalize data (JDBC)
What is the advantage of using PreparedStatement (JDBC)
What is a "dirty read" (JDBC)
What is Metadata and why should I use itm (JDBC)
Different types of Transaction Isolation Levels (JDBC)
What is 2 phase commit (JDBC)
How do you handle your own transaction (JDBC)
What is the normal procedure followed by a java client to access the
What is a data source (JDBC)
What are collection pools What are the advantages (JDBC)
How do you get Column names only for a table (SQL Server) Write the
What is the difference between cached rowset, jdbrowset and
Is thin driver provided by Oracle a type 4 driver (JDBC)
What are different types of isolation levels in JDBC and explain where you
What is the difference between Statement, PreparedStatement and
Who implements the methods of JDBC (java.sql.*) interfaces
Consider the following code:
What actually does Class.forName("mypackage.MyDriver"); method
If your SQL gets truncated in the process of execution, How would you
What is the difference between different JDBC drivers (JDBC)
How may messaging models do JMS provide for and what are they (JMS)
What is messaging (JMS)
What is point-to-point messaging (JMS)
Can two different JMS services talk to each other For instance, if A and B
What is the advantage of persistent message delivery compared to
How is a java object message delivered to a non-java Client (JMS)
What is MDB and What is the special feature of that (JMS)
Give an example of using the publish/subscribe model. (JMS)
What is the difference between the Mailing and Messaging (JMS)
What are the types of messaging (JMS)
What is publish/subscribe messaging (JMS)
Why doesn't the JMS API provide end-to-end synchronous message
What are the core JMS-related objects required for each JMS-enabled
What are the various message types supported by JMS (JMS)
What is the Role of the JMS Provider (JMS)
How does a typical client perform the communication (JMS)
Give an example of using the point-to-point model. (JMS)
How does the Application server handle the JMS Connection (JMS)
What protocols does JNDI provide an interface to (JNDI)
What is Context and InitialContext (JNDI)
What's the difference between JNDI lookup(), list(), listBindings(), and
Components of JNDI (JNDI)
Is JNDI a protocol Where is it used (JNDI)
What are native methods How do you use them (JNI)
Can we implement an interface in a JSP (JSP)
What is the difference between ServletContext and PageContext (JSP)
What is the difference in using request.getRequestDispatcher() and
How to pass information from JSP to included JSP (JSP)
What is the difference between directive include and jsp include (JSP)
What is the difference between RequestDispatcher and sendRedirect
How does JSP handle runtime exceptions (JSP)
How do you delete a Cookie within a JSP (JSP)
How do I mix JSP and SSI #include (JSP)
What is the difference between Model 1 and Model 2 architecture (JSP)
How can my application get to know when a HttpSession is
How can I implement a thread-safe JSP page (JSP)
How many JSP scripting elements are there and what are they (JSP)
In the Servlet 2.4 specification SingleThreadModel has been deprecates,
How do I include static files within a JSP page (JSP)
Can a JSP page process HTML FORM data (JSP)
What JSP lifecycle methods can I override (JSP)
How do I perform browser redirection from a JSP page (JSP)
Can a JSP page instantiate a serialized bean (JSP)
Can you make use of a ServletOutputStream object from within a JSP
What's a better approach for enabling thread-safe servlets and JSPs
Can I stop JSP execution while in the midst of processing a request (JSP)
How can I get to view any compilation/parsing errors at the client while
Is there a way to reference the "this" variable within a JSP page (JSP)
How do I instantiate a bean whose constructor accepts parameters using
Can I invoke a JSP error page from a servlet (JSP)
How can you store international / Unicode characters into a cookie (JSP)
What are the implicit objects (JSP)
Is JSP technology extensible (JSP)
How can I implement a thread-safe JSP page? What are the advantages
How does JSP handle run-time exceptions (JSP)
How do I prevent the output of my JSP or Servlet pages from being
How do I use comments within a JSP page (JSP)
Response has already been commited error. What does it mean (JSP)
How do I use a scriptlet to initialize a newly instantiated bean (JSP)
How can I enable session tracking for JSP pages if the browser has
How can I declare methods within my JSP page (JSP)
Is there a way I can set the inactivity lease period on a per-session basis
How can I set a cookie and delete a cookie from within a JSP page (JSP)
How does a servlet communicate with a JSP page (JSP)
How do I have the JSP-generated servlet subclass my own custom servlet
How can I prevent the word "null" from appearing in my HTML input text
How can I get to print the stacktrace for an exception occuring within my
How do you pass an InitParameter to a JSP (JSP)
How can my JSP page communicate with an EJB Session Bean (JSP)
How do you prevent the Creation of a Session in a JSP Page and
What is the difference between page and request scopes (JSP)
What is the difference between a tag handler and a tag handler
How do you precompile a jsp page (JSP)
How do you print the contents of a.jsp in b.jsp. How do you include the
a.jsp
How can we access a Vector from one jsp page to another jsp page. You
Why would a client application use JTA transactions (JTA)
How do I convert a numeric IP address like 192.18.97.39 into a hostname
What information is needed to create a TCP Socket (Networking)
What is the difference between URL instance and URLConnection
What are the two important TCP Socket classes (Networking)
Considering a=4 and b=10. Can you swap the values without using any
Write a query for getting the second maximum marks of students from
how to make default checkbox selecte(in struts) (Other)
How many types of protocol implementations does RMI have (RMI)
Does RMI-IIOP support dynamic downloading of classes (RMI)
Does RMI-IIOP support code downloading for Java objects sent by value
Can RMI and Corba based applications interact (RMI)
Assume an application needs security permissions granted before the
Request parameter How to find whether a parameter exists in the request
How can I send user authentication information while
Can we use the constructor, instead of init(), to initialize servlet (Servlets)
How can a servlet refresh automatically if some new data has entered the
The code in a finally clause will never fail to execute, right (Servlets)
What is HttpTunneling (Servlets)
What is Server Side Push and how is it implemented and when is it
The following are the contents of test.jsp
What are the phases in JSP (Servlets)
How many cookies can one set in the response object of the servlet
What?s the difference between sendRedirect( ) and forward( )
Is there some sort of event that happens when a session object gets
What do the differing levels of bean storage (page, session, app)
servlet containers service each request by creating
Can I just abort processing a JSP (Servlets)
What is URL Encoding and URL Decoding (Servlets)
Do objects stored in a HTTP Session need to be serializable Or can it
What is the difference between session and cookie (Servlets)
What is the difference between ServletContext and ServletConfig
What are the differences between GET and POST service
What is the difference between GenericServlet and HttpServlet (Servlets)
What is the Max amount of information that can be saved in a Session
Explain the status codes of HttpResponse object. (Servlets)
What is Servlet chaining (Servlets)
I am using servlets. I need to store an object NOT a string in a cookie. Is
Suppose that Myservlet implements SingleThreadModel and there are
The first time a Jsp page is requested which method is called (Servlets)
Assume there is a servlet which is placed inside a .jar file and the .jar file
How do I support both GET and POST protocol from the same
What is the difference between the doGet and doPost methods (Servlets)
How does one choose between overriding the doGet(), doPost(), and
What is the diffence between client side validations and server side
What is the directory structure to create a web application (Servlets)
How we invoke multi threading in servlet (Servlets)
Is Servlet a thread or a process (Servlets)
What happens if a Servlet is not loaded into memory (Servlets)
Can you please tell me how many instances of servlet will be created for a
In a single servlet program the three methods (i.e
What is the difference between 2 tier & 3 tier architecture (Servlets)
What are the Difference between Functions and Procedures (SQL)
What is the difference between UNION and UNION ALL (SQL)
What is a join and explain different types of joins. (SQL)
For 'n' number of SQL SELECT statements connected by UNION, how
In the WHERE clause what is BETWEEN and IN (SQL)
Is BETWEEN inclusive of the range values specified (SQL)
What is 'LIKE' used for in WHERE clause What are the wildcard
When do you use a LIKE statement (SQL)
What is a self join and give an example. (SQL)
What is a transaction (SQL)
What is ACID (SQL)
How do you perform a search based on part of a word? (SQL)
What is GROUP BY (SQL)
What is the difference between dropping, truncating and deleting from a
What are cursors Explain different types of cursors. What are the
What are triggers How to invoke a trigger on demand (SQL)
What is a tuple (SQL)
What errors would arise when you try to execute a query and at the same
How do you select second maximum marks from a Student table with a
How to display the dept information from department table. (Oracle
How to display the name and job for all employees. (Oracle DB) (SQL)
How to display name and salary for all employees. (Oracle DB) (SQL)
How to display employee number and total salary for each employee.
How to display employee name and annual salary for all employees.
How to display the names of all employees who are working in department
How to display the names of all employees working as clerks and drawing
I have the following deployed in my web.xml file.
How to display employee number and names for employees who earn
How to display names of employees who do not earn any commission.
How to display the names of employees who are working as clerk,
How to display the names of employees who are working in the company
How to display the list of employees who have joined the company before
How to display current date. (Oracle DB) (SQL)
How to display the list of users in your database (using log table). (Oracle
How to display the names of all tables from the current user. (Oracle
How to display the names of employees working in department number
How to display the names of employees whose name starts with alphabet
How to display employee names for employees whose name ends with
How to display the names of employees whose names have second
How to display the names of employees whose name is exactly five
How to display the names of employees who are not working as
How to display all rows from EMP table. The system should wait after
How to display the total number of employees working in the company.
How to display the total salary being paid to all employees. (Oracle
How to display the maximum salary from emp table. (Oracle DB) (SQL)
How to display the minimum salary from emp table. (Oracle DB) (SQL)
How to display the average salary from emp table. (Oracle DB) (SQL)
How to display the maximum salary being paid to CLERK. (Oracle
How to display the maximum salary being paid in dept no 20. (Oracle
How to display the min Sal being paid to any SALESMAN. (Oracle
How to display the average salary drawn by managers. (Oracle DB) (SQL)
How to display the total salary drawn by analyst working in dept no 40.
How to display the names of employees in order of salary i.e. the name of
How to display the names of employees in descending order of salary.
How to display the details from emp table in order of emp name. (Oracle
How to display empno, ename, deptno, and sal. Sort the output first
How to display the name of the employee along with their annual salary
How to display name, Sal, hra, pf, da, total Sal for each employee. The
How to display dept numbers and total number of employees within each
How to display the various jobs and total number of employees with each
How to display department numbers and total salary for each
How to display department numbers and maximum salary for each
How to display the various jobs and total salary for each job. (Oracle
How to display each job along with minimum sal being paid in each job
How to display the department numbers with more than three employees
How to display the various jobs along with total sal for each of the jobs
How to display the various jobs along with total number of employees in
How to display the name of emp who earns highest sal. (Oracle DB) (SQL)
How to display the employee number and name of employee working as
How to display the names of the salesman who earns a salary more than
How to display the names of clerks who earn salary more than that of
How to display the names of employees who earn a Sal more than that of
How to display the names of the employees who earn highest salary in
How to display the names of employees who earn highest salaries in their
How to display the employee names who are working in accountings
How to display the employee names who are working in Chicago. (Oracle
How to display the job groups having total salary greater then the
How to display the names of employees from department number 10 with
How to display the names of employee from department number 10 with
How to display the names of employees in Upper case. (Oracle DB) (SQL)
How to display the names of employees in lower case. (Oracle DB) (SQL)
How to display the name of employees in proper case. (Oracle DB) (SQL)
How to find out the length of your name using appropriate function.
How to display the length of all employees' names. (Oracle DB) (SQL)
How to display the name of the employee concatenate with EMP no.
How to Use appropriate function and extract 3 characters starting from 2
How to find the first occurrence of character a from the following string
How to Replace every occurrence of alphabet A with B in the string Allen's
How to display the information from EMP table. Wherever job 'manager'
How to display your age in days. (Oracle DB) (SQL)
How to display your age in months. (Oracle DB) (SQL)
How to display current date as 15th august Friday nineteen forty seven.
How to display the following output for each row from EMP table as 'scott
How to find the date of nearest Saturday after current day. (Oracle
How to display current time. (Oracle DB) (SQL)
How to display the date three months before the current date. (Oracle
How to display the common jobs from department number 10 and 20.
How to display the jobs found in department number 10 and 20 eliminate
How to display the jobs which are unique to dept no 10. (Oracle DB) (SQL)
How to display the details of those who do not have any person working
How to display the details of employees who are in sales dept and grade
How to display those who are not managers and who are managers any
How to display those employees whose name contains not less than 4
How to display those departments whose name start with 'S' while
How to display those employees whose manager name is JONES. (Oracle
How to display those employees whose salary is more than 3000 after
How to display all employees with there dept name. (Oracle DB) (SQL)
How to display ename who are working in sales dept. (Oracle DB) (SQL)
How to display employee name, deptname, salary and comm. for those
How to display those employees whose salary greater than his manager
How to display those employees who are working in the same dept where
How to display those employees who are not working under any manger.
How to display grade and employees name for the dept no 10 or 30 but
How to update the salary of each employee by 10% increments that are
How to delete those employees who joined the company before 31-
How to display employee name, job, deptname, location for all who are
How to display those employees whose manager names is Jones, and
How to display name and salary of ford if his Sal is equal to high Sal of
How to display employee name, his job, his dept name, his manager
How to List out all the employees name, job, and salary grade and
How to display employee name, his job and his manager. display also
How to find out the top 5 earner of company. (Oracle DB) (SQL)
How to display the name of those employees who are getting highest
How to display those employees whose salary is equal to average of
How to display dname where at least 3 are working and display only
How to display name of those managers name whose salary is more than
How to display those managers name whose salary is more than an
How to display employee name, Sal, comm and net pay for those
How to display those employees whose salary is less than his manager
How to find out the last 5(least) earner of the company (Oracle
How to find out the number of employees whose salary is greater than
How to display those manager who are not working under president but
How to delete those department where no employee working? (Oracle
How to delete those records from EMP table whose deptno not available
How to display those earners whose salary is out of the grade available in
How to display employee name, Sal, comm. and whose net pay is greater
How to display name of those employees who are going to retire 31-
How to display those employees whose salary is ODD value (Oracle
How to display those employees whose salary contains at least 4 digits
How to display those employees who joined in the company in the month
How to display those employees whose name contains "A" (Oracle
How to display those employees whose deptno is available in salary?
How to display those employees whose first 2 characters from hire datelast
How to display those employees whose 10% of salary is equal to the year
How to display those employees who are working in sales or research
How to display the grade of Jones (Oracle DB) (SQL)
How to display those employees who joined the company before 15th of
How to delete those records where no of employee in a particular
How to delete those employees who joined the company 21 years back
How to display the department name the no of characters of which is
How to display those employees who are working as manager? (Oracle
How to count the no of employees who are working as manager (use set
How to display the name of then dept those employees who joined the
How to display the manager who is having maximum number of
How to list out employees name and salary increased by 15% and
select empno,ename,lpad(concat('$',round(sal*115/100)),7) salary from
select * from EMPLOYEE_AND_JOB;
select to_char(hiredate,'month dd yyyy') from emp;
How to print a list of employees displaying 'Less Salary' if less than 1500
How to write query to calculate the length of employee has been with the
How to display those mangers who are getting less than his employees
How to print the details of all the employees who are sub ordinate to
How to display those who working as manager using co related sub query.
How to display those employees whose manger name is Jones and also
How to define variable representing the expressions used to calculate on
How to use the variable in a statement which finds all employees who can
How to find out how many mangers are there with out listing them.
How to find out the avg sal and avg total remuneration for each job type
How to check whether all employees number are indeed unique. (Oracle
How to list out the lowest paid employees working for each manager,
How to find out the all employees who joined the company before their
How to find out the employees who earned the highest Sal in each job
How to find out the employees who earned the min Sal for their job in
How to find out the most recently hired employees in each dept order by
How to display ename, sal and deptno for each employee who earn a Sal
How to display the department where there are no employees (Oracle
How to display the dept no with highest annual remuneration bill as
How to find in which year did most people join the company. display the
How to display avg sal figure for the dept (Oracle DB) (SQL)
How to write a query of display against the row of the most recently hired
How to display employees who can earn more than lowest Sal in dept no
How to find employees who can earn more than every employees in dept
How to select dept name dept no and sum of Sal (Oracle DB) (SQL)
How to find all dept's which have more than 3 employees (Oracle
How to display the half of the enames in upper case and remaining lower
How to create a copy of emp table. (Oracle DB) (SQL)
How to select ename if ename exists more than once. (Oracle DB) (SQL)
How to display all enames in reverse order. (Oracle DB) (SQL)
How to display those employee whose joining of month and grade is
How to display those employee whose joining date is available in dept no
How to display those employees name as follows A ALLEN, B BLAKE
How to list out the employees ename, sal, PF from emp (Oracle DB) (SQL)
How to create table emp with only one column empno (Oracle DB) (SQL)
How to add this column to emp table ename Varchar(20). (Oracle
How to add primary key constraint after the table has been created
How to increase the length of ename column to 30 characters. (Oracle
How to add salary column to emp table. (Oracle DB) (SQL)
I want to give a validation saying that sal cannot be greater 10,000(note
How to add column called as mgr to your emp table. This column should
How to add dept no column to your emp table. This dept no column
How to create table called as new emp. Using single command create this
How to create table called as newemp. This table should contain only
How to delete the rows of employees who are working in the company for
How to provide a commission to employees who are not earning any
Write a query, If any employee has commission his commission should be
How to display employee name and department name for each employee.
How to display employee number, name and location of the department
How to display ename, dname even if there no employees working in a
How to display employee name and his manager name. (Ora