This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
John Jai wrote:If the constructor is marked private, you will receive IllegalAccessException while trying to create an instance using reflection. Read more on creating instances using reflection here.
What about Class.forName(String). Is there any way to create an instance using this? I wrote this codeWhen I tried to execute it i got this errorSo now I hope it is not possible with Class.forName(String).