SlideShare a Scribd company logo
1 of 18
Download to read offline
1
INFORMATION TECHNOLOGY
PROJECT REPORT
JAVA PROGRAMMING
TOPIC
Wrapper class and Nesting
Method
Submitted by- Karishma Dhanwani
BCA-Bechlor of Computer Application || year
Dezyne E’cole College, www.dezynee’cole.com
2
Project Report
On
Java Program
At
Dezyne E’cole College
Ajmer
Submitted To
Dezyne E’cole College
Towards The
Partial Fullfillment on
BCA
Bachlores Of Computer Application
By
Karishma Dhanwani
Dezyne E’cole College
106/10 Civil Lines, Ajmer
Tel-0145-2624679
www.dezyne e’cole.com
2016-2017
3
ACKNOWLEDGEMENT
I Karishma Dhanwani, Student Of Dezyne E’cole College, An Extremelly
Grantefull To Each And Every Individual Who Has Contiributed In Successful
Comletion Of My Project. I Express My Gratitude Towards Dezyne E’cole
College For Their Guidance And Constant Supervision As Well As For Providing
The Necessary Information And Support Regarding The Completion Of Project.
Thank You.
4
Synopsis
This Project is a Minar Project Made, Based On The Theoretical Concepts of
Java This Project Has Made our Basic Cocepts On Java Strong.
5
Wrapper class :
As pointed out earlier, vectors cannot handle primitive data types like int, float, char and double.
Primitive data type may be converted into object types by using the wrapper classes contained in the
java.lang packages. Following table shows the simple data types and their corresponding wrapper class
types.
Simlpe Type Wrapper class
Boolean Boolean
Char Character
Double Double
Float Float
Int Integer
Long Long
The wrapper classes have a number of unique methods for handeling primitive data type and object.
They are listed in the following tables.
Converting Primitive Numbers to Object Number Using Constructor Method
Constructor Calling Converting action
Integer IntVal=new Integer(i); Primitive integer to Integer Object
Float FloatVal=new Float(f); Primitive float to Float Object
Double DoubleVal=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=Long.longValue(); Object to Primitive long
Double d=DoubleVal.doubleValue(); Object to Primitive Double
6
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 Object to Number Using the Static Method value of()
Method Calling Conversion Action
DoubleVal = Double.ValueOf(str); Converting string to Double object
FloatVal = Float.ValueOf(str); Converting string to float object
Integer = Integer.ValueOf(str); Converting string to Integer object
LongVal = Long.ValueOf(str); Converting string to Long object
Converting Numeric String to Primitive Number Using Parseing Method
Method Calling Conversion Action
Int l = Integer.ParseInt(str); Converting string to primitive integer
float f = Float.ParseFloat(str); Converting string to primitive float
long l = Long.ParseLong(str); Converting string to primitive Long
double d = Double.ParseDouble(str); Converting string to primitive double
7
Converting Primitive Numbers to Object Numbers
Output:-
8
Converting Object Numbers to Primitive Numbers
Output:-
9
Converting Numbers to String
Output:-
10
Converting String Object to Numeric Object
Output:-
11
Converting Numeric String to Primitive Numbers
Output:-
12
Auto Boxing and Unboxing
The auto boxing and unboxing feature, introduced in J2SE 5.0, Facilitates the process of handeling
primitive data type in collectings. We can use this feature to convert primitive data types to wrapper
class types automatically.
The compiler generates a code implicitly to convert primitive type to the corresponding
wrapper class type and vice-versa. For example consider the following statement:-
Double d = 98.42;
Double dbl = a.double value();
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 provides restrictions to perform the following conversion:
 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
Vector without using Autoboxing and Unboxing
Output:-
14
Vector with Autoboxing and Unboxing
Output:-
15
Nesting of Methods:-
We dicussed 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 method
can be called by using only its name by another method of the same class. This is known a Nesting of
Methods.
Prongram illustrates the nesting of methods inside a class.
The class nesting defines one constructor and two methods, namely largest() and display(). The method
display() calls the method largest() to determine the largest of the two numbers and then displays the
result
16
Nesting of Methods
Output:-
17
Another program of Nesting
Output:-
A method can call any number of methods. It is also possible for a called method to call also possible for
a called method to call another method. That is, method1 may call method2, which in turn may call
methods.
18
Thank you…

More Related Content

What's hot

Ram Prasad ,BCA 2nd Year
Ram Prasad ,BCA 2nd YearRam Prasad ,BCA 2nd Year
Ram Prasad ,BCA 2nd Yeardezyneecole
 
Sudarshan Joshi,BCA 2nd Year
Sudarshan Joshi,BCA 2nd Year Sudarshan Joshi,BCA 2nd Year
Sudarshan Joshi,BCA 2nd Year dezyneecole
 
Ravi Sharma,BCA 2nd Year
Ravi Sharma,BCA 2nd YearRavi Sharma,BCA 2nd Year
Ravi Sharma,BCA 2nd Yeardezyneecole
 
Kajal Gaharwal,BCA 2nd Year
Kajal Gaharwal,BCA 2nd YearKajal Gaharwal,BCA 2nd Year
Kajal Gaharwal,BCA 2nd Yeardezyneecole
 
Kaushal Soni,BCA,2nd Year
Kaushal Soni,BCA,2nd YearKaushal Soni,BCA,2nd Year
Kaushal Soni,BCA,2nd Yeardezyneecole
 
Farhaan Ahmed, BCA 2nd Year
Farhaan Ahmed, BCA 2nd YearFarhaan Ahmed, BCA 2nd Year
Farhaan Ahmed, BCA 2nd Yeardezyneecole
 
Yashika Soni, BCA 2nd Year
Yashika Soni, BCA 2nd YearYashika Soni, BCA 2nd Year
Yashika Soni, BCA 2nd Yeardezyneecole
 
Pooja Sharma ,BCA 2nd Year
Pooja Sharma ,BCA 2nd YearPooja Sharma ,BCA 2nd Year
Pooja Sharma ,BCA 2nd Yeardezyneecole
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearDezyneecole
 
Rakesh Bijawat, BCA 2nd Year
Rakesh Bijawat, BCA 2nd YearRakesh Bijawat, BCA 2nd Year
Rakesh Bijawat, BCA 2nd Yeardezyneecole
 
Aanchal Gupta,BCA 2nd year
Aanchal Gupta,BCA 2nd yearAanchal Gupta,BCA 2nd year
Aanchal Gupta,BCA 2nd yeardezyneecole
 
Daksh Sharma ,BCA 2nd Year
Daksh  Sharma ,BCA 2nd YearDaksh  Sharma ,BCA 2nd Year
Daksh Sharma ,BCA 2nd Yeardezyneecole
 
Nikita Totlani ,BCA 2nd year
Nikita Totlani ,BCA 2nd year Nikita Totlani ,BCA 2nd year
Nikita Totlani ,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
 
Harendra Singh Rawat,BCA 2nd Year
Harendra Singh Rawat,BCA 2nd YearHarendra Singh Rawat,BCA 2nd Year
Harendra Singh Rawat,BCA 2nd Yeardezyneecole
 
Shivani Chouhan ,BCA ,2nd Year
Shivani Chouhan ,BCA ,2nd YearShivani Chouhan ,BCA ,2nd Year
Shivani Chouhan ,BCA ,2nd Yeardezyneecole
 
Varun Kaushik, BCA 2nd Year
Varun Kaushik, BCA 2nd YearVarun Kaushik, BCA 2nd Year
Varun Kaushik, BCA 2nd Yeardezyneecole
 
Gaurav Singh Chouhan, BCA 2nd Year
Gaurav Singh Chouhan, BCA 2nd YearGaurav Singh Chouhan, BCA 2nd Year
Gaurav Singh Chouhan, BCA 2nd Yeardezyneecole
 
Rahul Saini, BCA 2nd Year
Rahul Saini, BCA 2nd YearRahul Saini, BCA 2nd Year
Rahul Saini, BCA 2nd Yeardezyneecole
 
Brijesh Peswani,BCA 2nd Year
Brijesh Peswani,BCA 2nd YearBrijesh Peswani,BCA 2nd Year
Brijesh Peswani,BCA 2nd Yeardezyneecole
 

What's hot (20)

Ram Prasad ,BCA 2nd Year
Ram Prasad ,BCA 2nd YearRam Prasad ,BCA 2nd Year
Ram Prasad ,BCA 2nd Year
 
Sudarshan Joshi,BCA 2nd Year
Sudarshan Joshi,BCA 2nd Year Sudarshan Joshi,BCA 2nd Year
Sudarshan Joshi,BCA 2nd Year
 
Ravi Sharma,BCA 2nd Year
Ravi Sharma,BCA 2nd YearRavi Sharma,BCA 2nd Year
Ravi Sharma,BCA 2nd Year
 
Kajal Gaharwal,BCA 2nd Year
Kajal Gaharwal,BCA 2nd YearKajal Gaharwal,BCA 2nd Year
Kajal Gaharwal,BCA 2nd Year
 
Kaushal Soni,BCA,2nd Year
Kaushal Soni,BCA,2nd YearKaushal Soni,BCA,2nd Year
Kaushal Soni,BCA,2nd Year
 
Farhaan Ahmed, BCA 2nd Year
Farhaan Ahmed, BCA 2nd YearFarhaan Ahmed, BCA 2nd Year
Farhaan Ahmed, BCA 2nd Year
 
Yashika Soni, BCA 2nd Year
Yashika Soni, BCA 2nd YearYashika Soni, BCA 2nd Year
Yashika Soni, BCA 2nd Year
 
Pooja Sharma ,BCA 2nd Year
Pooja Sharma ,BCA 2nd YearPooja Sharma ,BCA 2nd Year
Pooja Sharma ,BCA 2nd Year
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
 
Rakesh Bijawat, BCA 2nd Year
Rakesh Bijawat, BCA 2nd YearRakesh Bijawat, BCA 2nd Year
Rakesh Bijawat, BCA 2nd Year
 
Aanchal Gupta,BCA 2nd year
Aanchal Gupta,BCA 2nd yearAanchal Gupta,BCA 2nd year
Aanchal Gupta,BCA 2nd year
 
Daksh Sharma ,BCA 2nd Year
Daksh  Sharma ,BCA 2nd YearDaksh  Sharma ,BCA 2nd Year
Daksh Sharma ,BCA 2nd Year
 
Nikita Totlani ,BCA 2nd year
Nikita Totlani ,BCA 2nd year Nikita Totlani ,BCA 2nd year
Nikita Totlani ,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
 
Harendra Singh Rawat,BCA 2nd Year
Harendra Singh Rawat,BCA 2nd YearHarendra Singh Rawat,BCA 2nd Year
Harendra Singh Rawat,BCA 2nd Year
 
Shivani Chouhan ,BCA ,2nd Year
Shivani Chouhan ,BCA ,2nd YearShivani Chouhan ,BCA ,2nd Year
Shivani Chouhan ,BCA ,2nd Year
 
Varun Kaushik, BCA 2nd Year
Varun Kaushik, BCA 2nd YearVarun Kaushik, BCA 2nd Year
Varun Kaushik, BCA 2nd Year
 
Gaurav Singh Chouhan, BCA 2nd Year
Gaurav Singh Chouhan, BCA 2nd YearGaurav Singh Chouhan, BCA 2nd Year
Gaurav Singh Chouhan, BCA 2nd Year
 
Rahul Saini, BCA 2nd Year
Rahul Saini, BCA 2nd YearRahul Saini, BCA 2nd Year
Rahul Saini, BCA 2nd Year
 
Brijesh Peswani,BCA 2nd Year
Brijesh Peswani,BCA 2nd YearBrijesh Peswani,BCA 2nd Year
Brijesh Peswani,BCA 2nd Year
 

Viewers also liked

Fashion Design Portfolio By Tanu Chorasiya, B.Sc. Fashion Design
Fashion Design Portfolio By Tanu Chorasiya, B.Sc. Fashion Design Fashion Design Portfolio By Tanu Chorasiya, B.Sc. Fashion Design
Fashion Design Portfolio By Tanu Chorasiya, B.Sc. Fashion Design 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 Tiesdezyneecole
 
Research 2 page spread
Research 2 page spreadResearch 2 page spread
Research 2 page spreadToddcg12
 
Topic.13 The Burbs, Life In The 1950s
Topic.13 The Burbs, Life In The 1950sTopic.13 The Burbs, Life In The 1950s
Topic.13 The Burbs, Life In The 1950smr.meechin
 
Tiffany silver jewelry -fashion show
Tiffany silver jewelry -fashion showTiffany silver jewelry -fashion show
Tiffany silver jewelry -fashion showanitonita dj
 
Presentation for media
Presentation for mediaPresentation for media
Presentation for mediaToddcg12
 
Modern Fairytale Chic
Modern Fairytale ChicModern Fairytale Chic
Modern Fairytale ChicAmy Chen
 
fashion mood board.
fashion mood board.fashion mood board.
fashion mood board.georgiamoore
 
Media photo review 1
Media photo review 1Media photo review 1
Media photo review 1Toddcg12
 
school magazine edited version
school magazine edited versionschool magazine edited version
school magazine edited versionToddcg12
 
America in the 1980s
America in the 1980sAmerica in the 1980s
America in the 1980sNaamah Hill
 
The Age of Disruption, clustering the global trends——Sarie
The Age of Disruption, clustering the global trends——SarieThe Age of Disruption, clustering the global trends——Sarie
The Age of Disruption, clustering the global trends——SarieSimba Events
 
The Progression of Blue - SS15-SS17
The Progression of Blue - SS15-SS17The Progression of Blue - SS15-SS17
The Progression of Blue - SS15-SS17Amy Chen
 
Bringing ideas to life. About the importance of supporting young people, solv...
Bringing ideas to life. About the importance of supporting young people, solv...Bringing ideas to life. About the importance of supporting young people, solv...
Bringing ideas to life. About the importance of supporting young people, solv...Simba Events
 
Observaciones previas al segundo parcial Medios 2
Observaciones previas al segundo parcial Medios 2Observaciones previas al segundo parcial Medios 2
Observaciones previas al segundo parcial Medios 2Eduardo Sganga
 

Viewers also liked (20)

Fashion Design Portfolio By Tanu Chorasiya, B.Sc. Fashion Design
Fashion Design Portfolio By Tanu Chorasiya, B.Sc. Fashion Design Fashion Design Portfolio By Tanu Chorasiya, B.Sc. Fashion Design
Fashion Design Portfolio By Tanu Chorasiya, B.Sc. Fashion Design
 
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
 
Research 2 page spread
Research 2 page spreadResearch 2 page spread
Research 2 page spread
 
Topic.13 The Burbs, Life In The 1950s
Topic.13 The Burbs, Life In The 1950sTopic.13 The Burbs, Life In The 1950s
Topic.13 The Burbs, Life In The 1950s
 
Tiffany silver jewelry -fashion show
Tiffany silver jewelry -fashion showTiffany silver jewelry -fashion show
Tiffany silver jewelry -fashion show
 
Mood board 1985-2045
Mood board 1985-2045Mood board 1985-2045
Mood board 1985-2045
 
Presentation for media
Presentation for mediaPresentation for media
Presentation for media
 
Mood board
Mood boardMood board
Mood board
 
Modern Fairytale Chic
Modern Fairytale ChicModern Fairytale Chic
Modern Fairytale Chic
 
Talking head package
Talking head package Talking head package
Talking head package
 
MB0755115
MB0755115MB0755115
MB0755115
 
fashion mood board.
fashion mood board.fashion mood board.
fashion mood board.
 
Media photo review 1
Media photo review 1Media photo review 1
Media photo review 1
 
school magazine edited version
school magazine edited versionschool magazine edited version
school magazine edited version
 
America in the 1980s
America in the 1980sAmerica in the 1980s
America in the 1980s
 
The Age of Disruption, clustering the global trends——Sarie
The Age of Disruption, clustering the global trends——SarieThe Age of Disruption, clustering the global trends——Sarie
The Age of Disruption, clustering the global trends——Sarie
 
Untitled
UntitledUntitled
Untitled
 
The Progression of Blue - SS15-SS17
The Progression of Blue - SS15-SS17The Progression of Blue - SS15-SS17
The Progression of Blue - SS15-SS17
 
Bringing ideas to life. About the importance of supporting young people, solv...
Bringing ideas to life. About the importance of supporting young people, solv...Bringing ideas to life. About the importance of supporting young people, solv...
Bringing ideas to life. About the importance of supporting young people, solv...
 
Observaciones previas al segundo parcial Medios 2
Observaciones previas al segundo parcial Medios 2Observaciones previas al segundo parcial Medios 2
Observaciones previas al segundo parcial Medios 2
 

Similar to Java Programming Project on Wrapper Class and Nesting Methods

BCA 2nd year Java prog. File
BCA 2nd year Java prog. FileBCA 2nd year Java prog. File
BCA 2nd year Java prog. FileRahul Saini
 
Deepak Soni,BCA 2nd Year
Deepak Soni,BCA 2nd YearDeepak Soni,BCA 2nd Year
Deepak Soni,BCA 2nd Yeardezyneecole
 
Pooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearPooja Sharma , BCA Third Year
Pooja Sharma , BCA Third YearDezyneecole
 
Samarth Gaur ,BCA 2nd Year
Samarth Gaur ,BCA 2nd YearSamarth Gaur ,BCA 2nd Year
Samarth Gaur ,BCA 2nd Yeardezyneecole
 
Akshay Sharma,BCA,2nd year
Akshay Sharma,BCA,2nd yearAkshay Sharma,BCA,2nd year
Akshay Sharma,BCA,2nd yeardezyneecole
 
Ravi Prakash,BCA,2nd Year
Ravi Prakash,BCA,2nd YearRavi Prakash,BCA,2nd Year
Ravi Prakash,BCA,2nd Yeardezyneecole
 
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.pdfPradipShinde53
 

Similar to Java Programming Project on Wrapper Class and Nesting Methods (10)

Wrapper classes
Wrapper classesWrapper classes
Wrapper classes
 
BCA 2nd year Java prog. File
BCA 2nd year Java prog. FileBCA 2nd year Java prog. File
BCA 2nd year Java prog. File
 
Deepak Soni,BCA 2nd Year
Deepak Soni,BCA 2nd YearDeepak Soni,BCA 2nd Year
Deepak Soni,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
 
Samarth Gaur ,BCA 2nd Year
Samarth Gaur ,BCA 2nd YearSamarth Gaur ,BCA 2nd Year
Samarth Gaur ,BCA 2nd Year
 
Akshay Sharma,BCA,2nd year
Akshay Sharma,BCA,2nd yearAkshay Sharma,BCA,2nd year
Akshay Sharma,BCA,2nd year
 
Ravi Prakash,BCA,2nd Year
Ravi Prakash,BCA,2nd YearRavi Prakash,BCA,2nd Year
Ravi Prakash,BCA,2nd Year
 
Bc0037
Bc0037Bc0037
Bc0037
 
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
 

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 Yeardezyneecole
 
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 Yeardezyneecole
 
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 Yeardezyneecole
 
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 Yeardezyneecole
 
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 Yeardezyneecole
 
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 Yeardezyneecole
 
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 Yeardezyneecole
 
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 Yeardezyneecole
 
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 Yeardezyneecole
 
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

Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 

Recently uploaded (20)

Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 

Java Programming Project on Wrapper Class and Nesting Methods

  • 1. 1 INFORMATION TECHNOLOGY PROJECT REPORT JAVA PROGRAMMING TOPIC Wrapper class and Nesting Method Submitted by- Karishma Dhanwani BCA-Bechlor of Computer Application || year Dezyne E’cole College, www.dezynee’cole.com
  • 2. 2 Project Report On Java Program At Dezyne E’cole College Ajmer Submitted To Dezyne E’cole College Towards The Partial Fullfillment on BCA Bachlores Of Computer Application By Karishma Dhanwani Dezyne E’cole College 106/10 Civil Lines, Ajmer Tel-0145-2624679 www.dezyne e’cole.com 2016-2017
  • 3. 3 ACKNOWLEDGEMENT I Karishma Dhanwani, Student Of Dezyne E’cole College, An Extremelly Grantefull To Each And Every Individual Who Has Contiributed In Successful Comletion Of My Project. I Express My Gratitude Towards Dezyne E’cole College For Their Guidance And Constant Supervision As Well As For Providing The Necessary Information And Support Regarding The Completion Of Project. Thank You.
  • 4. 4 Synopsis This Project is a Minar Project Made, Based On The Theoretical Concepts of Java This Project Has Made our Basic Cocepts On Java Strong.
  • 5. 5 Wrapper class : As pointed out earlier, vectors cannot handle primitive data types like int, float, char and double. Primitive data type may be converted into object types by using the wrapper classes contained in the java.lang packages. Following table shows the simple data types and their corresponding wrapper class types. Simlpe Type Wrapper class Boolean Boolean Char Character Double Double Float Float Int Integer Long Long The wrapper classes have a number of unique methods for handeling primitive data type and object. They are listed in the following tables. Converting Primitive Numbers to Object Number Using Constructor Method Constructor Calling Converting action Integer IntVal=new Integer(i); Primitive integer to Integer Object Float FloatVal=new Float(f); Primitive float to Float Object Double DoubleVal=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=Long.longValue(); Object to Primitive long Double d=DoubleVal.doubleValue(); Object to Primitive Double
  • 6. 6 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 Object to Number Using the Static Method value of() Method Calling Conversion Action DoubleVal = Double.ValueOf(str); Converting string to Double object FloatVal = Float.ValueOf(str); Converting string to float object Integer = Integer.ValueOf(str); Converting string to Integer object LongVal = Long.ValueOf(str); Converting string to Long object Converting Numeric String to Primitive Number Using Parseing Method Method Calling Conversion Action Int l = Integer.ParseInt(str); Converting string to primitive integer float f = Float.ParseFloat(str); Converting string to primitive float long l = Long.ParseLong(str); Converting string to primitive Long double d = Double.ParseDouble(str); Converting string to primitive double
  • 7. 7 Converting Primitive Numbers to Object Numbers Output:-
  • 8. 8 Converting Object Numbers to Primitive Numbers Output:-
  • 9. 9 Converting Numbers to String Output:-
  • 10. 10 Converting String Object to Numeric Object Output:-
  • 11. 11 Converting Numeric String to Primitive Numbers Output:-
  • 12. 12 Auto Boxing and Unboxing The auto boxing and unboxing feature, introduced in J2SE 5.0, Facilitates the process of handeling primitive data type in collectings. We can use this feature to convert primitive data types to wrapper class types automatically. The compiler generates a code implicitly to convert primitive type to the corresponding wrapper class type and vice-versa. For example consider the following statement:- Double d = 98.42; Double dbl = a.double value(); 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 provides restrictions to perform the following conversion:  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. 13 Vector without using Autoboxing and Unboxing Output:-
  • 14. 14 Vector with Autoboxing and Unboxing Output:-
  • 15. 15 Nesting of Methods:- We dicussed 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 method can be called by using only its name by another method of the same class. This is known a Nesting of Methods. Prongram illustrates the nesting of methods inside a class. The class nesting defines one constructor and two methods, namely largest() and display(). The method display() calls the method largest() to determine the largest of the two numbers and then displays the result
  • 17. 17 Another program of Nesting Output:- A method can call any number of methods. It is also possible for a called method to call also possible for a called method to call another method. That is, method1 may call method2, which in turn may call methods.