@LapseTalks-s21

00:03 Drawbacks of array in Java
00:26 In Java, an array is an object created in Heap memory.
00:51 Arrays of objects in Java occupy continuous memory space.
01:10 Copying all elements to increase array size consumes time.
01:30 Searching or inserting values in an array of objects in Java can be time-consuming.
01:55 Array of Objects in Java is not an optimal solution for having an object of student integer string.
02:15 Collections in Java have drawbacks and benefits
02:36 Arrays of objects in Java have different use cases

@sirfmgamer5655

you sir have just got another subscriber. beautiful explanation and I wrote so many lines of code until you showed how to simply used those three attributes for ALL of the student objects instead of making one attribute for each object. definitely i am going to check out all of your other videos too. thank you.

@MasangaJoeltembei

Best programming teacher on planet ❤

@elikmtl

The best explanation of Array of Objects in :yt: Thank you!🙏

@AbdulAhad-uj1nf

First comment from #SriLanka.Thanks you so much for your help

@theWhyFormula

More precise way 

for(Student s: students) {
     System.out.println(s.name  + ":" + s.mark);
}

@tejaswinigm2606

I have a list<object[]> which I got from DB query based on few conditions, which contains below location details... I want o/p as segregated locations i.e all cities and zipcodes into its state, all states into country

Cou1 state1 city1 zip1
Cou1 state2 city2 zip2
Cou1 state1 city 3 zip3

O/p sld be as 
Cou1
   State1
      Cit1 - zip1
      Cit3 - zip3
  State2
     Cit2 - zip2

@simikhuzwayo

3:40 Good explanation

@kazialhasan5433

Getting error when Student class is not Static. But Navin didn't have it as static. What am I doing wrong?

@JehanSaren

Nice sir, can you do this using with constructor?

@sudeep8577

Thank u sir

@shivarajme

good one

@owl166

Can we use collection framework to create an array of objects.....??
Thanks in advance

@jooyeonsimp

So array is going to store objects values in place of objects ?? Basically in a array each element consists of 3 different student values

@pankajSingh-nh2qi

public static void main(String[] args) use this if showing error

@kvelez

public class Main{
    public static void main(String[] args) {

        Student stud = new Student();
        stud.roll = 1;
        stud.marks = 88;
        stud.name = "Kevin";

        Student stud2 = new Student();
        stud2.roll = 2;
        stud2.marks = 78;
        stud2.name = "Marco";

        Student stud3 = new Student();
        stud3.roll = 3;
        stud3.marks = 90;
        stud3.name = "Justin";

        Student[] students = new Student[3];//Array with references
        students[0] = stud;//Manual objects
        students[1] = stud2;
        students[2] = stud3;

        for (Student student : students) {
            System.out.print(student.name + " " + student.roll + " " + student.marks + "\n");
        }

    }
}

class Student {
    int roll;
    int marks;
    String name;
}

@aninditadas7348

Hello Sir,
Getting below error
 error: cannot find symbol
         Student s1=new Student();
         ^
  symbol:   class Student
  location: class ArrayObject
ArrayObject.java:4: error: cannot find symbol
         Student s1=new Student();
                        ^
  symbol:   class Student
  location: class ArrayObject
2 errors

MY code
class ArrayObject{
    public static void main(String a[]){
        
         Student s1=new Student();
        
    

    }
}

@YokutjonTohirova-mu5gk

🔥🔥🔥🔥

@ankitbaranwal883

What is the difference b/w array of objects and collection functionality wise

@faltuCoder35

seson 2 kha hai bhae