# Uses of Class
org.springframework.beans.BeanInstantiationException

Packages that use BeanInstantiationException
Package
Description
org.springframework.beans
This package contains interfaces and classes for manipulating Java beans.

## Uses of BeanInstantiationException in org.springframework.beans

Methods in org.springframework.beans that throw BeanInstantiationException
Modifier and Type
Method
Description
`static <T> T`
BeanUtils.`instantiate(Class<T> clazz)`
Deprecated.
as of Spring 5.0, following the deprecation of `Class.newInstance()` in JDK 9
`static <T> T`
BeanUtils.`instantiateClass(Class<?> clazz, Class<T> assignableTo)`
Instantiate a class using its no-arg constructor and return the new instance as the specified assignable type.
`static <T> T`
BeanUtils.`instantiateClass(Class<T> clazz)`
Instantiate a class using its 'primary' constructor (for Kotlin classes, potentially having default arguments declared) or its default constructor (for regular Java classes, expecting a standard no-arg setup).
`static <T> T`
BeanUtils.`instantiateClass(Constructor<T> ctor, Object... args)`
Convenience method to instantiate a class using the given constructor.