Computer Applications
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.
Related Questions
Differentiate between built-in data types and user defined data types.
Which of the following declarations are illegal and why?
(a) class abc{…}
(b) public class NumberOfDaysWorked{…}
(c) private int x;
(d) private class abc{…}
(e) default key getkey(…)Differentiate between static data members and non-static data members.
Differentiate between private and protected visibility modifiers.