Java page4 | Sample Papers

Samplepaperz.blogspot.com

Samplepaperz.blogspot.com
Home » » Java page4

Java page4

Written By Blogger on 25 August 2013 | 01:22



  • What is casting in Java Programming?

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 purpose of the File class in Java Programming?

The File class is used to create objects that provide access to the files and directories of a local file system.
  • How does multithreading take place on a computer with a single CPU in Java Programming?
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.
  • What restrictions are placed on method overloading in Java Programming?
Two methods may not have the same name and argument list but different return types.
  • What restrictions are placed on method overriding in Java Programming?
Overridden methods must have the same name, argument list, and return type. The overriding method may not limit the access of the method it overrides. The overriding method may not throw any exceptions that may not be thrown by the overridden method.


  • Name Container classes in Java Programming?

Container classes in Java:
Window,
Frame,
Dialog,
FileDialog,
Panel,
Applet,
or ScrollPane
  • What class allows you to read objects directly from a stream in Java Programming?
The ObjectInputStream class supports the reading of objects from input streams.
  • How are this() and super() used with constructors in Java Programming?

this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor in Java Programming.
  • How is it possible in Java Programming for two String objects with identical values not to be equal under the == operator?
The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located indifferent areas of memory.
  • What an I/O filter in Java Programming?

An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.
  • What is the Set interface in Java Programming?

The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements.
  • What is the purpose of the enableEvents() method in Java Programming?

The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event. The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods.
  • Is Java a super set of JavaScript?

No. They are completely different. Some syntax may be similar.


Job vacancy for Computer Science Engineering Freshers

For more Java Interview Questions and answers DOWNLOAD PDF from here.



Other Important Downloads











25 Aug 2013 Albert Augustine

0 comments:

Post a Comment

Search