00:01
All right, for this question we're asked.
00:02
We have two questions.
00:03
First one asks, what is a java primitive data type hold only true or false data? so the question, the choices here are integer, switch, which is like a switch statement, i assume, byte, or d, which is boolean.
00:20
So an integer holds a numerical type, so this is definitely not true.
00:30
However, it could be mistaken to be true since numerical types, generally when we're talking about bullions, we talk about 0 and 1, where 1 constitutes true, 0 constitutes false.
00:42
So, int is a primitive data type that could hold true or false data, but the question asks only true or false data.
00:50
So integer is not right.
00:51
It's possible for it to hold true or false data, but it doesn't only hold true or false data.
00:55
I can also hold like 100 and like 10 and stuff like that.
01:01
And switch here is not even a primitive data type.
01:03
Switch here is a type of statement, control statement, right? so it's a control statement.
01:12
You could use it to go in lieu of a if -l statement, or in any case like that.
01:21
So switch is also definitely not right.
01:23
Byte is the most basic form of storage.
01:33
When i mean going not going all the way into bitwise storage but the most basic form of general storage which is a single byte and you know you have gigabytes megabytes kilobytes all made up of a number of bytes so so bite is definitely also not true it's a form of storage and boolean however is only holds true or false data it's true or false so that's definitely true.
02:01
Boolean can only hold true or false that's also a primitive data type the answer here is going to be d, boolean.
02:07
So then we go on to question 2, which asks in java statement, if statement, what must immediately follow the keyboard if? so after the if, what has to come? so the first option says a boolean expression surrounded by parentheses...