SlideShare a Scribd company logo
0 | P a g e
11/26/2016
PROJECT REPORT
JAVA PROGRAMING
TOPIC
WRAPPER CLASS AND
METHOD OF NENNESTING
SUBMITTED BY
Gaurav Singh Chouhan
BCA- II year
Dezyne E’cole College
INFORMATION TECHNOLOGY
www.dezyneecole.com
1 | P a g e
Project Report
On
JVA PROGRAM
At
Dezyne E’cole College
Ajmer
Submitted to
Dezyne E’cole College
To words the
Practical Fulfillment on
BACHLAR OF COMPUTER APPLICATION
By
Gaurav singh chouhan
Dezyne E’cole Collage
106/10 civil lines, Ajmer
www.dezyneecole.com
Year
2016-2017
2 | P a g e
ACKNOWLEDGMENT
I Gaurav singh chouhan, student of Dezyne E’ Cole College, on?
Extremely Grateful to each and every individual who has
contributed in Successful completion of my Project.
I Express my Gratitude top word Dezyne E’cole college for
their. Guidance and Constant Super vision as well as for
providing the necessary information and Support Regarding
the Completion of project.
Thank you.
3 | P a g e
SYNOPSIS
This project is a minor, project made based on the theoretical
concepts of Java. This project has made our basic concepts on
Java Strong
4 | P a g e
Wrapper classes:-
As pointed out earlier, vectors cannot handle primitive data types like int, float
char, and double. Primitive data type may be converted into object type by using
the wrapper classes contained in the java.lang Package. Following table shows
the simple data types and their corresponding wrapper class types.
Wrapper Classes For Converting Types:-
Simple Type Wrapper Class
Boolean Boolean
Char Character
Double Double
Float Float
Int Integer
Long Long
The wappera classes have a number of unique methods for handling primitive
data type and object. They are listed in the following tables.
Converting Primitive Number to Object Number Using Constructor Method:-
Constructor Calling Conversion Action
Integer IntVal=new Integer(i); Primitive integer to Integer Object
Float FloatVal=new Float(f); Primitive float to Float Object
Double Doubleva=new Double(d); Primitive double to Double Object
Long LongVal=new Long(l); Primitive long to Long Object
Converting Object Number to Primitive Number Using type Value() Method:-
Method Calling Conversion Action
Int i=IntVal.intValue(); Object to Primitive integer
float f=FloatVal.floatValue(); Object to Primitive float
Long l=Longval.longValue(); Object to Primitive long
Double d=DoubleVal.doubleValue(); Object to Primitive double
5 | P a g e
Converting Number to String Using to String()Method:-
Method Calling Conversion Action
str=Integer.toString(i); Primitive integer to string
str=Float.toFloat(f); Primitive float to string
str=Double.toDouble(d); Primitive double to string
str=Long.toLong(l); Primitive long to string
Converting String objects to Number Object Using the Static Method valueOf()
Method Calling Converion Action
DoubleVal = Double.valueOf(str); Converts string to Double object
FloatVal = Float.valueOf(str); Converts string to Float object
IntVal = Integer.valueOf(str); Converts string to Integer object
LongVal = Long.valueOf(str); Converts string to Long object
Converting Numeric String to Primitive Number Using Parsing Methods
Method Calling Conversion Action
Int I =Integer.ParseInt(str); Converts string to primitive integer
float f =Integer.ParseFloat(str); Converts string to primitive float
long l =Integer.ParseLong(str); Converts string to primitive long
double d =Integer.ParseDouble(str); Converts string to primitive double
6 | P a g e
Converting Primitive Number to object
Numbers
Output :-
7 | P a g e
Converting Object Number to Primitive
Number :-
Output:-
8 | P a g e
Converting Number to String
Output :-
9 | P a g e
Converting String Object to Numeric Object
Output :-
10 | P a g e
Converting Numeric String to Primitive Number
Output :-
11 | P a g e
Auto Boxing and Unboxing:-
The auto boxing and Unboxing feature, introduced in J2SE 5.0, facilities the
process of handling primitive data type in collection we can use the feature to
convert primitive data type to wrapper class type automatically.
The compiler generates a cade implicitly to convert primitive type to the
corresponding wrapper class type and vise-versa. For Example, Consider the
Following Statements:
Doubled=98;
Double dbl=d.doubleValue();
Using the auto boxing and unboxing feature, we can rewrite the above code
as:-
Double d=98.42;
Double dbl=d;
How, the java compiler provide restrictions to perform the following
conversions:-
 Convert from null type to any primitive type.
 Convert to the null type other than the identify conversion.
 Convert from any class type C to any array type id C is not object.
12 | P a g e
Vector without using auto Boxing and Unboxing:-
Output :-
13 | P a g e
Vector with using auto Boxing and Unboxing :-
Output :-
14 | P a g e
Nesting of Methods :-
We discussed earlier that a method of a class can be called
only by an object of that class (or class itself, in the case of
static methods) using the dot operator. However, there is an
exception to this. A methods can be called by using only its
name by another method of the same class. This is known as
nesting of methods.
Program illustrates the nesting of methods inside a class. The
class nesting defines one constructor and two methods,
namely largest() and display() calls the method largest() to
determine the largest of the two numbers and then displays
the result.
15 | P a g e
Nesting of methods
Output :-
16 | P a g e
Nesting Methods
Output :-
A method can call any number of methods.
It is also possible a called method to call another
Method. That is, method1 may call method2, which in turn may call method3.

More Related Content

What's hot

Rounit Mathur,BCA 2nd year.
Rounit Mathur,BCA 2nd year.Rounit Mathur,BCA 2nd year.
Rounit Mathur,BCA 2nd year.
dezyneecole
 
Daksh Sharma ,BCA 2nd Year
Daksh  Sharma ,BCA 2nd YearDaksh  Sharma ,BCA 2nd Year
Daksh Sharma ,BCA 2nd Year
dezyneecole
 
Deepika Mittal,BCA ,2nd Year
Deepika Mittal,BCA ,2nd Year Deepika Mittal,BCA ,2nd Year
Deepika Mittal,BCA ,2nd Year
dezyneecole
 
Deepak Soni,BCA 2nd Year
Deepak Soni,BCA 2nd YearDeepak Soni,BCA 2nd Year
Deepak Soni,BCA 2nd Year
dezyneecole
 
Farhaan Ahmed, BCA 2nd Year
Farhaan Ahmed, BCA 2nd YearFarhaan Ahmed, BCA 2nd Year
Farhaan Ahmed, BCA 2nd Year
dezyneecole
 
Aanchal Gupta,BCA 2nd year
Aanchal Gupta,BCA 2nd yearAanchal Gupta,BCA 2nd year
Aanchal Gupta,BCA 2nd year
dezyneecole
 
Shivani Chouhan ,BCA ,2nd Year
Shivani Chouhan ,BCA ,2nd YearShivani Chouhan ,BCA ,2nd Year
Shivani Chouhan ,BCA ,2nd Year
dezyneecole
 
Ram Prasad ,BCA 2nd Year
Ram Prasad ,BCA 2nd YearRam Prasad ,BCA 2nd Year
Ram Prasad ,BCA 2nd Year
dezyneecole
 
Pooja Sharma ,BCA 2nd Year
Pooja Sharma ,BCA 2nd YearPooja Sharma ,BCA 2nd Year
Pooja Sharma ,BCA 2nd Year
dezyneecole
 
Ravi Sharma,BCA 2nd Year
Ravi Sharma,BCA 2nd YearRavi Sharma,BCA 2nd Year
Ravi Sharma,BCA 2nd Year
dezyneecole
 
Varun Kaushik, BCA 2nd Year
Varun Kaushik, BCA 2nd YearVarun Kaushik, BCA 2nd Year
Varun Kaushik, BCA 2nd Year
dezyneecole
 
Shaikh Mohammad Usman Haider ,BCA 2nd Year
Shaikh Mohammad Usman Haider ,BCA 2nd Year Shaikh Mohammad Usman Haider ,BCA 2nd Year
Shaikh Mohammad Usman Haider ,BCA 2nd Year
dezyneecole
 
Rakesh Bijawat, BCA 2nd Year
Rakesh Bijawat, BCA 2nd YearRakesh Bijawat, BCA 2nd Year
Rakesh Bijawat, BCA 2nd Year
dezyneecole
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
Dezyneecole
 
Amit Kumar Yadav ,BCA
Amit Kumar Yadav ,BCAAmit Kumar Yadav ,BCA
Amit Kumar Yadav ,BCA
dezyneecole
 
Nikita Totlani ,BCA 2nd year
Nikita Totlani ,BCA 2nd year Nikita Totlani ,BCA 2nd year
Nikita Totlani ,BCA 2nd year
dezyneecole
 
Yashika Soni, BCA 2nd Year
Yashika Soni, BCA 2nd YearYashika Soni, BCA 2nd Year
Yashika Soni, BCA 2nd Year
dezyneecole
 
Mithlesh Singh Rawat, BCA 2nd Year
Mithlesh Singh Rawat, BCA 2nd Year Mithlesh Singh Rawat, BCA 2nd Year
Mithlesh Singh Rawat, BCA 2nd Year
dezyneecole
 
Kaushal Soni,BCA,2nd Year
Kaushal Soni,BCA,2nd YearKaushal Soni,BCA,2nd Year
Kaushal Soni,BCA,2nd Year
dezyneecole
 
Sudarshan Joshi,BCA 2nd Year
Sudarshan Joshi,BCA 2nd Year Sudarshan Joshi,BCA 2nd Year
Sudarshan Joshi,BCA 2nd Year
dezyneecole
 

What's hot (20)

Rounit Mathur,BCA 2nd year.
Rounit Mathur,BCA 2nd year.Rounit Mathur,BCA 2nd year.
Rounit Mathur,BCA 2nd year.
 
Daksh Sharma ,BCA 2nd Year
Daksh  Sharma ,BCA 2nd YearDaksh  Sharma ,BCA 2nd Year
Daksh Sharma ,BCA 2nd Year
 
Deepika Mittal,BCA ,2nd Year
Deepika Mittal,BCA ,2nd Year Deepika Mittal,BCA ,2nd Year
Deepika Mittal,BCA ,2nd Year
 
Deepak Soni,BCA 2nd Year
Deepak Soni,BCA 2nd YearDeepak Soni,BCA 2nd Year
Deepak Soni,BCA 2nd Year
 
Farhaan Ahmed, BCA 2nd Year
Farhaan Ahmed, BCA 2nd YearFarhaan Ahmed, BCA 2nd Year
Farhaan Ahmed, BCA 2nd Year
 
Aanchal Gupta,BCA 2nd year
Aanchal Gupta,BCA 2nd yearAanchal Gupta,BCA 2nd year
Aanchal Gupta,BCA 2nd year
 
Shivani Chouhan ,BCA ,2nd Year
Shivani Chouhan ,BCA ,2nd YearShivani Chouhan ,BCA ,2nd Year
Shivani Chouhan ,BCA ,2nd Year
 
Ram Prasad ,BCA 2nd Year
Ram Prasad ,BCA 2nd YearRam Prasad ,BCA 2nd Year
Ram Prasad ,BCA 2nd Year
 
Pooja Sharma ,BCA 2nd Year
Pooja Sharma ,BCA 2nd YearPooja Sharma ,BCA 2nd Year
Pooja Sharma ,BCA 2nd Year
 
Ravi Sharma,BCA 2nd Year
Ravi Sharma,BCA 2nd YearRavi Sharma,BCA 2nd Year
Ravi Sharma,BCA 2nd Year
 
Varun Kaushik, BCA 2nd Year
Varun Kaushik, BCA 2nd YearVarun Kaushik, BCA 2nd Year
Varun Kaushik, BCA 2nd Year
 
Shaikh Mohammad Usman Haider ,BCA 2nd Year
Shaikh Mohammad Usman Haider ,BCA 2nd Year Shaikh Mohammad Usman Haider ,BCA 2nd Year
Shaikh Mohammad Usman Haider ,BCA 2nd Year
 
Rakesh Bijawat, BCA 2nd Year
Rakesh Bijawat, BCA 2nd YearRakesh Bijawat, BCA 2nd Year
Rakesh Bijawat, BCA 2nd Year
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
 
Amit Kumar Yadav ,BCA
Amit Kumar Yadav ,BCAAmit Kumar Yadav ,BCA
Amit Kumar Yadav ,BCA
 
Nikita Totlani ,BCA 2nd year
Nikita Totlani ,BCA 2nd year Nikita Totlani ,BCA 2nd year
Nikita Totlani ,BCA 2nd year
 
Yashika Soni, BCA 2nd Year
Yashika Soni, BCA 2nd YearYashika Soni, BCA 2nd Year
Yashika Soni, BCA 2nd Year
 
Mithlesh Singh Rawat, BCA 2nd Year
Mithlesh Singh Rawat, BCA 2nd Year Mithlesh Singh Rawat, BCA 2nd Year
Mithlesh Singh Rawat, BCA 2nd Year
 
Kaushal Soni,BCA,2nd Year
Kaushal Soni,BCA,2nd YearKaushal Soni,BCA,2nd Year
Kaushal Soni,BCA,2nd Year
 
Sudarshan Joshi,BCA 2nd Year
Sudarshan Joshi,BCA 2nd Year Sudarshan Joshi,BCA 2nd Year
Sudarshan Joshi,BCA 2nd Year
 

Viewers also liked

Mamta Manwani ,Bachelors Degree in Fashion Technology,Visit report on bagru
Mamta Manwani ,Bachelors Degree in Fashion Technology,Visit report on bagruMamta Manwani ,Bachelors Degree in Fashion Technology,Visit report on bagru
Mamta Manwani ,Bachelors Degree in Fashion Technology,Visit report on bagru
dezyneecole
 
Mamta Manwani ,Bachelors Degree in Fashion Technology,Project on Ties
Mamta Manwani ,Bachelors Degree in Fashion Technology,Project on TiesMamta Manwani ,Bachelors Degree in Fashion Technology,Project on Ties
Mamta Manwani ,Bachelors Degree in Fashion Technology,Project on Ties
dezyneecole
 
Mamta Manwani,Fashion Designer,B.Sc.Fashion +2 Years diploma in women's wear
Mamta Manwani,Fashion Designer,B.Sc.Fashion +2 Years diploma in women's wearMamta Manwani,Fashion Designer,B.Sc.Fashion +2 Years diploma in women's wear
Mamta Manwani,Fashion Designer,B.Sc.Fashion +2 Years diploma in women's wear
dezyneecole
 
Dinesh Narayan ,Final year BCA ,Dezyne E'cole College
Dinesh Narayan ,Final year BCA ,Dezyne E'cole CollegeDinesh Narayan ,Final year BCA ,Dezyne E'cole College
Dinesh Narayan ,Final year BCA ,Dezyne E'cole College
dezyneecole
 
Jagriti Pepawat, Final Year BCA .Dezyne E'cole College
Jagriti Pepawat, Final Year BCA .Dezyne E'cole CollegeJagriti Pepawat, Final Year BCA .Dezyne E'cole College
Jagriti Pepawat, Final Year BCA .Dezyne E'cole College
dezyneecole
 
Jaya Asnani,3rd Year BCA ,Project on c++
Jaya Asnani,3rd Year BCA ,Project on c++Jaya Asnani,3rd Year BCA ,Project on c++
Jaya Asnani,3rd Year BCA ,Project on c++
dezyneecole
 
Tanu Chourasiya,B.Sc fashion Technology+2 years Diploma
Tanu Chourasiya,B.Sc fashion Technology+2 years Diploma Tanu Chourasiya,B.Sc fashion Technology+2 years Diploma
Tanu Chourasiya,B.Sc fashion Technology+2 years Diploma
dezyneecole
 
Akshay sharma,BS.c-Fashion Technology,+2 years Diploma
 Akshay sharma,BS.c-Fashion Technology,+2 years Diploma  Akshay sharma,BS.c-Fashion Technology,+2 years Diploma
Akshay sharma,BS.c-Fashion Technology,+2 years Diploma
dezyneecole
 
Jitesh Thakur,B.Sc.Interior Design+2 years Diploma ID
Jitesh Thakur,B.Sc.Interior Design+2 years Diploma IDJitesh Thakur,B.Sc.Interior Design+2 years Diploma ID
Jitesh Thakur,B.Sc.Interior Design+2 years Diploma ID
dezyneecole
 
Mozcon 2016 - Building Links in 2016
Mozcon 2016 - Building Links in 2016Mozcon 2016 - Building Links in 2016
Mozcon 2016 - Building Links in 2016
Kirsty Hulse
 
Curing Design Complacency
Curing Design ComplacencyCuring Design Complacency
Curing Design Complacency
Stacy Kvernmo
 
BigWeatherGear Group and Corporate Services Brochure 2013
BigWeatherGear Group and Corporate Services Brochure 2013BigWeatherGear Group and Corporate Services Brochure 2013
BigWeatherGear Group and Corporate Services Brochure 2013
Kristin Matson
 
SEO: Getting Personal
SEO: Getting PersonalSEO: Getting Personal
SEO: Getting Personal
Kirsty Hulse
 
Test Driven Design - GDG DevFest Istanbul 2016
Test Driven Design - GDG DevFest Istanbul 2016Test Driven Design - GDG DevFest Istanbul 2016
Test Driven Design - GDG DevFest Istanbul 2016
Lemi Orhan Ergin
 
The Great State of Design with CSS Grid Layout and Friends
The Great State of Design with CSS Grid Layout and FriendsThe Great State of Design with CSS Grid Layout and Friends
The Great State of Design with CSS Grid Layout and Friends
Stacy Kvernmo
 

Viewers also liked (15)

Mamta Manwani ,Bachelors Degree in Fashion Technology,Visit report on bagru
Mamta Manwani ,Bachelors Degree in Fashion Technology,Visit report on bagruMamta Manwani ,Bachelors Degree in Fashion Technology,Visit report on bagru
Mamta Manwani ,Bachelors Degree in Fashion Technology,Visit report on bagru
 
Mamta Manwani ,Bachelors Degree in Fashion Technology,Project on Ties
Mamta Manwani ,Bachelors Degree in Fashion Technology,Project on TiesMamta Manwani ,Bachelors Degree in Fashion Technology,Project on Ties
Mamta Manwani ,Bachelors Degree in Fashion Technology,Project on Ties
 
Mamta Manwani,Fashion Designer,B.Sc.Fashion +2 Years diploma in women's wear
Mamta Manwani,Fashion Designer,B.Sc.Fashion +2 Years diploma in women's wearMamta Manwani,Fashion Designer,B.Sc.Fashion +2 Years diploma in women's wear
Mamta Manwani,Fashion Designer,B.Sc.Fashion +2 Years diploma in women's wear
 
Dinesh Narayan ,Final year BCA ,Dezyne E'cole College
Dinesh Narayan ,Final year BCA ,Dezyne E'cole CollegeDinesh Narayan ,Final year BCA ,Dezyne E'cole College
Dinesh Narayan ,Final year BCA ,Dezyne E'cole College
 
Jagriti Pepawat, Final Year BCA .Dezyne E'cole College
Jagriti Pepawat, Final Year BCA .Dezyne E'cole CollegeJagriti Pepawat, Final Year BCA .Dezyne E'cole College
Jagriti Pepawat, Final Year BCA .Dezyne E'cole College
 
Jaya Asnani,3rd Year BCA ,Project on c++
Jaya Asnani,3rd Year BCA ,Project on c++Jaya Asnani,3rd Year BCA ,Project on c++
Jaya Asnani,3rd Year BCA ,Project on c++
 
Tanu Chourasiya,B.Sc fashion Technology+2 years Diploma
Tanu Chourasiya,B.Sc fashion Technology+2 years Diploma Tanu Chourasiya,B.Sc fashion Technology+2 years Diploma
Tanu Chourasiya,B.Sc fashion Technology+2 years Diploma
 
Akshay sharma,BS.c-Fashion Technology,+2 years Diploma
 Akshay sharma,BS.c-Fashion Technology,+2 years Diploma  Akshay sharma,BS.c-Fashion Technology,+2 years Diploma
Akshay sharma,BS.c-Fashion Technology,+2 years Diploma
 
Jitesh Thakur,B.Sc.Interior Design+2 years Diploma ID
Jitesh Thakur,B.Sc.Interior Design+2 years Diploma IDJitesh Thakur,B.Sc.Interior Design+2 years Diploma ID
Jitesh Thakur,B.Sc.Interior Design+2 years Diploma ID
 
Mozcon 2016 - Building Links in 2016
Mozcon 2016 - Building Links in 2016Mozcon 2016 - Building Links in 2016
Mozcon 2016 - Building Links in 2016
 
Curing Design Complacency
Curing Design ComplacencyCuring Design Complacency
Curing Design Complacency
 
BigWeatherGear Group and Corporate Services Brochure 2013
BigWeatherGear Group and Corporate Services Brochure 2013BigWeatherGear Group and Corporate Services Brochure 2013
BigWeatherGear Group and Corporate Services Brochure 2013
 
SEO: Getting Personal
SEO: Getting PersonalSEO: Getting Personal
SEO: Getting Personal
 
Test Driven Design - GDG DevFest Istanbul 2016
Test Driven Design - GDG DevFest Istanbul 2016Test Driven Design - GDG DevFest Istanbul 2016
Test Driven Design - GDG DevFest Istanbul 2016
 
The Great State of Design with CSS Grid Layout and Friends
The Great State of Design with CSS Grid Layout and FriendsThe Great State of Design with CSS Grid Layout and Friends
The Great State of Design with CSS Grid Layout and Friends
 

Similar to Gaurav Singh Chouhan, BCA 2nd Year

BCA 2nd year Java prog. File
BCA 2nd year Java prog. FileBCA 2nd year Java prog. File
BCA 2nd year Java prog. File
Rahul Saini
 
Wrapper classes
Wrapper classesWrapper classes
Wrapper classes
FArhaan Khan
 
Brijesh Peswani,BCA 2nd Year
Brijesh Peswani,BCA 2nd YearBrijesh Peswani,BCA 2nd Year
Brijesh Peswani,BCA 2nd Year
dezyneecole
 
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third Year
Dezyneecole
 
Kirti Kumawat
Kirti KumawatKirti Kumawat
Kirti Kumawat
dezyneecole
 
Akshay Sharma,BCA,2nd year
Akshay Sharma,BCA,2nd yearAkshay Sharma,BCA,2nd year
Akshay Sharma,BCA,2nd year
dezyneecole
 
Samarth Gaur ,BCA 2nd Year
Samarth Gaur ,BCA 2nd YearSamarth Gaur ,BCA 2nd Year
Samarth Gaur ,BCA 2nd Year
dezyneecole
 
Ravi Prakash,BCA,2nd Year
Ravi Prakash,BCA,2nd YearRavi Prakash,BCA,2nd Year
Ravi Prakash,BCA,2nd Year
dezyneecole
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
Nilesh Dalvi
 
22316-2019-Summer-model-answer-paper.pdf
22316-2019-Summer-model-answer-paper.pdf22316-2019-Summer-model-answer-paper.pdf
22316-2019-Summer-model-answer-paper.pdf
PradipShinde53
 
Presentation 4th
Presentation 4thPresentation 4th
Presentation 4th
Connex
 

Similar to Gaurav Singh Chouhan, BCA 2nd Year (11)

BCA 2nd year Java prog. File
BCA 2nd year Java prog. FileBCA 2nd year Java prog. File
BCA 2nd year Java prog. File
 
Wrapper classes
Wrapper classesWrapper classes
Wrapper classes
 
Brijesh Peswani,BCA 2nd Year
Brijesh Peswani,BCA 2nd YearBrijesh Peswani,BCA 2nd Year
Brijesh Peswani,BCA 2nd Year
 
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third Year
 
Kirti Kumawat
Kirti KumawatKirti Kumawat
Kirti Kumawat
 
Akshay Sharma,BCA,2nd year
Akshay Sharma,BCA,2nd yearAkshay Sharma,BCA,2nd year
Akshay Sharma,BCA,2nd year
 
Samarth Gaur ,BCA 2nd Year
Samarth Gaur ,BCA 2nd YearSamarth Gaur ,BCA 2nd Year
Samarth Gaur ,BCA 2nd Year
 
Ravi Prakash,BCA,2nd Year
Ravi Prakash,BCA,2nd YearRavi Prakash,BCA,2nd Year
Ravi Prakash,BCA,2nd Year
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
22316-2019-Summer-model-answer-paper.pdf
22316-2019-Summer-model-answer-paper.pdf22316-2019-Summer-model-answer-paper.pdf
22316-2019-Summer-model-answer-paper.pdf
 
Presentation 4th
Presentation 4thPresentation 4th
Presentation 4th
 

More from dezyneecole

Gracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second YearGracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second Year
dezyneecole
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
dezyneecole
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
dezyneecole
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
dezyneecole
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
dezyneecole
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
dezyneecole
 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Year
dezyneecole
 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Year
dezyneecole
 
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
dezyneecole
 
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
dezyneecole
 
Gitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 YearGitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 Year
dezyneecole
 
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
dezyneecole
 
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
dezyneecole
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
dezyneecole
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
dezyneecole
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
dezyneecole
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
dezyneecole
 
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
dezyneecole
 
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
dezyneecole
 
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
dezyneecole
 

More from dezyneecole (20)

Gracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second YearGracika Benjamin , Diploma Fashion Design Second Year
Gracika Benjamin , Diploma Fashion Design Second Year
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
 
Harsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second YearHarsha Chhaparwal, Diploma Fashion Design Second Year
Harsha Chhaparwal, Diploma Fashion Design Second Year
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second YearSheikh Anjum Firdoush , Diploma Fashion Design Second Year
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year
 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Year
 
Sushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second YearSushmita Bhati, Diploma Fashion Design Second Year
Sushmita Bhati, Diploma Fashion Design Second Year
 
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
Sushmita Bhati, Diploma Fashion Design Second Year, (How to Design for Fashio...
 
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
Somya Jain, Diploma Fashion Design Second Year, (How to Design for Fashion In...
 
Gitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 YearGitesh Chhatwani , BCA -3 Year
Gitesh Chhatwani , BCA -3 Year
 
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
Anurag Yadav , B.Voc Interior Design 1st Year ( Residential Portfolio)
 
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
Namita Bakoliya, Diploma Fashion Design First Year, (Corel Draw Project)
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Pattern Engineer...
 
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
Sheikh Anjum Firdoush , Diploma Fashion Design Second Year, (Draping Project)
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
Gouri Ramchandani, Diploma Fashion Design First Year, (Embroidery Project)
 
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
Gouri Ramchandani, Diploma Fashion Design First Year, (Corel DrawProject)
 
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
Dimple Mordani, Diploma Fashion Design First Year, (illustration for Fashion ...
 
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
Dimple Mordani, Diploma Fashion Design First Year, (Design Basics Project)
 
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
Dimple Mordani, Diploma Fashion Design First Year, (Corel Draw Project)
 

Recently uploaded

June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 

Recently uploaded (20)

June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 

Gaurav Singh Chouhan, BCA 2nd Year

  • 1. 0 | P a g e 11/26/2016 PROJECT REPORT JAVA PROGRAMING TOPIC WRAPPER CLASS AND METHOD OF NENNESTING SUBMITTED BY Gaurav Singh Chouhan BCA- II year Dezyne E’cole College INFORMATION TECHNOLOGY www.dezyneecole.com
  • 2. 1 | P a g e Project Report On JVA PROGRAM At Dezyne E’cole College Ajmer Submitted to Dezyne E’cole College To words the Practical Fulfillment on BACHLAR OF COMPUTER APPLICATION By Gaurav singh chouhan Dezyne E’cole Collage 106/10 civil lines, Ajmer www.dezyneecole.com Year 2016-2017
  • 3. 2 | P a g e ACKNOWLEDGMENT I Gaurav singh chouhan, student of Dezyne E’ Cole College, on? Extremely Grateful to each and every individual who has contributed in Successful completion of my Project. I Express my Gratitude top word Dezyne E’cole college for their. Guidance and Constant Super vision as well as for providing the necessary information and Support Regarding the Completion of project. Thank you.
  • 4. 3 | P a g e SYNOPSIS This project is a minor, project made based on the theoretical concepts of Java. This project has made our basic concepts on Java Strong
  • 5. 4 | P a g e Wrapper classes:- As pointed out earlier, vectors cannot handle primitive data types like int, float char, and double. Primitive data type may be converted into object type by using the wrapper classes contained in the java.lang Package. Following table shows the simple data types and their corresponding wrapper class types. Wrapper Classes For Converting Types:- Simple Type Wrapper Class Boolean Boolean Char Character Double Double Float Float Int Integer Long Long The wappera classes have a number of unique methods for handling primitive data type and object. They are listed in the following tables. Converting Primitive Number to Object Number Using Constructor Method:- Constructor Calling Conversion Action Integer IntVal=new Integer(i); Primitive integer to Integer Object Float FloatVal=new Float(f); Primitive float to Float Object Double Doubleva=new Double(d); Primitive double to Double Object Long LongVal=new Long(l); Primitive long to Long Object Converting Object Number to Primitive Number Using type Value() Method:- Method Calling Conversion Action Int i=IntVal.intValue(); Object to Primitive integer float f=FloatVal.floatValue(); Object to Primitive float Long l=Longval.longValue(); Object to Primitive long Double d=DoubleVal.doubleValue(); Object to Primitive double
  • 6. 5 | P a g e Converting Number to String Using to String()Method:- Method Calling Conversion Action str=Integer.toString(i); Primitive integer to string str=Float.toFloat(f); Primitive float to string str=Double.toDouble(d); Primitive double to string str=Long.toLong(l); Primitive long to string Converting String objects to Number Object Using the Static Method valueOf() Method Calling Converion Action DoubleVal = Double.valueOf(str); Converts string to Double object FloatVal = Float.valueOf(str); Converts string to Float object IntVal = Integer.valueOf(str); Converts string to Integer object LongVal = Long.valueOf(str); Converts string to Long object Converting Numeric String to Primitive Number Using Parsing Methods Method Calling Conversion Action Int I =Integer.ParseInt(str); Converts string to primitive integer float f =Integer.ParseFloat(str); Converts string to primitive float long l =Integer.ParseLong(str); Converts string to primitive long double d =Integer.ParseDouble(str); Converts string to primitive double
  • 7. 6 | P a g e Converting Primitive Number to object Numbers Output :-
  • 8. 7 | P a g e Converting Object Number to Primitive Number :- Output:-
  • 9. 8 | P a g e Converting Number to String Output :-
  • 10. 9 | P a g e Converting String Object to Numeric Object Output :-
  • 11. 10 | P a g e Converting Numeric String to Primitive Number Output :-
  • 12. 11 | P a g e Auto Boxing and Unboxing:- The auto boxing and Unboxing feature, introduced in J2SE 5.0, facilities the process of handling primitive data type in collection we can use the feature to convert primitive data type to wrapper class type automatically. The compiler generates a cade implicitly to convert primitive type to the corresponding wrapper class type and vise-versa. For Example, Consider the Following Statements: Doubled=98; Double dbl=d.doubleValue(); Using the auto boxing and unboxing feature, we can rewrite the above code as:- Double d=98.42; Double dbl=d; How, the java compiler provide restrictions to perform the following conversions:-  Convert from null type to any primitive type.  Convert to the null type other than the identify conversion.  Convert from any class type C to any array type id C is not object.
  • 13. 12 | P a g e Vector without using auto Boxing and Unboxing:- Output :-
  • 14. 13 | P a g e Vector with using auto Boxing and Unboxing :- Output :-
  • 15. 14 | P a g e Nesting of Methods :- We discussed earlier that a method of a class can be called only by an object of that class (or class itself, in the case of static methods) using the dot operator. However, there is an exception to this. A methods can be called by using only its name by another method of the same class. This is known as nesting of methods. Program illustrates the nesting of methods inside a class. The class nesting defines one constructor and two methods, namely largest() and display() calls the method largest() to determine the largest of the two numbers and then displays the result.
  • 16. 15 | P a g e Nesting of methods Output :-
  • 17. 16 | P a g e Nesting Methods Output :- A method can call any number of methods. It is also possible a called method to call another Method. That is, method1 may call method2, which in turn may call method3.