Computer Applications

Why can't every class be termed as user defined data type?

Java Classes

45 Likes

Answer

The classes that contain public static void main(String args[]) method are not considered as user defined data type. Only the classes that don't contain this method are called user defined data type. The presence of public static void main(String args[]) method in a class, converts it into a Java application so it is not considered as a user defined data type.

Answered By

28 Likes


Related Questions