This is java COP 3337 Please just give me the correct answer
This is java (COP 3337) Please just give me the correct answer, no explanation, thumbs up waiting :)
Which of the following statements are false about classes? Select one or more: A concrete class does not have to define all of the abstract methods that it inherits from an abstract class. A final class can be implemented. A final class can have instances. A final class can be extended. An abstract class cannot be inherited. An abstract class can be extended. What is wrong with the following Java code? final class First {private int a; int b; First() {a =10; b = 20;}} class Second extends First {public void method() {System.out.println(a + b);} Select one or more: Nothing is wrong with the code, it will compile. final is not a valid keyword for a class, it is only used with constants. You cannot call the println() method without passing a String to it. The class Second cannot extend First, because the class First is a terminal class. Because the variable a is private, no class other than First can access it.Solution
1.
a concrete class does not have to define abstract methods that it inherits from an abstract class.
a final class can be implemented
a final class can have instances
an abstaract class cannot be inherited
an abstract class can be extended.
2.
e.Because the variable a is private,no class other than first can access it.
