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

can we write program without class

Answer Posted / ashok reddy

2 ans for this question.

1.in a class class name and the constructor is must. so we cant write a file without class.(for this reason only the compiler adds a default constructor)

2.dont write anything inside a text doc(Empty text doc) and save this file as somename.java. it is possible to compile this file but it doesnot produce any .class file.

Is This Answer Correct ?    14 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is r * in math?

985


What does || mean in code?

1022


Is set thread safe java?

905


Can a function return a function?

1023


Explain different types of thread priorities ?

1061


What is the right data type to represent a price in java?

936


Which is fastest collection in java?

1061


Explain importance of throws keyword in java?

964


What is the default value of byte datatype in java?

926


How many threads can I run java?

1097


What is meant by tab pans?

1218


Is there any limitation of using inheritance?

1055


What is difference between module and function?

1146


What is bitwise complement?

966


What is definition and declaration?

1001