ICSE Class 12 Computer Science | Chapter 9: Methods by Abraham | Learn Smarter
K12 Students

Academics

AI-Powered learning for Grades 8–12, aligned with major Indian and international curricula.

Professionals

Professional Courses

Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.

Games

Interactive Games

Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.

Chapter 9: Methods

Enroll to start learning

You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.

Sections

  • 1

    Definition Of A Method

    A method in Java is a block of code that performs a specific task and aids in code reusability.

  • 2

    Method Declaration

    This section discusses the declaration of methods in Java, covering their components and significance in encapsulating behavior within classes.

  • 3

    Method Calling

    Method calling is the process of executing a method in Java, either statically or dynamically.

  • 4

    Types Of Methods

    This section explores the various types of methods in Java, outlining predefined and user-defined methods, as well as key characteristics such as return types and parameter passing.

  • 4.1

    Predefined Methods

    This section introduces predefined methods in Java, explaining their significance in programming, and distinguishes them from user-defined methods.

  • 4.2

    User-Defined Methods

    User-defined methods in Java allow programmers to create custom functions that encapsulate specific tasks, enhancing code reusability.

  • 5

    Return Type Of A Method

    The return type of a method in Java indicates the type of value that the method will return to its caller.

  • 6

    Parameter Passing

    Parameter passing in Java involves how arguments are passed into methods, highlighting the differences between formal and actual parameters.

  • 6.1

    Types Of Parameters

    This section defines types of parameters in Java methods and distinguishes between formal and actual parameters.

  • 7

    Method Overloading

    Method overloading in Java allows multiple methods to share the same name but differ in parameters.

  • 7.1

    Rules Of Overloading

    Method overloading allows methods to have the same name but differ in parameters.

  • 8

    Static And Non-Static Methods

    This section discusses the differences between static and non-static methods in Java, highlighting their usage and invocation.

  • 9

    Scope And Lifetime Of Variables In Methods

    This section explains the scope and lifetime of variables within methods in Java, focusing on local and instance variables.

  • 10

    Recursion

    Recursion is a programming technique where a method calls itself to solve smaller subproblems, which can simplify complex tasks.

  • 11

    Void Methods

    Void methods in Java are used to execute code for actions without returning any value.

  • 12

    Best Practices While Using Methods

    This section outlines essential best practices for effectively using methods in Java programming.

References

12 cs ch9.pdf

Class Notes

Memorization

Revision Tests