Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Functions - Methods in Java

Kunal Kushwaha via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive deep into Java functions and methods in this comprehensive 1.5-hour video tutorial. Learn the fundamentals of function syntax, argument types, value passing, scoping, shadowing, and function overloading through detailed explanations and practical examples. Follow along with hands-on programming exercises, including creating functions for basic arithmetic, string manipulation, and number swapping. Explore advanced concepts like variable arguments (varargs) and method overloading. Conclude with challenging exercises on prime numbers and Armstrong numbers to reinforce your understanding. Engage with the #DSAwithKunal community by sharing your learnings on social media and accessing additional resources, including a complete Java DSA playlist and GitHub repository for code, assignments, and notes.

Syllabus

Introduction ‌‍‍‍‌‌‍‍ ‌‍‍‌‌‌‌‍ ‌‍‍‌‍‍‌‍ ‌‍‍‌‍‌‍‌ ‌‍‍‌‍‍‍‌ ‌‌‍‍‌‌‌‌
Problem Statement
Methods
Syntax of a Method
Program : Sum of two numbers
Program : Greetings
Returning Values
Returning a String
Parameters Integer Function
Parameters String Function
Program : Swap two numbers
Program : Pass Value
Internal Working of Swapping Program
Program : Change Value
Scope
Method Scope
Block Scope
Loop Scope
Shadowing
Variable Arguments Varargs
Method Overloading
Questions
Q1 : Prime Number
Q2 : Check Armstrong Number
Q3 : Print All 3 Digit Armstrong Numbers
Outro

Taught by

Kunal Kushwaha

Reviews

Start your review of Functions - Methods in Java

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.