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 / abhishek thakur

1. Four Ways of Object creation

i)Using "new" operator
ii)Using newInstance Method in Class.forName(class name)
iii)in case of deserialisation
iv)using clone

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lambda in java?

1155


Explain differences between checked and unchecked exceptions in java?

1111


What is finally block?

1121


What is a parameter used for?

1005


What is an empty class? What functionality does it offer in Java?

1341


Is there a way to increase the size of an array after its declaration?

1086


What string is utf8?

1038


Why is java so popular?

1167


What is the difference between compile-time polymorphism and runtime polymorphism?

1059


What is the size of boolean variable?

1131


How do you remove duplicates in java?

1068


What about instanceof operator in java?

1064


What is the difference between the paint() and repaint() methods?

1104


What is the size of a string in java?

1071


What are loops in java? What are three types of loops?

1069