can we write program without class

Answer Posted / sitaram

class with out name is called ananamous class.

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to print an arraylist in java?

759


What is the difference between an interface and an abstract class?

768


Can this keyword be used to refer static members?

796


Can constructor return value?

746


Which class should you use to obtain design information about an object in java programming?

874


What is the equal sign?

816


What is the difference between static binding and dynamic binding?

817


What is an escape character in java?

785


You're given a Boolean 2D matrix, can you find the number of islands?

858


What is meant by method?

798


What do you mean by light weight and heavy weight components?

758


how many types of Inheritance?

934


What are the advantages of packages in java?

925


Can we call a non-static method from inside a static method?

783


How do you download stubs from Remote place?

1544