Core Java/DATA TYPES IN JAVA Sample Test,Sample questions

Question: FFFF is equal to ?

1.65,535

2.128

3.64

4.None


Question: 16-bit unicode character maximum value is ?

1. AAAA

2. FFFF

3. ZZZZ

4. YYYY


Question: 16-bit unicode character minimum value is ?

1.u0000

2.u0001

3.u11111

4.-u9999


Question: if(z=0) not supported in ?

1.Java

2.C

3.C++

4.None


Question: Minimum bytes for double in java?

1.16

2.32

3.64

4.8


Question: Minimum BYTES for float in Java?

1.2

2.1

3.5

4.4


Question: Smallest Data Type in Java

1.long

2.short

3.byte

4.short long


Question: What is rang of byte?

1.-128 to 127

2.32768 to 32767

3.-64 to -63

4.16 to -15


Question: What is rang of int ?

1.-2147,483,648 to 2147,483,647

2.32768 to 32767

3.-128 to 127

4.-64 to 63


Question: What is rang of short?

1.-32768 to 32767

2.-2147,483,648 to 2147,483,647

3.-128 to 127

4.-64 to 63


Question: Which can use in logical conditions e.g. in if () in java ?

1.true /false

2.0/1

3.both

4.None


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!