Core Java with OCJP/SCJP: Language Fundamentals Part-12 || var-arg methods

Java

Video is ready, Click Here to View ×


https://youtu.be/HYAosZptldA?list=PLd3UqWTnYXOkWWJd8flj3echGYm3y5dXo

29 thoughts on “Core Java with OCJP/SCJP: Language Fundamentals Part-12 || var-arg methods

  1. Sir your Videos are Awesome.
    I enjoy Learning Java from these videos.
    If I was living in Hyderabad I would have Definitely joined your classes anyways Thank You so much, sir, for making these videos available to us. Really Appreciate Your Efforts….

  2. durga sir your excellent really excellent!
    sir I am designer but I am interested in webdevelopment also so I started learning u r videos for web development where I have to start and which flow is good please tell me I am unable to select the course's

  3. Hi Durga sir,
    I have taken your example and tried to compile it which explained in 50 min track video.But I didn't got result as you have explained.

    code:
    package prac;

    public class Varargs2 {

    public static void m1(int… x){

    System.out.println("Var-args");
    }
    public static void m1(int x){
    System.out.println("General");
    }
    public static void main(String[] args) {
    m1();
    m1(10);
    m1(10,20);

    }

    }

    O/p:
    ——
    Var-args
    General
    Var-args
    here general method is not getting priority as you have explained.
    can you explain this why this is happening?

Leave a Reply

Your email address will not be published. Required fields are marked *