File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Class.forName vs Class literal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Class.forName vs Class literal" Watch "Class.forName vs Class literal" New topic

Class.forName vs Class literal

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 980
Hi all,

Whats the difference between what a
Class Literal does and the method..Class.forName(...) does..?

Where do we make use of them...?

Rick O'Shay
Ranch Hand

Joined: Sep 19, 2004
Posts: 531
You could not do this with a literal class.

I agree. Here's the link:
subject: Class.forName vs Class literal
It's not a secret anymore!