You are on page 1of 13

TOPICS FOR GROUP DISCUSSION

 Discuss Packages, Access specifiers


and Encapsulation in Java.
 ArrayList Vs Vector
Presented by Group 4 :

Names of Group members


1. Devle Mayur (70)
2. Gaikwad Rahul (73)
3. Waghmare Gayatri (74)
4. Joshi Rushikesh (79)
5. Khanvilkar Jenifer (87)
6. Mandage Pratiksha (91)
1. Discuss Packages, Access Specifiers
and Encapsulation in java
 Packages -Package in Java is a mechanism to encapsulate a group of classes, sub
packages and interfaces.

Types of packages :-
1. Built-in Packages
2. User-defined packages

Access Specifiers in java


The access modifiers in Java specifies the accessibility or scope of a field, method,
constructor, or class.

 Encapsulation
Encapsulation is mechanism that binds the data and functions together. This
mechanism keeps both data and functions safe from outside interference and
misuse.
LITERATURE REVIEW
1 2

Paper Title Study of Java Access Control Structural Operational Semantics


Mechanism of Packages in Java

Author Manhal Mohammad Basher 1)Mohammad Shamsul Arefin


2)Abdullah AI Farook

Published Year 2013 2008

Published By Department Of Mechanical, Computer Science and


Technical Institute / Foundation Engineering Department ,
of Technical Education, Iraq Bangladesh

Points taken from paper Encapsulation,OOP,Packages, Packages in java


Access Modifiers
LITERATURE REVIEW
Paper 1
Study of Java Access Control Mechanism
The work in this paper is focused on Java ,OOP in java, Access
spceifiers and modifiers, packages in java and also encapsulation
in java

 Paper 2
Structural Operational Semantics of Packages in Java
The work in this paper is focused on JAVA, Structural operational,
Semantics, Packages, Abstraction, Environment etc. In this paper
the structural operational semantics of packages in Mini Java is
defined.
Points to be discussed in GD
1. Packages in java
I. Types of packages in java
II. Need and uses of packages in java
III. Advantages and disadvantages of packages
2. Access specifiers in java
I. Definition of access specifiers
II. Types of access specifiers in java
III. Benefits of access specifiers in java
3. Encapsulation
I. Definition of encapsulation
II. How to achieve encapsulation java
III. Benefits of encapsulation in java
References
https://www.geeksforgeeks.org/encapsulation-in-ja
va/
https://www.tutorialspoint.com/java/java_encapsul
ation
.
https://www.javatpoint.com/package
https://www.geeksforgeeks.org/introduction-to-jav
a
/
https://
www.researchgate.net/publication/274572185_Co
mparative_Studies_of_Six_Programming_Langua
Topic 2: Arraylist vs Vector
1. ArrayList:

I. ArrayList is a part of collection framework and is present in


java.util package.
II. It provides us with dynamic arrays in Java.
III. Though, it may be slower than standard arrays but can be helpful
in programs where lots of manipulation in the array is needed.

2. Vector:

IV. The Vector class implements a growable array of objects. Vectors


fall in legacy classes, but now it is fully compatible with
collections.
V. It is found in java.util package and implement the List interface
Literature review
1 2
Paper Title A case study in class library An analysis of students’
verification: Java’s vector class difficulties with ArrayList
object collections and proposals
for supporting the learning
process
Author 1) M. Huisman, B.P.F. Jacobs, 1) Stelios Xinogalos(*),
2) J.A.G.M. van den Berg 2) Maya Satratzemi(*)

Published Year 2002 2008

Published By Computing Science Institute, Department of Applied


University of Nijmegen Informatics, (**)Department of
Toernooiveld 1, 6525 ED Educational and Social Policy
Nijmegen, The Netherlands University of Macedonia,
Thessaloniki, Greece
Points taken from paper Java vectors Arraylist
Literature review
• Paper 1

Vector is a predefined class in a Java. It's a part of Java Collection framework.


It is used to store objects of different type and size in any number. Vector is like
the dynamic array which can grow or shrink its size. Unlike array, we can store n-
number of elements in it as there is no size limit. I

• Paper 2

In simple words, arraylist is a modified array. ArrayList objects either as return


types or as parameters, as well as of methods for accessing objects grouped in
ArrayList objects. ArrayList. It implements the List interface using an array and
allows the underlying array to grow or shrink as needed. This also means that
the ArrayList class contains the code for the methods defined in the List interface.
Points to be discussed in GD
1] ArrayList:

I. Introduction to arraylist
II. Arraylist class declaration
III. Constructors of ArrayList
IV. Methods of ArrayList
V. User-defined class objects in Java ArrayList
VI. How to sort arraylist ?

2] Vectors:-

VII.Introduction to Vectors in java


VIII.Vectors class declaration
IX. Constructors of vectors
X. Methods of Vectors
XI. Java Vector Example
References
• https://www.javatpoint.com/java-arraylist
• https://www.javatpoint.com/java-vector
• https://www.geeksforgeeks.org/arraylist-in-java/
• https://
www.javatpoint.com/difference-between-arraylist
-and-vector
• https://
www.w3schools.com/java/java_arraylist.asp
• https://www.geeksforgeeks.org/java-util-vector-cl
ass-java
/
THANK-YOU

You might also like