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

Does constructor be static?

1043


What is the most important feature of java? What is an interface?

1015


What is indexof?

987


What is application system?

946


How many threads can I run java?

1120


Define iterator and methods in iterator?

973


Can we override singleton class?

985


What’s the difference between unit, integration and functional testing?

1110


What was java originally called?

962


How we can execute any code even before main method?

1146


Can we make the abstract methods static in java?

1064


What are the differences between Java 1.0 and Java 2.0?

2280


What is difference between variable declaration and definition?

976


Explain importance of inheritance in java?

1029


What are voids?

965