Tag: technology
Questions Related to technology
-
- char
-
- byte
-
- short
-
- int
-
- boolean
-
- From an int to a long
-
- From a byte to an int
-
- From a short to a byte
-
- From an int to a double
-
5) All of the above
-
1 public void myMethod(int x) {
-
2 private void myMethod(int x) {
-
3 switch(z) {
-
4 private void anotherMethod() {
-
1 int z = 0;
-
2 assert (z = 9);
-
3 assert (x ==5);
-
4 int z = 0;
-
5 boolean x = true;
-
- byte z;
-
- int z;
-
- char z
-
- None of these options are correct
-
- The program will run successfully with no errors or warnings.
-
- The program will halt with a runtime exception.
-
- The program will halt with a compiler error.
-
- The program will run successfully with no errors but a warning will be generated.
-
- 0000 0000 0000 0000 0000 0000 0000 0100
-
- 0000 0000 0000 0000 0000 0000 0000 1000
-
- 0000 0000 0000 0000 0000 0000 0001 0000
-
- 0000 0000 0000 0000 0000 0000 0000 0111
-
- 0000 0000 0000 0000 0000 0000 0000 1001
-
1 public class Cup extends ContainerClass {
-
2 public class Basket extends ContainerClass {
-
3 public class Caldron extends ContainerClass {
-
4 public class Bag extends ContainerClass {
-
- final
-
- native
-
- local
-
- protected
-
- Change public abstract class Vehicles { } to public class Vehicles { }
-
- Change public class Bus { } to public class Bus extends Vehicles { }
-
- Change public class MyClass { to private class My Class {
-
- Change public abstract class Vehicles { } to protected abstract class Vehicles { }