Skip to content

Commit

Permalink
Correction in Java.md (Ebazhanov#886)
Browse files Browse the repository at this point in the history
* Added a new Question

* Correction in Java.md

Co-authored-by: TheShubham-K <[email protected]>
  • Loading branch information
TheShubham-K and TheShubham-K authored Jan 4, 2021
1 parent 199ce30 commit 2244647
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions java/java-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,17 @@ interface Interface2 {
}
```

- [ ] super1.print(); super2.print();
- [ ] this.print();
- [ ] super.print();
- [ ] Interface1.print(); Interface2.print();

- super1.print(); super2.print();
- this.print();
- super.print();
- Interface1.print(); Interface2.print(); <<<<<--- Correct


#### Q7. What does the following code print?

```
String str = ""abcde"";
String str = "abcde";
str.trim();
str.toUpperCase();
str.substring(3, 4);
Expand Down
1 change: 1 addition & 0 deletions oop/object-oriented-programming-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,3 +376,4 @@ static void Multiply(float num1, float num2) {};
- [] to protect attributes from unwanted changes
- [x] to separate class behaviour from the more general to the more specific
- [] to delegate coding responsibility more efficiently

0 comments on commit 2244647

Please sign in to comment.