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 / bhargavi rani

no.becoz java is pure object oriented language.so all the
member functions and datamembers must be write inside the
class.here we can also say that class is an example for
encapsulation.encapsulation is binding data and member
functions in a single unit.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the drawbacks of reflection?

1005


Why do we create threads in java?

1238


Can you use abstract and final both with a method?

1064


How many types of constructors are used in java?

1175


What are the different approaches to implement a function to generate a random number?

1056


What is the difference between C++ and Java and your preferences?

1109


What is the indent key?

1029


What is a string what operation can be performed out with the help of a string?

1041


What are the advantages of passing this into a method instead of the current class object itself?

1666


What is the difference between the size and capacity of a vector?

1033


What is * argv?

1226


How do you clear a list in java?

1116


What does %4d mean in java?

1475


Why chararray() is preferred over string to store the password?

1021


What restrictions are placed on method overriding?

1172