OpenText Advanced Java Interview Questions Answers

OpenText Most Frequently Asked Latest Advanced Java Interview Questions Answers

Will The General Public Have Access To The Infobus Apis?

Yes, under the usual terms of the JDK license. The specification and technology preview are available in our products archive.

How Does The Infobus Relate To Javabeans?

The InfoBus specification extends JavaBeans by providing a set of enhanced interfaces to share and exchange dynamic data.

What Is Glasgow?

Glasgow - the code name for add-ins to the JavaBeans specification. It contains following specifications
  • The Extensible Runtime Containment and Services Protocol.
  • The Drag and Drop Subsystem for the Java Foundation Classes.
  • The JavaBeans Activation Framework.
How To Create Bound Property In Bean Application?

To create the title property as a bound property for the MyBean component in the NetBeans GUI Builder, perform the following sequence of operations

Right-click the Bean Patterns node in the MyBean class hierarchy.
Select Add|Property from the pop-up menu.
Fill the New Property Pattern form and click OK.

What Is The Serializable Class In Java Beans?

Any class is serializable as long as that class or a parent class implements the java.io.Serializable interface. Examples of serializable classes include Component, String, Date, Vector, and Hashtable.

How To Control Serialization In Java Beans?

Three ways to control serilization in java beans

1.Automatic serialization, implemented by the Serializable interface. The Java serialization software serializes the entire object, except transient and static fields.
2.Customized serialization. Selectively exclude fields you do not want serialized by marking with the transient (or static) modifier.
3.Customized file format, implemented by the Externalizable interface and its two methods. Beans are written in a specific file format.
OpenText Most Frequently Asked Latest Advanced Java Interview Questions Answers
OpenText Most Frequently Asked Latest Advanced Java Interview Questions Answers

What Is Introspection Properties In Java Beans?

Introspection is the automatic process of analyzing a bean's design patterns to reveal the bean's properties, events, and methods.

What Are Introspection Api In Java Beans?

The JavaBeans API architecture supplies a set of classes and interfaces to provide introspection. The BeanInfo (in the API reference documentation) interface of the java.beans package defines a set of methods that allow bean implementors to provide explicit information about their beans. By specifying BeanInfo for a bean component, a developer can hide methods, specify an icon for the toolbox, provide descriptive names for properties, define which properties are bound properties, and much more.

The getBeanInfo(beanName) (in the API reference documentation) of the Introspector (in the API reference documentation) class can be used by builder tools and other automated environments to provide detailed information about a bean. The getBeanInfo method relies on the naming conventions for the bean's properties, events, and methods. A call to getBeanInfo results in the introspection process analyzing the bean?s classes and superclasses.

What Is Bean Customization?

Customization provides a means for modifying the appearance and behavior of a bean within an application builder so it meets your specific needs. There are several levels of customization available for a bean developer to allow other developers to get maximum benefit from a bean?s potential functionality.

1.By using a property editor. Each bean property has its own property editor. The NetBeans GUI Builder usually displays a bean's property editors in the Properties window. The property editor that is associated with a particular property type edits that property type.
2. By using customizers. Customizers give you complete GUI control over bean customization. Customizers are used where property editors are not practical or applicable. Unlike a property editor, which is associated with a property, a customizer is associated with a bean.

What Is Ejb Container?

A container that implements the EJB component contract of the J2EE architecture. This contract specifies a runtime environment for enterprise beans that includes security, concurrency, life-cycle management, transactions, deployment, naming, and other services. An EJB container is provided by an EJB or J2EE server.

What Is Ejb Context?

A vendor that supplies an EJB container. An object that allows an enterprise bean to invoke services provided by the container and to obtain the information about the caller of a client-invoked method.

What Is Ejb Home Object?

An object that provides the life-cycle operations (create, remove, find) for an enterprise bean. The class for the EJB Home object is generated by the container's deployment tools. The EJB Home object implements the enterprise bean's Home interface. The client references an EJB Home object to perform life-cycle operations on an EJB object. The client uses JNDI to locate an EJB Home object.

What Is Ejb Object?

An object whose class implements the enterprise bean's remote interface. A client never references an enterprise bean instance directly. A client always references an EJB object. The class of an EJB object is generated by a container's deployment tools.

What Is Entity Bean?

An enterprise bean that represents persistent data maintained in a database. An entity bean can manage its own persistence or can delegate this function to its container. An entity bean is identified by a primary key. If the container in which an entity bean is hosted crashes, the entity bean, its primary key, and any remote references survive the crash.

What Is Ejb Server?

Software that provides services to an EJB container. For example, an EJB container typically relies on a transaction manager that is part of the EJBserver to perform the two-phase commit across all the participating resource managers. The J2EE architecture assumes that an EJB container is hosted by an EJBserver from the same vendor, so it does not specify the contract between these two entities. An EJB server can host one or more EJB containers.

What Is Enterprise Information System?

The applications that constitute an enterprise's existing system for handling companywide information. These applications provide an information infrastructure for an enterprise. An enterpriseinformation system offers a well-defined set of services to its clients. These services are exposed to clients as local or remote interfaces or both. Examples of enterprise information systems include enterprise resource planning systems, mainframe transaction processing systems, and legacy database systems.

What Is Enterprise Javabeans?

A component architecture for the development and deployment of object-oriented, distributed, enterprise-level applications. Applications written using the Enterprise JavaBeans architecture are scalable, transactional, and secure.

What Is Enterprise Javabeans Query Language?

Defines the queries for the finder and select methods of an entity bean having container-managed persistence. A subset of SQL92, EJB QL has extensions that allow navigation over the relationships defined in an entity bean's abstract schema.

What Is Enterprise Bean Provider?

An application developer who produces enterprise bean classes, remote and Interview questions - Home interfaces, and deployment descriptor files, and packages them in an EJB JAR file.

What Is An Entity?

A distinct, individual item that can be included in an XML document by referencing it. Such an entity reference can name an entity as small as a character (for example, <, which references the less-than symbol or left angle bracket, <). An entity reference can also reference an entire document, an external entity, or a collection of DTD definitions.

What Is Entity Reference?

A reference to an entity that is substituted for the reference when the XML document is parsed. It can reference a predefined entity such as or reference one that is defined in the DTD. In the XML data, the reference could be to an entity that is defined in the local subset of the DTD or to an external XML file (an external entity). The DTD can also carve out a segment of DTD specifications and give it a name so that it can be reused (included) at multiple points in the DTD by defining a parameter entity.

What Are The Security Implications For Downloading Beans Over The Internet?

JavaBeans does not add any security features to the Java platform. Rather, JavaBeans components have full access to the broad range of security features that are part of the Java platform. JavaBeans components can be used to build a range of different kinds of solutions from full-fledged Java desktop applications to web-based Applets.

Why Do I Get A Duplicate Name Error When Loading A Jar File?

The most common reason for a "java.lang.ClassFormatError: Duplicate name" error is that a .class file in the JAR contains a class whose class name is different from the expected name. So for example if you have a file called "a/B.class" and it contains a class called "B" or "a.X" instead of the class "a.B" then you will get this error.

The most common causes for this problem are either forgetting to include a "package a;" statement or having a "package" statement with the wrong name.

What Is The Relationship Between Sun S Jfcs And Javabeans?

The JFC (Java Foundation Classes) is based upon the AWT (Abstract Windowing Toolkit), which has been part of the Java platform from the beginning. JFC effectively adds a richer set of visual elements for building JavaBeans components and applications. See the JFC web site for more information.

Are There Javabeans Components Available That I Can Buy Today?

Yes. A large number of companies, both large and small, have announced their plans to deliver JavaBeans-based products.

What Kind Of Industry Support Exists For Javabeans?

A coalition of industry leaders in component development worked with JavaSoft to create the JavaBeans specification, which was released to the Internet for public comments on September 4, 1996. The "frozen" JavaBeans specification combines the work of Apple, Borland, IBM, JustSystem, Microsoft, Netscape, Rogue Wave, SunSoft and Symantec and many, many others... We're very pleased to see the tools community swiftly embracing JavaBeans by announcing support for JavaBeans in their visual application builder tools.

Why A Component Architecture For The Java Platform?

JavaBeans brings the extraordinary power of the Java platform to component development, offering the ideal environment for a developer who wants to extend the concept of reusable component development beyond one platform and one architecture to embrace every platform and every architecture in the industry.

Is Javabeans A Complete Component Architecture?

JavaBeans is a complete component model. It supports the standard component architecture features of properties, events, methods, and persistence. In addition, JavaBeans provides support for introspection (to allow automatic analysis of a JavaBeanscomponent) and customization (to make it easy to configure a JavaBeans component).

Why Are Component Architectures Useful?

Developers are turning to creating components rather than monolithic applications to free themselves from slow, expensive application development, and to build up a portable, reusable code base. This enables developers to quickly attack new market opportunities, new joint development opportunities, and new ways to sell smaller packages of software.

What Is A Bean? Why Is Not A Bean An Applet?

JavaBeans components, or Beans, are reusable software components that can be manipulated visually in a builder tool. Beans can be combined to create traditional applications, or their smaller web-oriented brethren, applets. In addition, applets can be designed to work as reusable Beans.

Individual Beans will function quite differently, but typical unifying features that distinguish a Bean are

Introspection: enables a builder tool to analyze how a Bean works.
  • Customization: enables a developer to use an app builder tool to customize the appearance and behavior of a Bean.
  • Events: enables Beans to communicate and connect together.
  • Properties: enable developers to customize and program with Beans.
  • Persistence: enables developers to customize Beans in an app builder, and then retrieve those Beans, with customized features intact, for future use.
Difference Between Java Bean And Bean?

A Java Bean is a software component written in the Java programming language that conforms to the JavaBeans component specification. The JavaBeans APIs became part of the "core" Java APIs as of the 1.1 release of the JDK. The JavaBeans specification defines a Java-based software component model that adds a number of features to the Java programming language. Some of these features include
  • introspection
  • customization
  • events
  • properties
  • persistence
Enterprise JavaBeans (EJBs) are Java-based software components that are built to comply with Java's EJB specification and run inside of an EJB container supplied by a J2EE provider. An EJB container provides distributed application functionality such as transaction support, persistence and lifecycle management for the EJBs.

Post a Comment

Previous Post Next Post