Java Var args Method - Case - 5 (Part - 7)

Опубликовано: 08 Октябрь 2018
на канале: VK Programming Villa
964
19

In this tutorial we’re going to look at Var args method Syntax loopholes for OCJP Exam with Case – 5 in Java programming language in detail and in Case – 5, we are going to learn some important points related to var arg method like

1. Var-args methods will get least priority i.e. if no other normal method matched then only var args method will get the chance.

2. It is exactly same as default case inside switch-case.

Background :

Q: You may ask why we need var args Method. Where it is useful?

A: Let me explain you first, Problem until Java 4.0.

1. We cannot declare a method with variable number of arguments.

2. If there is a change in a number of arguments then compulsory we should declare a new method, which increases the length of code and reduces readability.

So, to overcome this problem “SUN” people introduced var-args method concept in Java 5.0 or jdk1.5 version that are explained it with programs. You must watch previous videos for problem understanding as well as for better understanding of Var args concept with solution.

Upcoming Video :

In upcoming tutorials, we will upload more videos regarding OCJP Exam point of view as well as interview preparation.

#java #Varargs #OCJP #SCJP #OCJPExam #SCJPExam #SyntaxLoopholes #Vararg #Programming #Tutorials #Case5

Social Links: Don't hesitate to contact me if you have any further questions.

FACEBOOK:   / cse.programming.assignments  

GOOGLE+ : https://plus.google.com/u/0/114693282...

Quora: https://www.quora.com/profile/Vinay-K...

Related Videos:    • OCJP-SCJP Exam / Java Interview Preparation  

Gmail: cse.programming.assignments@gmail.com


На этой странице сайта вы можете посмотреть видео онлайн Java Var args Method - Case - 5 (Part - 7) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь VK Programming Villa 08 Октябрь 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 964 раз и оно понравилось 19 зрителям. Приятного просмотра!