Google News
logo
Java - Interview Questions
What are all the Java primitive data conversion rules?
• A boolean type may not be converted to non-boolean type.
• That is you cannot assign a boolean value to non-boolean type and vice versa.
• A non-boolean type may be converted to non-boolean type provided that the conversion is widening.
Advertisement