Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger


Thursday 27 November 2008

J2SE Interview Questions and Answers 3

What is CODEBASE ?
Works together with the code attribute in the tag to give a complete specification of where to find the main applet class file: code specifies the name of the file, and codebase specifies the URL of the directory containing the file.

What is comment ?
In a program, explanatory text that is ignored by the compiler. In programs written in the Java programming language, comments are delimited using // or /*...*/.

What is commit ?
The point in a transaction when all updates to any resources involved in the transaction are made permanent.

What is compilation unit ?
The smallest unit of source code that can be compiled. In the current implementation of the Java platform, the compilation unit is a file.

What is compiler ?
A program to translate source code into code to be executed by a computer. The Java compiler translates source code written in the Java programming language into bytecode for the Java virtual machine1. See also interpreter.

What is compositing ?
The process of superimposing one image on another to create a single image.

What is constructor ?
A pseudo-method that creates an object. In the Java programming language, constructors are instance methods with the same name as their class. Constructors are invoked using the new keyword.

What is const ?
A reserved Java keyword not used by current versions of the Java programming language.

What is continue ?
A Java keyword used to resume program execution at the end of the current loop. If followed by a label, continue resumes execution where the label occurs.

What is conversational state ?
The field values of a session bean plus the transitive closure of the objects reachable from the bean's fields. The transitive closure of a bean is defined in terms of the serialization protocol for the Java programming language, that is, the fields that would be stored by serializing the bean instance.

What is CORBA ?
Common Object Request Broker Architecture. A language independent, distributed object model specified by the Object Management Group (OMG).

What is core class ?
A public class (or interface) that is a standard member of the Java Platform. The intent is that the core classes for the Java platform, at minimum, are available on all operating systems where the Java platform runs. A program written entirely in the Java programming language relies only on core classes, meaning it can run anywhere. .

What is core packages ?
The required set of APIs in a Java platform edition which must be supported in any and all compatible implementations.

What is credentials ?
The information describing the security attributes of a principal. Credentials can be acquired only through authentication or delegation.

What is critical section ?
A segment of code in which a thread uses resources (such as certain instance variables) that can be used by other threads, but that must not be used by them at the same time.

What is declaration ?
A statement that establishes an identifier and associates attributes with it, without necessarily reserving its storage (for data) or providing the implementation (for methods). See also definition.

No comments:

Post a Comment