Перейти к содержимому

Java Methods Explained with Real Code💻 | Void, String & int Return Types | Java Series

Madebysheee

0:00 / 0:00

Java Methods Explained with Real Code💻 | Void, String & int Return Types | Java Series

21 просмотр · 8 дн. назад
Madebysheee
128 подписчиков
21 просмотр · 8 дн. назад
Methods are how you organize and reuse logic in Java and understanding return types is where most beginners get confused. In this video I write real, working Java code live, covering void methods, methods that return a String, and methods that return an int, then call all three from main(). ✅ What's covered: What a method actually is (and why we use them) void methods performing an action, no return value Methods that return a String (and concatenating results) Methods that return an int Calling methods on an object (t.fetchfile(), t.closefile(), t.file_opened()) How return values get used and printed This is a live code walkthrough real syntax, real output, no slides, just the code and the terminal. ⏱️ Timestamps 0:00 Intro 0:20 Setting up the class 1:00 void method fetchfile() 2:00 Method returning a String closefile() 3:00 Method returning an int file_opened() 4:00 Calling everything from main() 4:45 Output & recap 👍 Like, subscribe, and comment which Java topic you want covered next! #programming #coding #genz #explained #java #interview #question #concept #easy #tips #JavaMethods #Java #JavaProgramming #LearnJava #JavaTutorial #CodingTutorial #JavaForBeginners #CSFundamentals #ProgrammingBasics #CodeNewbie #JavaBasics #TechEducation #CodingLife #SoftwareDevelopment #LearnToCode #viral #ytshorts #techshorts #techeducation #computerscience #csinterview #csexplained #dsa #foryou