Java Questions & Answers – Data Type-Enums

This set of Java Multiple Choice Questions & Answers (MCQs) focuses on “Data Structures-Enums”. 1. What is the order of variables in Enum? a) Ascending order b) Descending order c) Random order d) Depends on the order() method 2. Can we create an instance of Enum outside of Enum itself? a) True b) False 3. … Read more

advertisement

Java Questions & Answers – Character and Boolean Data Types

This Section of our 1000+ Java MCQs focuses on Character and Boolean Datatypes of Java Programming Language. 1. What is the numerical range of a char data type in Java? a) -128 to 127 b) 0 to 256 c) 0 to 32767 d) 0 to 65535 2. Which of these coding types is used for … Read more

advertisement

Java Questions & Answers – Integer and Floating Data Types

This Section of our 1000+ Java MCQs focuses on Integer and Floating Datatypes of Java Programming Language. 1. What is the range of short data type in Java? a) -128 to 127 b) -32768 to 32767 c) -2147483648 to 2147483647 d) None of the mentioned 2. What is the range of byte data type in … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.