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 sorting algorithm in java?

1058


Can a constructor call another constructor?

970


Write a program to check for a prime number in java?

1035


How to use arraylist in java netbeans?

1027


What does the “final” keyword mean in front of a variable? A method? A class?

983


Can we define static methods inside interface?

972


What is the difference between a break statement and a continue statement?

1022


Can a vector contain heterogenous objects?

1055


Explain java heap space and garbage collection?

1055


What are constructors in java?

1093


How do you create a reference in java?

965


What is the importance of main method in Java?

1052


Does importing a package imports its sub-packages as well in java?

964


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

1049


What is a double?

1087