Skip to content

Commit

Permalink
Update format of new quiz
Browse files Browse the repository at this point in the history
  • Loading branch information
devHabit committed Dec 2, 2020
1 parent 475190e commit c0c7c8e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions java/java-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -774,11 +774,11 @@ public class Solution {
- 5
- A Runtime exception will be thrown

#### Q53. Which statements about abstract classes are true?
#### Q53. Which statements about `abstract` classes are true?

- 1. They can be instantiated.
- 2. They allow member variables and methods to be inherited by subclasses.
- 3. They can contain constructors.
1. They can be instantiated.
2. They allow member variables and methods to be inherited by subclasses.
3. They can contain constructors.

- 1, 2, and 3
- only 3
Expand All @@ -795,10 +795,10 @@ public class Solution {
#### Q55. What is the result of this code?

```java
int a = 1;
int b = 0;
int c = a/b;
System.out.println(c);
1: int a = 1;
2: int b = 0;
3: int c = a/b;
4: System.out.println(c);
```

- It will throw an ArithmeticException. <<<<--- Correct
Expand Down

0 comments on commit c0c7c8e

Please sign in to comment.