can we write program without class

Answer Posted / mahipal

no,because java is purely object oriented language,so we can't create the objects with out writing a class.And also we can save the code as classname.java that's the reason also we must create a class

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are voids?

755


What are the drawbacks for singleton class?

770


What is singleton class example?

812


What is the r character?

816


Can we clone singleton object?

832


How do you create a sop?

748


What is meant by inheritance and what are its advantages?

848


What does exp mean in math?

762


How many ways can we create the string object?

794


what do you mean by marker interface in java?

780


What is an object's lock and which object's have locks in java programming?

801


How is hashcode calculated in java?

734


How do I know if java is installed?

793


How do you sort a list in java?

821


How do you implement polymorphism in our day to day life?

2979