Core Java Interview questions


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

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

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

sample object2= (sample) Class.forName("abc.com.xyz.sample").newInstance(




Next 5 interview question(s)

1

What is the difference between class and object in java?

2

How object can be created using new keyword in java?

3

In how many ways object can be created in java?

4

Which class implements System Class Loader in java?

5

Which class implements Extensions class loader?