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...

Is it possible to create object with out its default
constructor? if possible how? else not possible? justify

Answer Posted / ravi

class C
{
void show()
{
System.out.println("hi");
}
public static void main(String args[])
{

C c=new C();
c.show();
}
}


we can create object if we don't write the constructor try
execute the above code and see the result; THANK u

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

who can i handle multiple client in RMI

1873


Can you add null to a list java?

1039


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

1003


What is the benefit of using enum to declare a constant?

1085


Which oo concept is achieved by using overloading and overriding?

996


What is try-with-resources in java?

1142


What is adapter in java?

907


Explain the difference between intermediate and terminal operations in java8?

1084


Is singleton class immutable?

948


How do you override a method?

1005


What is the base class for error and exception?

980


What do you mean by garbage collection used in java?

1049


What is the purpose of garbage collection in java, and when is it used?

1021


How to instantiate member inner class?

1062


Why java uses the concept of the string literal?

1045