Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.

Similar presentations


Presentation on theme: "Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are."— Presentation transcript:

1 Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are trademarks of Accenture. Accenture Delivery Fundamentals 2.0: Java Week 2: Day 1 Opening

2 Copyright © 2012 Accenture All Rights Reserved. Key Messages Week One threw many concepts at you and gave you some opportunities to write Java code. It is normal if you feel a little overwhelmed. Remember, the goals of this school are not necessarily to make you an expert coder, but to give you some coding understanding and experience in working on a coding engagement. Most of the concepts you are learning during the first two weeks will be applied in the simulation during the final two weeks. 2

3 Copyright © 2012 Accenture All Rights Reserved. Recap Week 1: Day Five recap –Module 10 – Java Programming - Inheritance –Module 11 – Java Programming – Polymorphism –Module 12 – Java Programming – Collections –Module 13 – Java Programming – Exception Handling Welcome to Application Delivery Fundamentals 2.0 Java Week 2: Day One 3

4 Copyright © 2012 Accenture All Rights Reserved. Checkpoint A.You need to instantiate an abstract class to use it. B.You need to override an abstract class to use it. C.You need to sub-class and override defined methods to use an abstract class. D.You need to sub-class and override abstract methods to use an abstract class. How do you use an abstract class? 4

5 Copyright © 2012 Accenture All Rights Reserved. Checkpoint (Select all that apply) A.An interface can be instantiated. B.A class can implement several interfaces. C.Interfaces are implemented using the keyword extends. D.An interface defines a contract which a class must fulfill. Which of the following statements about interfaces are true? 5

6 Copyright © 2012 Accenture All Rights Reserved. Checkpoint Base b = new Sub(); A.Using reference b, any method that belongs to Sub can be called. B.Using reference b, any method that belongs to Base can be called. C.Using reference b, any method that belongs to both― Base and Sub can be called. D.Using reference b, a method that belongs to neither― Base nor Sub can be called. Considering the following code, choose the correct answer: 6

7 Copyright © 2012 Accenture All Rights Reserved. Checkpoint (Select all that apply). A.Animal obj = new Giraffe(); B.Mammal obj = new Giraffe(); C.Object obj = new Mammal(); D.Mammal obj = new Animal(); E.Animal obj = new Object(); Given that class Giraffe extends Mammals which extends Animals, choose the items that will compile. 7

8 Copyright © 2012 Accenture All Rights Reserved. Checkpoint A collection is an object that groups together _______ element(s) into _______ unit(s). A.Only two, single B.Only three, multiple C.Multiple, a single D.A single, multiple 8

9 Copyright © 2012 Accenture All Rights Reserved. Checkpoint add(), remove(), and element() methods __________ when an interface is not able to add, remove or retrieve an element. A.Throw a special value B.Throw an unneeded value C.Throw an exception D.Throw a collection 9

10 Copyright © 2012 Accenture All Rights Reserved. Checkpoint A.An application cannot recover from an error. B.An application cannot recover from a checked exception. C.An application cannot recover from an un-checked exception. From which of the following exceptions can an application almost never recover? 10

11 Copyright © 2012 Accenture All Rights Reserved. Questions and Comments 11


Download ppt "Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are."

Similar presentations


Ads by Google