Passing Array as Arguments in Methods & Returning Arrays from Methods in Java

preview_player
Показать описание
Support Simple Snippets by Donations -
--------------------------------------------------------------------------------------------- In this programming tutorial, we will learn how to pass array as arguement in java. We will also learn how to return array from method in java. This is a quick practical video where we will see a practical example to perform both the task.

Simple Snippets Official Website -
Simple Snippets on Facebook -
Simple Snippets on Instagram -
Simple Snippets on Twitter -
Simple Snippets Google Plus Page -
Simple Snippets email ID -

Рекомендации по теме
Комментарии
Автор

Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌

SimpleSnippets
Автор

Thanku so much Sir for clearing the concept ❤❤🙏🙏

naveentandon
Автор

This video was absolutely awesome for a beginner and would definitely get trilled by knowing "How to return an array from a function to other function as its argument".

hemanthramakrishnan
Автор

thanks man, I ve bine searching for this for like 2 hours

ericionescu
Автор

Thank you sir... really good explaination and very clear in thought. I saw several videos on this sbefore .. but this gave me clarity.

nagraj
Автор

One of the best teaching channel, i have seen c++ series and java series .... Really great work man-Tanmay Sakpal

abhishekdameria
Автор

This was a good explanation. I want sure how the arrays are passed and printed, the second technique is used in school and I think looks much more clean. Thanks for the info 🤙

PunjabiKush
Автор

ive been always taught to type

public static void printArray( int a [ ] )

i guess everyone codes differently.

ButterySkater
Автор

I cannot understand when we have passed an argument of the array with name "a" then why we have made an array with name array in the main method.

asmashah
Автор

Quick Question why did you create an object of Array? Cant you just declare straight? As int a[] = {1, 3, 4}?

I thought passing array is just like
Public static void Test_1(String x, int y){
S.o.p(x +y);
}

Under main(){
Test_1(“xyz”, 5);
}


Please clarify. Thanks

syedalam