An abstract class in Java can have both ________ and non-abstract methods.
- Both Abstract and Static Methods
- Non-Static Methods
- Only Abstract Methods
- Only Static Methods
An abstract class in Java can have both abstract (unimplemented) and non-abstract (implemented) methods. Abstract methods are declared using the 'abstract' keyword and are meant to be implemented by concrete subclasses, while non-abstract methods provide default implementations that can be inherited by subclasses or overridden.
Loading...
Related Quiz
- ________ is a special type of statement, which is used to invoke a constructor of the same class.
- Consider a scenario where you need to sort a list of employees based on their age and then return the first employee’s name. How would you achieve this using Stream API?
- How can you securely serialize and deserialize objects to protect sensitive information during the process?
- Which of the following is not a valid JDBC transaction isolation level?
- In a scenario where an application needs to handle a large number of JDBC connections concurrently, how would you optimize the use and management of these connections to ensure application performance is not impacted?