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.
Arun, what you are trying to do, is that you are calling a non static method named newInstance in the class named "Class". Well, actually, in the class "Class" which is predefined, there are no static methods named "newInstance()".
To make your code work, just try using "SystemProperties.getClass().newInstance()"
I hope it works.
Joined: Oct 13, 2005
I earlier wrote:Try
Actually it's not Class but Class<T>, so it should be Class<SystemProperties>.
And did you notice my mistake writing "class" instead of "Class"? I have only just noticed it. Sorry.