View Full Version : Core Java - exception handeling
- sameer
- Either java is pure oop or partial oop?
- what is use of Finalizer method?
- When do we declare a method or class abstract?
- What is an Iterator interface?
- What is the relationship between the Canvas class and the Graphics class?
- Which class should you use to obtain design information about an object?
- What is the purpose of the finally clause of a try-catch-finally statement?
- What methods are used to get and set the text label displayed by a Button object?
- What is the difference between a field variable and a local variable?
- To what value is a variable of the String type automatically initialized?
- What Checkbox method allows you to tell if a Checkbox is checked?
- If a variable is declared as private, where may the variable be accessed?
- What classes of exceptions may be thrown by a throw statement?
- What are wrapped classes?
- What is the catch or declare rule for method declarations?
- What happens when a thread cannot acquire a lock on an object?
- To what value is a variable of the Boolean type automatically initialized?
- What modifiers may be used with an interface declaration?
- What is the purpose of garbage collection?
- What is the difference between the paint() and repaint() methods?
- What is the argument type of a program’s main() method?
- What's new with the stop (), suspend () and resume () methods in JDK 1.2?
- What happens when you add a double value to a String?
- Which arithmetic operations can result in the throwing of an ArithmeticException?
- What classes of exceptions may be caught by a catch clause?
- What is the difference between static and non-static variables?
- Name two subclasses of the TextComponent class.
- What is the difference between a Window and a Frame?
- What is the relationship between clipping and repainting?
- What happens when you invoke a thread's interrupt method while it is sleeping or wait
- Which package is always imported by default?
- What is the difference between the prefix and postfix forms of the ++ operator?
- What are E and PI?
- Which non-Unicode letter characters may be used as the first character of an identifi
- What event results from the clicking of a button?
- For which statements does it make sense to use a label?
- What is an abstract method?
- Which Container method is used to cause a container to be laid out and redisplayed?
- Name three Component subclasses that support painting.
- What is synchronization and why is it important?
- Which characters may be used as the second character of an identifier, but not as the
- What is a native method?
- Which class is the immediate superclass of the MenuComponent class?
- Can a double value be cast to a byte?
- What is an object's lock and which objects have locks?
- Does a class inherit the constructors of its superclass?
- What advantage do Java's layout managers provide over traditional windowing systems?
- When does the compiler supply a default constructor for a class?
- If an object is garbage collected, can it become reachable again?
- What is the ResourceBundle class?
- How are Observer and Observable used?
- What is the Collections API?
- What is the immediate superclass of the Dialog class?
- What is the difference between the Boolean ‘&’ operator and the ‘&&’ operator?
- What method is invoked to cause an object to begin executing as a separate thread?
- What is the difference between a static and a non-static inner class?
- Can an object be garbage collected while it is still reachable?
- How are the elements of a CardLayout organized?
- What is the difference between a while statement and a do statement?
- Which Math method is used to calculate the absolute value of a number?
- What is the difference between a Choice and a List?
- How is it possible for two String objects with identical values not to be equal under
- What is your platform's default character encoding?
- Can an abstract class be final?
- What are the problems faced by Java programmers who don't use layout managers?
- What restrictions are placed on method overriding?
- What is the difference between the File and RandomAccessFile classes?
- When is the finally clause of a try-catch-finally statement executed?
- What is the Collection interface?
- Is a class a subclass of itself?
- Name the eight primitive Java types.
- How is rounding performed under integer division?
- How are the elements of a BorderLayout organized?
- What value does read() return when it has reached the end of a file?
- Which Java operator is right associative?
- How many times may an object's finalize () method be invoked by the garbage collector
- What is the range of the short type?
- What is the range of the char type?
- Can an anonymous class be declared as implementing an interface and extending a class
- What is clipping?
- Does garbage collection guarantee that a program will not run out of memory?
- How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?
- What is the List interface?
- What method is used to specify a container's layout?
- Which containers use a border Layout as their default layout?
- Can a lock be acquired on a class?
- What state does a thread enter when it terminates its processing?
- What modifiers may be used with an inner class that is a member of an outer class?
- Which java.util classes and interfaces support event handling?
- What is the immediate superclass of the Applet class?
- What value does readLine() return when it has reached the end of a file?
- When a thread blocks on I/O, what state does it enter?
- When a thread is created and started, what is its initial state?
- In which package are most of the AWT events that support the event-delegation model d
- What is the GregorianCalendar class?
- What is the purpose of the wait(), notify(), and notifyAll() methods?
- What are the high-level thread states?
- Which class is extended by all other classes?
- What is the difference between the Reader/Writer class hierarchy and the InputStream/
- What is the SimpleTimeZone class?
- What is the purpose of the System class?
- What is the relationship between an event-listener interface and an event-adapter cla
- How are the elements of a GridBagLayout organized?
- What modifiers can be used with a local inner class?
- How does multithreading take place on a computer with a single CPU?
- If a method is declared as protected, where may the method is accessed?
- What restrictions are placed on method overloading?
- What is the return type of a program's main() method?
- Under what conditions is an object's finalize () method invoked by the garbage collec
- What are the legal operands of the instanceof operator?
- What is the purpose of the enableEvents() method?
- How are this and super used?
- What happens if an exception is not caught?
- What is numeric promotion?
- What is the purpose of a statement block?
- What is the List interface?
- What class allows you to read objects directly from a stream?
- What is the difference between the JDK 1.02 event model and the event-delegation mode
- How are the elements of a GridLayout organized?
- What is a void return type?
- What is a compilation unit?
- What is a layout manager?
- What happens if a try-catch-finally statement does not have a catch clause to handle
- Can try statements be tested?
- What modifiers may be used with a top-level class?
- What is the difference between an if statement and a switch statement?
- What is the difference between a Scrollbar and a ScrollPane?
- How can a dead thread be restarted?
- What interface must an object implement before it can be written to a stream as an ob
- Are true and false keywords?
- What an I/O filter?
- Why are the methods of the Math class static?
- What is the relationship between a method's throws clause and the exceptions that can
- What class of exceptions is generated by the Java run-time system?
- What is casting?
- How can the Checkbox class be used to create a radio button?
- Can an exception be rethrown?
- What is the highest-level event class of the event-delegation model?
- What restrictions are placed on the values of each case of a switch statement?
- Which TextComponent method is used to set a TextComponent to the read-only state?
- If a class is declared without any access modifiers, where may the class be accessed?
- Is the ternary operator written x : y ? z or x ? y : z ?
- When can an object reference be cast to an interface reference?
- What is the difference between the String and StringBuffer classes?
- How are Java source code files named?
- What is the advantage of the event-delegation model over the earlier event-inheritanc
- What must a class do to implement an interface?
- What is the purpose of finalization?
- What is a task's priority and how is it used in scheduling?
- Can a for statement loop indefinitely?
- What restrictions are placed on the location of a package statement within a source c
- Is sizeof a keyword?
- What is the difference between the >> and >>> operators?
- How does Java handle integer overflows and underflows?
- What is the preferred size of a component?
- Why do threads block on I/O?
- What is the difference between a public and a non-public class?
- What are three ways in which a thread can enter the waiting state?
- What interface is extended by AWT event listeners?
- What happens when you add a double value to a String?
- What is the Set interface?
- What state is a thread in when it is executing?
- How are this() and super() used with constructors?
- Name four Container classes.
- Which class is the immediate superclass of the Container class?
- What is the purpose of the File class?
- How can a GUI component handle its own events?
- Is "abc" a primitive value?
- Is &&= a valid Java operator?
- What is the Map interface?
- What is the difference between the Font and FontMetrics classes?
- What is the % operator?
- What is the Dictionary class?
- Can a Byte object be cast to a double value?
- How are commas used in the initialization and iteration parts of a for statement?
- Which containers may have a MenuBar?
- What is the difference between a break statement and a continue statement?
- What is the Locale class?
- What is the purpose of the Runtime class?
- Name three subclasses of the Component class.
- What invokes a thread's run() method?
- What is the immediate superclass of Menu?
- What class is the top of the AWT event hierarchy?
- What is the difference between a MenuItem and a CheckboxMenuItem?
- What are order of precedence and associativity, and how are they used?
- What is the difference between preemptive scheduling and time slicing?
- Can an object's finalize() method be invoked while it is reachable?
- What is the difference between yielding and sleeping?
- Which method of the Component class is used to set the position and size of a compone
- What is the Vector class?
- Which containers use a FlowLayout as their default layout?
- Is null a keyword?
- What is a transient variable?
- The Java source code can be created in
- What is an abstract method
- What is the Locale class
- What is the Dictionary class
- Is &&= a valid Java operator
- What is the Map interface
- What is casting
- What is the % operator
- What is the Set interface
- What an I/O filter
- What are E and PI
- Are true and false keywords
- What is clipping
- How are this and super used
- Name the eight primitive Java
- What is the range of the char
- Can a double value be cast to
- Is "abc" a primitive value
- What is a layout manager
- Is a class a subclass of
- What is a native method
- What are wrapped classes
- What is the purpose of the Runtime
- What is the SimpleTimeZone
- Name four Container
- What is a compilation unit
- Can an exception be rethrown
- Is sizeof a keyword
- What is the purpose of the System
- What is the Collection interface
- Which class is extended by all other
- What is the Vector class
- How can a dead thread be
- What invokes a thread's run()
- What is the immediate superclass of
- What is the purpose of finalization
- What is the purpose of the File
- Can an abstract class be
- What are the high-level thread
- What is the List interface
- What class is the top of the AWT event
- What is a void return type
- Can a Byte object be cast to a
- What is the ResourceBundle
- How can a GUI component handle its
- How are Java source code files
- Can an object's finalize() method be invoked
- What is numeric promotion
- What modifiers can be used with a
- What must a class do to implement
- Name three Component subclasses that
- Why are the methods of the Math
- What modifiers may be used with an interface
- What state is a thread in when it is
- Can try statements be
| |