Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can someone help me with these Java questions? Thank you Multiple choice How many of the followings are true? I: You can only have abstract
Can someone help me with these Java questions? Thank you
Multiple choice How many of the followings are true? I: You can only have abstract methods in abstract class II: Keywords like super and this can only be used in instance method and not static methods Ill: If a class you wrote doesn't extends other classes, it means the the class is parent class of 1. all and doesn't inherit any methods IV: If you have an @Override tag on a method that doesn't override anything, java will give you a warning but still compiles your code A. 1 B. 2 D. 4 2. How many of the followings are true? I: concrete classes can extend abstract classes Il: abstract classes can extend concrete classes IlIl: subclasses of abstract classes must override all abstract methods from the super class IV:abstract classes cannot contain non-abstract methods V: the constructor of an abstract class can only be access using super, not new A: 2 B:3 C: 4 D: 5 2. What package is the Object in the standard library located? A. java.util B. java.lang C. Object.java D. Object.lang 3. If I were to override the equals method in the object class in a School class, what would the method header be? A. public boolean equals(School other) B. public void equals(School other) C. public boolean equals (Object other)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started