Dassault Systemes Most Frequently Asked Latest Advanced Java Interview Questions Answers
What Is The Collections Api?
The Collections API is a set of classes and interfaces that support operations on collections of objects.
Which Characters May Be Used As The Second Character Of An Identifier, But Not As The First Character Of An Identifier?
The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier.
What Is The List Interface?
The List interface provides support for ordered collections of objects.
How Does Java Handle Integer Overflows And Underflows?
It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.
What Is The Vector Class?
The Vector class provides the capability to implement a growable array of objects.
What Modifiers May Be Used With An Inner Class That Is A Member Of An Outer Class?
A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.
What Is An Iterator Interface?
The Iterator interface is used to step through the elements of a Collection.
What Is The Difference Between The >> And >>> Operators?
The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.
Which Method Of The Component Class Is Used To Set The Position And Size Of A Component?
setBounds() method is used to set the position and size of a component.
What Is The Difference Between Yielding And Sleeping?
When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.
Which Java.util Classes And Interfaces Support Event Handling?
The EventObject class and the EventListener interface support event processing.
Is Sizeof A Keyword?
The sizeof operator is not a keyword.
What Are Wrapped Classes?
Wrapped classes are classes that allow primitive types to be accessed as objects.
Does Garbage Collection Guarantee That A Program Will Not Run Out Of Memory?
Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection.
What Restrictions Are Placed On The Location Of A Package Statement Within A Source Code File?
A package statement must appear as the first line in a source code file (excluding blank lines and comments).
Can An Object's Finalize() Method Be Invoked While It Is Reachable?
An object's finalize() method cannot be invoked by the garbage collector while the object is still reachable. However, an object's finalize() method may be invoked by other objects.
What Is The Immediate Superclass Of The Applet Class?
Panel.
What Is The Difference Between Preemptive Scheduling And Time Slicing?
Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks.
The scheduler then determines which task should execute next, based on priority and other factors.
What Is A Transient Variable?
A transient variable is a variable that may not be serialized.
Which Containers Use A Border Layout As Their Default Layout?
The Window, Frame and Dialog classes use a border layout as their default layout.
Why Do Threads Block On I/o?
Threads block on I/O (that is enters the waiting state) so that other threads may execute while the I/O Operation is performed.
How Are Observer And Observable Used?
Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.
What Is Synchronization And Why Is It Important?
With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object's value. This often leads to significant errors.
Name Three Component Subclasses That Support Painting.
The Canvas, Frame, Panel, and Applet classes support painting.
What Value Does Readline() Return When It Has Reached The End Of A File?
The readLine() method returns null when it has reached the end of a file.
What Is The Immediate Superclass Of The Dialog Class?
Window.
What Is Clipping?
Clipping is the process of confining paint operations to a limited area or shape.
What Is The Collections Api?
The Collections API is a set of classes and interfaces that support operations on collections of objects.
Which Characters May Be Used As The Second Character Of An Identifier, But Not As The First Character Of An Identifier?
The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier.
What Is The List Interface?
The List interface provides support for ordered collections of objects.
How Does Java Handle Integer Overflows And Underflows?
It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.
What Is The Vector Class?
The Vector class provides the capability to implement a growable array of objects.
What Modifiers May Be Used With An Inner Class That Is A Member Of An Outer Class?
A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.
What Is An Iterator Interface?
The Iterator interface is used to step through the elements of a Collection.
What Is The Difference Between The >> And >>> Operators?
The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.
Which Method Of The Component Class Is Used To Set The Position And Size Of A Component?
setBounds() method is used to set the position and size of a component.
What Is The Difference Between Yielding And Sleeping?
When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.
Which Java.util Classes And Interfaces Support Event Handling?
The EventObject class and the EventListener interface support event processing.
Dassault Systemes Most Frequently Asked Latest Advanced Java Interview Questions Answers |
Is Sizeof A Keyword?
The sizeof operator is not a keyword.
What Are Wrapped Classes?
Wrapped classes are classes that allow primitive types to be accessed as objects.
Does Garbage Collection Guarantee That A Program Will Not Run Out Of Memory?
Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection.
What Restrictions Are Placed On The Location Of A Package Statement Within A Source Code File?
A package statement must appear as the first line in a source code file (excluding blank lines and comments).
Can An Object's Finalize() Method Be Invoked While It Is Reachable?
An object's finalize() method cannot be invoked by the garbage collector while the object is still reachable. However, an object's finalize() method may be invoked by other objects.
What Is The Immediate Superclass Of The Applet Class?
Panel.
What Is The Difference Between Preemptive Scheduling And Time Slicing?
Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks.
The scheduler then determines which task should execute next, based on priority and other factors.
What Is A Transient Variable?
A transient variable is a variable that may not be serialized.
Which Containers Use A Border Layout As Their Default Layout?
The Window, Frame and Dialog classes use a border layout as their default layout.
Why Do Threads Block On I/o?
Threads block on I/O (that is enters the waiting state) so that other threads may execute while the I/O Operation is performed.
How Are Observer And Observable Used?
Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.
What Is Synchronization And Why Is It Important?
With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object's value. This often leads to significant errors.
Name Three Component Subclasses That Support Painting.
The Canvas, Frame, Panel, and Applet classes support painting.
What Value Does Readline() Return When It Has Reached The End Of A File?
The readLine() method returns null when it has reached the end of a file.
What Is The Immediate Superclass Of The Dialog Class?
Window.
What Is Clipping?
Clipping is the process of confining paint operations to a limited area or shape.
Post a Comment