Core Java Interview questions


Total available count: 646
Subject - Java Technologies
Subsubject - Core Java

How object can be created using newinstance() in java?

Suppose 'sample' is the class name,then the syntax is as follows

 Object object4 = sample.class.getClassLoader().loadClass("abc.com.xyz.sample").newInstance(




Next 5 interview question(s)

1

How object can be created using clone() in java?

2

How object can be created using Class.forName()in java?

3

What is the difference between class and object in java?

4

How object can be created using new keyword in java?

5

In how many ways object can be created in java?