If you are Satisifed please tell others || If you are Unsatisfied please Report us || If you need any material or information please contact us. We will provide you within 24 hrs

Thursday, September 8, 2011

Java Interview Questions


  • Can a Byte object be cast to a double value?

  • Can a double value be cast to a byte?

  • Can an anonymous class be declared as implementing an interface and

  • Can an exception be rethrown?

  • Can an Interface be final?

  • Can an Interface have an inner class?

  • Can an object be garbage collected while it is still reachable?

  • Can an object be garbage collected while it is still reachable?

  • Can there be an abstract class with no abstract methods in it?

  • Can we define private and protected modifiers for variables in

  • Can we overload main method in java?

  • Does a class inherit the constructors of its superclass?

  • How are commas used in the intialization and iteration parts of a for

  • How are the elements of a BorderLayout organized?

  • How are the elements of a CardLayout organized?


  • How are the elements of a GridBagLayout organized?

  • How can a GUI component handle its own events?

  • How can the Checkbox class be used to create a radio button?

  • How is rounding performed under integer division?

  • How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8

  • How many times may an object's finalize() method be invoked by the

  • I made my class Cloneable but I still get 'Can't access protected

  • If a class is declared without any access modifiers, where may the

  • If a method is declared as protected, where may the method be

  • If a variable is declared as private, where may the variable be

  • In which package are most of the AWT events that support the

  • Is "abc" a primitive value?

  • Is a class a subclass of itself?

  • Is null a keyword?

  • Is the ternary operator written x : y ? z or x ? y : z ?

  • Is there any difference between the two declarations, 1. int foo(int

  • Name the eight primitive Java types.

  • Name three Component subclasses that support painting

  • What advantage do Java's layout managers provide over traditional

  • What are order of precedence and associativity, and how are they

  • What are some alternatives to inheritance?

  • What are the different identifier states of a Thread?

  • What are the problems faced by Java programmers who dont use layout

  • What are wrapped classes?

  • What class is the top of the AWT event hierarchy?

  • What classes of exceptions may be caught by a catch clause?

  • What does it mean that a method or field is "static"?

  • What interface is extended by AWT event listeners?

  • What is a layout manager?

  • What is a local, member and a class variable?

  • What is a native method?

  • What is an abstract method?

  • What is an object's lock and which object's have locks?

  • What is casting?

  • What is clipping?

  • What is Externalizable?

  • What is synchronization and why is it important?

  • What is the % operator?

  • What is the advantage of the event-delegation model over the earlier

  • What is the argument type of a program's main() method?

  • What is the catch or declare rule for method declarations?

  • What is the difference between a break statement and a continue

  • What is the difference between a Choice and a List?

  • What is the difference between a MenuItem and a CheckboxMenuItem?

  • What is the difference between a static and a non-static inner class?

  • What is the difference between a while statement and a do statement?


  • What is the difference between a Window and a Frame?

  • What is the difference between an Applet and an Application?

  • What is the difference between preemptive scheduling and time

  • What is the difference between the Boolean & operator and the &&

  • What is the difference between the Font and FontMetrics classes?

  • What is the difference between the paint() and repaint() methods?

  • What is the difference between the Reader/Writer class hierarchy and

  • What is the hidden bug with the following statement? assert(val++ !=

  • What is the immediate superclass of the Applet class?

  • What is the immediate superclass of the Dialog class?

  • What is the preferred size of a component?

  • What is the purpose of finalization?

  • What is the purpose of the File class?

  • What is the purpose of the finally clause of a try-catch-finally

  • What is the purpose of the System class?

  • What is the range of the char type?

  • What is the relationship between an event-listener interface and an

  • What is the relationship between clipping and repainting?

  • What is the relationship between the Canvas class and the Graphics

  • What is the return type of a program's main() method?

  • What is the subtle error in the following code segment?

  • What modifiers are allowed for methods in an Interface?

  • What modifiers can be used with a local inner class?

  • What modifiers may be used with an inner class that is a member of an

  • What modifiers may be used with an interface declaration?

  • What must a class do to implement an interface?

  • What restrictions are placed on method overloading?

  • What restrictions are placed on the location of a package statement

  • What restrictions are placed on the values of each case of a switch

  • What value does read() return when it has reached the end of a file?

  • When can an object reference be cast to an interface reference?

  • When does the compiler supply a default constructor for a class?

  • Which characters may be used as the second character of an

  • Which class is extended by all other classes?

  • Which class is the immediate superclass of the MenuComponent class

  • Which class should you use to obtain design information about an

  • Which Component subclass is used for drawing and painting?

  • Which containers may have a MenuBar?

  • Which containers use a border Layout as their default layout?

  • Which containers use a FlowLayout as their default layout?

  • Which Java operator is right associative?

  • Which non-Unicode letter characters may be used as the first

  • Why do threads block on I/O?

  • Why isn't there operator overloading? 

Comments

Related Posts Plugin for WordPress, Blogger...

Stats

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites