×

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 12 Docker Interview Questions for 2024

Most frequently asked Docker Interview Questions and Answers for Fresher 1. What is Docker? Docker is a new form of Software Containerization in the field of IT. It is an open-source container...

4 minutes read.

Top 15 ExpressJS Interview Questions for 2024

1) What is ExpressJs? Express Js is a framework for node.js which is light-weight and fast. It is used to develop web and mobile applications. 2) What are the features of ExpressJs? Following...

4 minutes read.

Top 30 SASS Interview Questions for 2024

1) What is Sass? SASS: Systematically Awesome Style Sheets is an extension of CSS. It is also known as CSS pre-processor which helps to reduce repetition with CSS and saves time. It is...

4 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 15 Framework7 Interview Questions for 2024

1) What is Framework7? Framework7 is an open source mobile HTML framework. It is used todevelop hybrid mobile apps for iOS and Android devices. 2) Why, framework7 is popular? There are various reasons...

8 minutes read.

Top 15 Foundation Interview Questions for 2024

1) What is Foundation? Foundation is a front-end framework that is for designing beautiful responsive websites. This framework is compatible with all types of devices and provides you with HTML, CSS...

2 minutes read.

Backbone.js Interview Questions

1) What is Backbone.js? Backbone.js is a JavaScript framework or library. It is a client-side framework which helps in creating single page application in organized manner i.e. structured layout. 2) Backbone.js is...

4 minutes read.

Top 15 ASP.NET MVC Framework Interview Questions for 2024

1) What is ASP.NET MVC Framework? ASP.NET MVC framework is a software architecture pattern for developing web applications. It is used to split the application's implementation logic into three components: models,...

4 minutes read.

Top 27 JavaScript Interview Questions for 2024

1) Define Undeclared and Undefined Variables? Undeclared variable are defined as these variable is neither defined nor exist in the program. If program calls this variable then it causes Runtime error. Undefined variable...

5 minutes read.

Top 15 PhantomJS Interview Question for 2024

1) What is PhantomJS? PhantomJS is a lightweight headless scripted browser built on WebKit. It is used for automation web page interaction. 2) Why it is called as headless browser? PhantomJS called as...

4 minutes read.

Top 15 XHTML Interview Questions for 202

1) What is XHTML? XHTML (Extensible Hyper Text Markup Language) it is similar to the HTML but has some strict rule than HTML. It is said to be HTML defined as...

3 minutes read.

Top 24 Clojure Interview Questions for 2024

1) What is Clojure? Clojure is a dynamic, general-purpose programming language. It is simple, coherent and powerful tool. It is based on Lisp Programming language. 2) Which platform is used to run...

4 minutes read.

Top 14 XSL Interview Questions for 2024

1) What is XSL? XSL stands for Extensible Stylesheet Language. It is used for expressing stylesheets like CSS which describes how to display an XML of given type. 2) What is XSLT? XSLT...

4 minutes read.

Top 25 CoffeeScript Interview Questions for 2024

1) What is CoffeeScript? It is a language that compiles into JavaScript. CoffeeScript is an attempt to expose good parts of JavaScript so, that user can code more easily. 2) Name the...

3 minutes read.

Top 28 Angular 2 Interview Questions for 2024

1) What is Angular 2? It is an open source JavaScript framework which is used to build web applications in JavaScript and HTML. It is also used to overcome obstacles encountered while...

4 minutes read.

Top 30 Ruby on Rails Interview Questions for 2024

1) What is Ruby on Rails? It is a server-side web application framework. It is an open source ruby framework which is used for developing database-backed web applications. Here, no compilation phase is...

4 minutes read.

Top 30 Cassandra Interview Questions for 2024

1) Explain. What is Cassandra? Cassandra is an open source data storage system. It was developed at Facebook for inbox search and designed for storing and managing large amount of data. 2)...

5 minutes read.

Top 25 PL/SQL Interview question for 2024

1) What is PL/SQL? It is defined as SQL having Procedural features of Programming Language i.e. Procedural Language extension of SQL. 2) Enlist the section of PL/SQL block. It consist of three block ...

4 minutes read.

Top 15 T-SQL(Transact-SQL) Interview Questions for 2024

1) What is T-SQL? T-SQL stands for Transact Structured Query Language. T-SQL is the extension of SQL functionality supported by Microsoft SQL Server and Sybase ASE. 2) What are the features of...

3 minutes read.

Top 15 Apache Tapestry Interview Questions for 2024

1) What is Apache Tapestry? It is an open source web framework written in Java and can work under any application server. It is easily integrate with back ends like Hibernate...

2 minutes read.