4. Introductory Java Language Features
• Packages and classes
• Input/Output
• Types of identifiers
• Operators
• Control Structures
• Errors and exceptions
26. Errors and Exceptions
• Exceptions
• During the execution
• / by zero
• Unchecked Exceptions
• Arithmetic Exceptions
• Null pointer
• Array index out of bounds
• Index out of bounds
• Stringindexoutof bound
• Concurrent modifications
• Checked exceptions (Not AP syllabus)
27. Class and Object
• Objects
• Classess
• Private public static
• Methods
• Scope
• references
28. Objects
• Real time entities
• State / data members / properties
• Behaviour/methods/functions
29. Class
• Blue print or template
• Single instance of class
• Data encapsulation
• Combining object data and methods into single unit
30. Private, public,static
• Public (all classes are publc in AP )
• Private
• Only within in class (all the instansce variable are private in AP)
• Static
• Class level variables
• Memory allocated only once
Static final
36. Method Parameters
• Formal parameters
• Actual parameters
• Primitive type as parameter
• Local to the method any changes made will not reflect in calling program
• Object as parameter
• Local to the method any changes made will not reflect in calling program
58. Program design and analysis
• Software development
• Object oriented program design
• Program analysis
59. Software Development
• Program Specification
• Program Design
• Program implementation
• Testing and debugging
• Type of errors
• Robustness
• Program maintenance
60. Object Oriented program design
• Identifing class
• Iddntifing behaviours
• Determingn relationship between classes
• UML Diagrams
• Implemeenting classes
• Buttom up
• Top down
• Implemeenting methods
• Procedureal abstraction
• Data Encapsulation
• Stub method
82. Recursion
• Recursive methods
• General form of simple recursive methods
• Writing recursive methods
• Analsyis ofrecursive methods
• Recursive helper methods
• Recursion in two d girds