Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to create an instance of a class without using "new"
operator? Plz help me out properly.Thank u.

Answer Posted / saravanan p

By using Class d=Class.forName("className");
Object obj=c.newInstance();

Is This Answer Correct ?    77 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to find the greatest of three numbers in java?

938


What is e in java?

906


Is it possible to instantiate the abstract class?

910


What is scope & storage allocation of global and extern variables? Explain with an example

988


Why is java logo a cup of coffee?

1068


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

1167


Does java isempty check for null?

942


What do you understand by garbage collection in Java? Can it be forced to run?

915


What are the rules for variable declaration?

906


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

892


What is immutability in java?

1029


Is java a utf 8 string?

929


why are there separate wait and sleep methods? : Java thread

974


Explain about sets?

942


Explain covariant method overriding in java.

1046