Which of the following is NOT an example of a data type?

A int
B public
C boolean
D double
Answer & Explanation
Option: [B]

public is not a data type. It is a Java Access modifier. The other Access modifiers are private and protected.

Your Valuable Comments Please...

Useful Computer Science EBooks