Hitachi Most Frequently Asked Latest Advanced Java Interview Questions Answers
What Is The Highest-level Event Class Of The Event-delegation Model?
The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy.
What Event Results From The Clicking Of A Button?
The ActionEvent event is generated as the result of the clicking of a button.
How Can A Gui Component Handle Its Own Events?
A component can handle its own events by implementing the required event-listener interface and adding itself as its own event listener.
How Are The Elements Of A Gridbaglayout Organized?
The elements of a GridBagLayout are organized according to a grid. However, the elements are of different sizes and may occupy more than one row or column of the grid. In addition, the rows and columns may have different sizes.
What Advantage Do Java's Layout Managers Provide Over Traditional Windowing Systems?
Java uses layout managers to lay out components in a consistent manner across all windowing platforms. Since Java's layout managers aren't tied to absolute sizing and positioning, they are able to accomodate platform-specific differences among windowing systems.
What Is The Collection Interface?
The Collection interface provides support for the implementation of a mathematical bag - an unordered collection of objects that may contain duplicates.
What Modifiers Can Be Used With A Local Inner Class?
A local inner class may be final or abstract.
What Is The Difference Between Static And Non-static Variables?
A static variable is associated with the class as a whole rather than with specific instances of a class.
Non-static variables take on unique values with each object instance.
What Is The Difference Between The Paint() And Repaint() Methods?
The paint() method supports painting via a Graphics object. The repaint() method is used to cause paint() to be invoked by the AWT painting thread.
What Is The Purpose Of The File Class?
The File class is used to create objects that provide access to the files and directories of a local file system.
Can An Exception Be Rethrown?
Yes, an exception can be rethrown.
Which Math Method Is Used To Calculate The Absolute Value Of A Number?
The abs() method is used to calculate absolute values.
How Does Multithreading Take Place On A Computer With A Single Cpu?
The operating system's task scheduler allocates execution time to multiple tasks. By quickly switching between executing tasks, it creates the impression that tasks execute sequentially.
When Does The Compiler Supply A Default Constructor For A Class?
The compiler supplies a default constructor for a class if no other constructors are provided.
When Is The Finally Clause Of A Try-catch-finally Statement Executed?
The finally clause of the try-catch-finally statement is always executed unless the thread of execution terminates or an exception occurs within the execution of the finally clause.
Which Class Is The Immediate Superclass Of The Container Class?
Component.
If A Method Is Declared As Protected, Where May The Method Be Accessed?
A protected method may only be accessed by classes or interfaces of the same package or by subclasses of the class in which it is declared.
How Can The Checkbox Class Be Used To Create A Radio Button?
By associating Checkbox objects with a CheckboxGroup.
Which Non-unicode Letter Characters May Be Used As The First Character Of An Identifier?
The non-Unicode letter characters $ and _ may appear as the first character of an identifier
What Restrictions Are Placed On Method Overloading?
Two methods may not have the same name and argument list but different return types.
What Happens When You Invoke A Thread's Interrupt Method While It Is Sleeping Or Waiting?
When a task's interrupt() method is executed, the task enters the ready state. The next time the task enters the running state, an InterruptedException is thrown.
What Is Casting?
There are two types of casting, casting between primitive numeric types and casting between object references.
Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values.
Casting between object references is used to refer to an object by a compatible class, interface, or array type reference.
What Is The Highest-level Event Class Of The Event-delegation Model?
The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy.
What Event Results From The Clicking Of A Button?
The ActionEvent event is generated as the result of the clicking of a button.
How Can A Gui Component Handle Its Own Events?
A component can handle its own events by implementing the required event-listener interface and adding itself as its own event listener.
How Are The Elements Of A Gridbaglayout Organized?
The elements of a GridBagLayout are organized according to a grid. However, the elements are of different sizes and may occupy more than one row or column of the grid. In addition, the rows and columns may have different sizes.
What Advantage Do Java's Layout Managers Provide Over Traditional Windowing Systems?
Java uses layout managers to lay out components in a consistent manner across all windowing platforms. Since Java's layout managers aren't tied to absolute sizing and positioning, they are able to accomodate platform-specific differences among windowing systems.
Hitachi Most Frequently Asked Latest Advanced Java Interview Questions Answers |
What Is The Collection Interface?
The Collection interface provides support for the implementation of a mathematical bag - an unordered collection of objects that may contain duplicates.
What Modifiers Can Be Used With A Local Inner Class?
A local inner class may be final or abstract.
What Is The Difference Between Static And Non-static Variables?
A static variable is associated with the class as a whole rather than with specific instances of a class.
Non-static variables take on unique values with each object instance.
What Is The Difference Between The Paint() And Repaint() Methods?
The paint() method supports painting via a Graphics object. The repaint() method is used to cause paint() to be invoked by the AWT painting thread.
What Is The Purpose Of The File Class?
The File class is used to create objects that provide access to the files and directories of a local file system.
Can An Exception Be Rethrown?
Yes, an exception can be rethrown.
Which Math Method Is Used To Calculate The Absolute Value Of A Number?
The abs() method is used to calculate absolute values.
How Does Multithreading Take Place On A Computer With A Single Cpu?
The operating system's task scheduler allocates execution time to multiple tasks. By quickly switching between executing tasks, it creates the impression that tasks execute sequentially.
When Does The Compiler Supply A Default Constructor For A Class?
The compiler supplies a default constructor for a class if no other constructors are provided.
When Is The Finally Clause Of A Try-catch-finally Statement Executed?
The finally clause of the try-catch-finally statement is always executed unless the thread of execution terminates or an exception occurs within the execution of the finally clause.
Which Class Is The Immediate Superclass Of The Container Class?
Component.
If A Method Is Declared As Protected, Where May The Method Be Accessed?
A protected method may only be accessed by classes or interfaces of the same package or by subclasses of the class in which it is declared.
How Can The Checkbox Class Be Used To Create A Radio Button?
By associating Checkbox objects with a CheckboxGroup.
Which Non-unicode Letter Characters May Be Used As The First Character Of An Identifier?
The non-Unicode letter characters $ and _ may appear as the first character of an identifier
What Restrictions Are Placed On Method Overloading?
Two methods may not have the same name and argument list but different return types.
What Happens When You Invoke A Thread's Interrupt Method While It Is Sleeping Or Waiting?
When a task's interrupt() method is executed, the task enters the ready state. The next time the task enters the running state, an InterruptedException is thrown.
What Is Casting?
There are two types of casting, casting between primitive numeric types and casting between object references.
Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values.
Casting between object references is used to refer to an object by a compatible class, interface, or array type reference.
Post a Comment