What is output from the following snippets of code?
2) String s2 = "Hello World";
System.out.println(s2.charAt(12));
Give this one a try later!
runtime error will occur
, Which detail tells us how much space we have to store programs that are currently
executing?
Give this one a try later!
Main Memory
How many bytes are used to store a boolean value?
Give this one a try later!
1 byte
If s and t are primitive data type variables, will the method s.equals(t) test for equality?
Why or why not?
Give this one a try later!
This will cause a compiler error. If s is a primitive data type variable, then it
has no methods defined for it. And so invoking s.equals(t) is syntactically
incorrect.
How many different numbers can be represented with a 4-bit number?
Give this one a try later!
2) String s2 = "Hello World";
System.out.println(s2.charAt(12));
Give this one a try later!
runtime error will occur
, Which detail tells us how much space we have to store programs that are currently
executing?
Give this one a try later!
Main Memory
How many bytes are used to store a boolean value?
Give this one a try later!
1 byte
If s and t are primitive data type variables, will the method s.equals(t) test for equality?
Why or why not?
Give this one a try later!
This will cause a compiler error. If s is a primitive data type variable, then it
has no methods defined for it. And so invoking s.equals(t) is syntactically
incorrect.
How many different numbers can be represented with a 4-bit number?
Give this one a try later!