Skip to content

Commit

Permalink
Update java-quiz.md (#2)
Browse files Browse the repository at this point in the history
* Update java-quiz.md
  • Loading branch information
azdemir authored Apr 8, 2020
1 parent a99eed5 commit 74f6799
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions java/java-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,17 @@ class Three implements One, Two {
```

#### Q10. What is the output of this code?
String m = "Hello world!";
String n = m.substring(6,12) + m.substring(12,6);
System.out.println(n);


#### Q11. What is the output of this code?
How do you write a foreeach loop that will iterate over ArrayList<Pencil>pencilCase?
for(Pencil pencil = pencilCase){}

Iterator iterator = pencilCase.iterator();
for(){iterator.hasNext()}{}

#### Q12. Fill in the blanks?
Object-oriented programming (OOP) is a programming language model that organizes software design around (objects), rather than (functions).

0 comments on commit 74f6799

Please sign in to comment.