×

Top 15 Java BeanUtils Interview Questions for 2024

1) What is Java BeanUtils?

Java BeanUtils is a design pattern component of the Apache Commons. It facilitates architecture for Java language which is derived from JavaAPI. It helps to set and get the property value on Java class for defining and retrieving the bean property.

2) What are the features of JavaBeans?

Following are important features of JavaBeans:
  • Class should be define public and a public constructor with no argument.
  • It should provide methods to set and get the values of the properties, known as getter and setter methods.
  • It is not mandatory to define getter and setter method for all property.

3) What is Bean introspection?

Introspection is a tool, provided by org.apache.commons.beanutils package to facilitate the use of getting and setting property values.

4) What is BeanIntrospector interface?

BeanIntrospector interface provides facility to custosmze an application to alter or extend the default discovery of bean property.

5) What Is DefaultBeanIntrospector?

BeanUtils uses DefaultBeanIntrospector objects for detecting properties that are matching with JavaBeans specification.

6) What is DynaBean?

DynaBean is a Java object which dynamically modified the properties name, data types as well as value.

7) What is DynaClass?

DynaClass gives the implementation of DynaBean interface. It is a functionality of java.lang.Classs.

8) What is BasicDynaBean?

It gives the minimal implementation of DynaBean interface. It provides facility for creating bean by directly instantiating a BasicDynaBean and passes the BasicDynaClass as a parameter to its constructor.
BasicDynaClass basicDynaClass=new BasicDynaClass();  
    â€¦.  
BasicDynaBean basicDynaBean=new BasicDynaBean(basicDynaClass);

9) What is BasicDynaClass?

It gives the minimal implementation of DynaClass interface. It uses DynaClass as a base class to establish the set of properties.
BasicDynaClass(); //default parameter  
BasicDynaClass(String name, Class<?> dynaBeanClass); //specified parameter  
BasicDynaClass(String name, Class<?> dynaBeanClass, DynaProperty[] properties); //specified parameter

10) What dose ResultSetDynaClass?

ResultSetDynaClass is used to select the data with SQL query as series of DynaBeans. It is a subclass of DynaClass which handle java.sql.ResultSet.
ResultSet rs=stmt.executeQuery(“select name , designation from employee”);  
Iterator itr =(new ResultSetDynaClass(rs)).iterator();  
while(itr.hasNext()){  
DynaBean dynaBean=(DynaBean)itr.next();  
…  
}

11) Define RowSetDynaClass?

RowSetDynaClass copies the undisclosed information while creating an instance to the DynaBeans memory. RowSetDynaClass can be used to implement java.io.Serializable to make class serialized and deserialized.
Statement st= con.createStatement();  
ResultSet rs= st.executeQuery("select…");  
RoowSetDynaClass dc=new RowSetDynaClass(rs);  
rs.close();  
st.close();  
….

12) What is WrapDynaBean?

WrapDynaBean class provides facility to access all beans by using the existing standard JavaBeans class. WrapDynaBean class wraps the DynaBean API throughout the existing JavaBean class.
Object objectBean=….;  
DynaBean dynaBean=new WrapDynaBean(objectBean);  
…..

13) What is LazyDynaBeans?

LazyDynaBean is an implementation of DynaBean which automatically adds property to the DynaClass. LazyDynaBean provides characteristics of Lazy List and Lazy Map.

14) What are the features of LazyDynaBean?

Following are the features of LazyDynaBean:
  • Lazy property addition.
  • Lazy List/Array instantiation.
  • Lazy List/Array growth.
  • Lazy Map instantiation.
  • Lazy Bean instantiation.

15) What are the different types of LazyDynaBeans?

There are four types of LazyDynaBean:
LazyDynaBean.
LazyDynaMap.
LazyDynaList.
LazyDynaClass.

Related Topics

Top 15 Euphoria Interview Questions for 2024

1) What is Euphoria? Euphoria is a programming language. It is open source, powerful and easy to learn. It stands for End-User Programming with Hierarchical Objects for Robust Interpreted Applications 2) Who...

2 minutes read.

Top 30 WordPress Interview Questions for 2024

Most Frequently asked WordPress Interview Questions and Answers 2019 1) What is WordPress? WordPress is an open-source CMS (Content Management System) and a blogging tool. It is used to create web sites and...

5 minutes read.

Top 20 C Programming | Coding Interview Questions for 2024

Most Frequently asked C programming | Coding Interview Questions and answer for Fresher C is a powerful high-level programming language.  It is a fast, portable and available for all platforms. C...

15 minutes read.

Top 30 CodeIgniter interview Questions for 2024

1) What is CodeIgniter? CodeIgniter is an open source PHP framework. It is used to develop web applications and websites. It is loosely based on MVC pattern and easy to use...

4 minutes read.

Top 43 React Native Interview Questions for 2024

1. What is React Native? React native is an open-source JavaScript framework designed by Facebook for native mobile applications development. It is based on a JavaScript library-React. React Native saves your development...

11 minutes read.

Top 30 Swift Interview Questions for 2024

1) What is Swift? It is an innovative programming language developed by Apple Inc. It is used for creating applications for iOS and OS X. 2) What are the features of Swift Programming? Features...

4 minutes read.

Top 29 Phalcon Framework Interview Questions for 2024

1) What is Phalcon? Phalcon is an open source framework based on the MVC (Model-View-Controller) pattern. It is the combination of PHP and C language. It is developed by Andres Gutierrez...

6 minutes read.

Top 14 Material Design Lite Interview Questions for 2024

1) What is Material Design Lite? Material Design Lite is UI component Library. It is created with CSS, JavaScript and HTML. It is used for design purpose. It is developed by...

3 minutes read.

Top 15 Xamarin Interview Questions for 2024

1) What is Xamarin? Xamarin is a .NET framework. It allows to create an application that run on multiple platforms. Xamarin Tutorial uses C# language and .NET framework to deliver native...

2 minutes read.

Top 32 Laravel Interview Questions for 2024

1) What is Laravel? Laravel is an open source PHP framework. It is used to design and develop web applications. It is based on MVC (Model-View-Controller) design pattern. It is created by Taylor...

6 minutes read.

Top 13 SAS Interview Questions for 2024

1. What is SAS and its functions? SAS (Statistical Analysis System) is statistical software designed by SAS Institute in 1960 for data inspection and report writing. SAS runs on Windows, UNIX...

5 minutes read.

Top 15 CherryPy Interview Questions for 2024

1) What is CherryPy? CherryPy is a web framework used for Python. It provides a friendly interface for Http protocol for Python developer. 2) Why we use CherryPy? CherryPy has following strength: Simplicity: It...

3 minutes read.

Top 25 MySQL Interview Questions for 2024

1) What is MySQL? MySql is defined as multi-user DBMS which is built and distributed my MySQLab now acquired by Oracle Co. 2) Enlist the features of MySQL. Cross-Platform Support Wide range...

3 minutes read.

Top 30 TypeScript Interview Questions for 2024

1) What is TypeScript? TypeScript is an object-oriented and compiled language. TypeScript is also known as a set of tools. TypeScript is used for application-scale development. 2) What are the features of TypeScript? Features of...

4 minutes read.

Top 22 DOJO Interview Questions for 2024

1) What is DOJO? DOJO is an open source JavaScript framework designed for very fast development of JavaScript/AJAX based application and websites having cross platform interdependencies. 2) Enlist all features of DOJO. ...

4 minutes read.

Top 15 Servlet Interview Questions for 2024

1) What is Servlet? It is a technology used to create web applications. It is a web component which is used to create dynamic web pages. It consists of many interfaces and classess...

2 minutes read.

Top 30 VB Script Interview Questions for 2024

1) What is VB Script? VBScript stands for Visual Basic Scripting Language. It is a light version of Microsoft Visual Basic. It is a client side scripting Language. 2) What is the...

5 minutes read.

Bugzilla interview Questions

Frequently asked questions about Bugzilla Q1. What are reports in Bugzilla? A1. Reports can be defined as an interface between the user and the database of Bugzilla. It helps to examine and...

4 minutes read.

Top 30 Perl interview questions for 2024

1) What is Perl? It is a programming language which is used for web development, system administration, GUI development and etc. It is also known as cross-platform programming language. 2) What are the...

4 minutes read.

Top 15 AWS Interview Questions for 2024

1) What is AWS? AWS stands for Amazon Web Services. It is a cloud web hosting platform that offers flexible, scalable, reliable, easy-to-use, and cost-effective solutions. 2) What is Cloud Computing? It is...

2 minutes read.