Functions / Methods in Java

Kunal Kushwaha August 8, 2021
Video Thumbnail
Kunal Kushwaha Logo

Kunal Kushwaha

View Channel

About

Kunal Kushwaha is a Senior Developer Advocate at CAST AI, where he leads developer relations in the EMEA region, focusing on cloud-native technologies and AI, helping companies modernize their infrastructure and adopt innovative solutions. He is also the founder of WeMakeDevs, a community initiative where he mentors individuals in tech. His educational content on YouTube has been watched by millions. A passionate advocate for open source, Kunal regularly speaks at industry conferences on cloud, AI, and developer growth.

Video Description

All about #functions in Java from scratch! In this video, we cover in detail functions/methods in Java. Starting with the syntax, we cover topics like types of arguments, how values are passed, scoping, shadowing, function overloading, with examples. Take part in the learning in public initiative! Share your learnings on LinkedIn and Twitter with #DSAwithKunal & don't forget to tag us! 👉 Resources - Join Replit: http://join.replit.com/kunal-kushwaha - Complete Java DSA playlist: https://www.youtube.com/playlist?list=PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ - Code, Assignments, & Notes: https://github.com/kunal-kushwaha/DSA-Bootcamp-Java ➡️ Connect with me: https://www.techwithkunal.com ========================================= Timestamps: 0:00 Introduction ‌‍‍‍‌‌‍‍ ‌‍‍‌‌‌‌‍ ‌‍‍‌‍‍‌‍ ‌‍‍‌‍‌‍‌ ‌‍‍‌‍‍‍‌ ‌‌‍‍‌‌‌‌ 1:58 Problem Statement 5:31 Methods 5:41 Syntax of a Method 6:40 🎯 Program : Sum of two numbers 9:11 🎯 Program : Greetings 11:18 Returning Values 14:31 Returning a String 17:42 Parameters (Integer Function) 20:36 Parameters (String Function) 25:03 🎯 Program : Swap two numbers 25:25 🎯 Program : Pass Value 29:39 Internal Working of Swapping Program 41:33 🎯 Program : Change Value 46:41 Scope 47:00 Method Scope 49:46 Block Scope 55:32 Loop Scope 59:44 Shadowing 1:06:53 Variable Arguments (Varargs) 1:12:07 Method Overloading 1:19:25 🎯 Questions 1:20:01 Q1 : Prime Number 1:23:52 Q2 : Check Armstrong Number 1:28:27 Q3 : Print All 3 Digit Armstrong Numbers 1:30:18 Outro #placement #dsa #interviews

You May Also Like