Computer Science, asked by sshhhhcantsaymyname, 3 months ago

b) Write the java syntax for creating Scanner class object.
(2)
c) What are the memory space required for byte and short data types in bits?
d) What will be the output of the following?
(2)​

Answers

Answered by kamalrajatjoshi94
1

Answer:

b) Syntax:-

Scanner<object name>=new Scanner(System.in);

Example:-

Scanner in=new Scanner(System.in);

c) The memory space for byte data type is 8 bits(1 byte).

The memory space for short data type is 16 bits(2 bytes).

Similar questions