Submit Search
Upload
summer training report on java
•
2 likes
•
232 views
S
Shiva Bhatt
Follow
Easy to understanding for learning students.....
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 30
Download now
Download to read offline
Recommended
gopal hp
gopal hp
Apeejay Stya University
Core Java Training report
Core Java Training report
Sumit Kumar Sharma
Report summer training core java
Report summer training core java
SudhanshuVijay3
6 Weeks Project Based Summer Training
6 Weeks Project Based Summer Training
Tech Mentro
6 Weeks Summer Training on Java By SSDN Technologies
6 Weeks Summer Training on Java By SSDN Technologies
David Son
JAVA CORE
JAVA CORE
Ankit Chauhan
Advance java summer training report
Advance java summer training report
Nitesh Saini
Java Programming Basics
Java Programming Basics
Rkrishna Mishra
Recommended
gopal hp
gopal hp
Apeejay Stya University
Core Java Training report
Core Java Training report
Sumit Kumar Sharma
Report summer training core java
Report summer training core java
SudhanshuVijay3
6 Weeks Project Based Summer Training
6 Weeks Project Based Summer Training
Tech Mentro
6 Weeks Summer Training on Java By SSDN Technologies
6 Weeks Summer Training on Java By SSDN Technologies
David Son
JAVA CORE
JAVA CORE
Ankit Chauhan
Advance java summer training report
Advance java summer training report
Nitesh Saini
Java Programming Basics
Java Programming Basics
Rkrishna Mishra
Report in Java programming and SQL
Report in Java programming and SQL
vikram mahendra
Training report anish
Training report anish
Anish Yadav
Core java report
Core java report
Sumit Jain
Summer internship report
Summer internship report
Ipsit Pradhan
Industrial Training report on java
Industrial Training report on java
Softvision Info Solutions Private Limited
Summer training report on java se6 technology
Summer training report on java se6 technology
Shamsher Ahmed
Best Industrial training report
Best Industrial training report
Shivam Saxena
Industrial training presentation
Industrial training presentation
RS Technova Pvt. Ltd.
Industrial training report on core java
Industrial training report on core java
Nitesh Dubey
Java report by ravi raja
Java report by ravi raja
RaviRaja55
Summer Training report at TATA CMC
Summer Training report at TATA CMC
Pallavi Srivastava
Introduction to java
Introduction to java
shwanjava
Industrial training report
Industrial training report
Anurag Gautam
Vikeshp
Vikeshp
MdAsu1
Neel training report
Neel training report
Neel Chandra
IRJET- Online Compiler for Computer Languages with Security Editor
IRJET- Online Compiler for Computer Languages with Security Editor
IRJET Journal
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
Pratima Parida
Java Presentation
Java Presentation
aitrichtech
industrial_report_final
industrial_report_final
Dhruv Bhasin
VIRTUAL LAB
VIRTUAL LAB
SAFAD ISMAIL
BS Electrical-Computer- COMSATS Kamil Karachi
BS Electrical-Computer- COMSATS Kamil Karachi
Kamil Hassan
A Real-Time Emotion Recognition from Facial Expression Using Conventional Neu...
A Real-Time Emotion Recognition from Facial Expression Using Conventional Neu...
IRJET Journal
More Related Content
What's hot
Report in Java programming and SQL
Report in Java programming and SQL
vikram mahendra
Training report anish
Training report anish
Anish Yadav
Core java report
Core java report
Sumit Jain
Summer internship report
Summer internship report
Ipsit Pradhan
Industrial Training report on java
Industrial Training report on java
Softvision Info Solutions Private Limited
Summer training report on java se6 technology
Summer training report on java se6 technology
Shamsher Ahmed
Best Industrial training report
Best Industrial training report
Shivam Saxena
Industrial training presentation
Industrial training presentation
RS Technova Pvt. Ltd.
Industrial training report on core java
Industrial training report on core java
Nitesh Dubey
Java report by ravi raja
Java report by ravi raja
RaviRaja55
Summer Training report at TATA CMC
Summer Training report at TATA CMC
Pallavi Srivastava
Introduction to java
Introduction to java
shwanjava
Industrial training report
Industrial training report
Anurag Gautam
Vikeshp
Vikeshp
MdAsu1
Neel training report
Neel training report
Neel Chandra
IRJET- Online Compiler for Computer Languages with Security Editor
IRJET- Online Compiler for Computer Languages with Security Editor
IRJET Journal
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
Pratima Parida
Java Presentation
Java Presentation
aitrichtech
industrial_report_final
industrial_report_final
Dhruv Bhasin
VIRTUAL LAB
VIRTUAL LAB
SAFAD ISMAIL
What's hot
(20)
Report in Java programming and SQL
Report in Java programming and SQL
Training report anish
Training report anish
Core java report
Core java report
Summer internship report
Summer internship report
Industrial Training report on java
Industrial Training report on java
Summer training report on java se6 technology
Summer training report on java se6 technology
Best Industrial training report
Best Industrial training report
Industrial training presentation
Industrial training presentation
Industrial training report on core java
Industrial training report on core java
Java report by ravi raja
Java report by ravi raja
Summer Training report at TATA CMC
Summer Training report at TATA CMC
Introduction to java
Introduction to java
Industrial training report
Industrial training report
Vikeshp
Vikeshp
Neel training report
Neel training report
IRJET- Online Compiler for Computer Languages with Security Editor
IRJET- Online Compiler for Computer Languages with Security Editor
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
Java Presentation
Java Presentation
industrial_report_final
industrial_report_final
VIRTUAL LAB
VIRTUAL LAB
Similar to summer training report on java
BS Electrical-Computer- COMSATS Kamil Karachi
BS Electrical-Computer- COMSATS Kamil Karachi
Kamil Hassan
A Real-Time Emotion Recognition from Facial Expression Using Conventional Neu...
A Real-Time Emotion Recognition from Facial Expression Using Conventional Neu...
IRJET Journal
FLOOD FORECASTING USING MACHINE LEARNING ALGORITHM
FLOOD FORECASTING USING MACHINE LEARNING ALGORITHM
IRJET Journal
Use of Rapid Prototyping Technology in Mechanical Industry
Use of Rapid Prototyping Technology in Mechanical Industry
IRJET Journal
Voice over LTE report
Voice over LTE report
Anirudh Yadav
Thesis_Report
Thesis_Report
Jérémy Pouech
Resume Mehul Jain
Resume Mehul Jain
MehulJain124
IRJET - Model Driven Methodology for JAVA
IRJET - Model Driven Methodology for JAVA
IRJET Journal
IRJET- Implementation of Garbage Collection Java Application on Sun Java ...
IRJET- Implementation of Garbage Collection Java Application on Sun Java ...
IRJET Journal
Parth-Resume_1-2[1]
Parth-Resume_1-2[1]
Parth Rao
Free Writing - Grammatical Error Correction System: Sequence Tagging
Free Writing - Grammatical Error Correction System: Sequence Tagging
IRJET Journal
IRJET- Lost: The Horror Game
IRJET- Lost: The Horror Game
IRJET Journal
Muhammad JEHANGIR KHAN_updated_NEW_cv _l
Muhammad JEHANGIR KHAN_updated_NEW_cv _l
Muhammad Jehangir Khan
resume_ravi_iitk
resume_ravi_iitk
Ravi Verma
ParthaSaha_CV
ParthaSaha_CV
Partha Saha
Evolutionary Multi-Goal Workflow Progress in Shade
Evolutionary Multi-Goal Workflow Progress in Shade
IRJET Journal
Umasankar 10 years embedded software engineer
Umasankar 10 years embedded software engineer
Umasankar K
129 sample 1_st few pages for final doc
129 sample 1_st few pages for final doc
sshaili
Ije v4 i2International Journal of Engineering (IJE) Volume (3) Issue (4)
Ije v4 i2International Journal of Engineering (IJE) Volume (3) Issue (4)
CSCJournals
Estimation of Base Drag On Supersonic Cruise Missile
Estimation of Base Drag On Supersonic Cruise Missile
IRJET Journal
Similar to summer training report on java
(20)
BS Electrical-Computer- COMSATS Kamil Karachi
BS Electrical-Computer- COMSATS Kamil Karachi
A Real-Time Emotion Recognition from Facial Expression Using Conventional Neu...
A Real-Time Emotion Recognition from Facial Expression Using Conventional Neu...
FLOOD FORECASTING USING MACHINE LEARNING ALGORITHM
FLOOD FORECASTING USING MACHINE LEARNING ALGORITHM
Use of Rapid Prototyping Technology in Mechanical Industry
Use of Rapid Prototyping Technology in Mechanical Industry
Voice over LTE report
Voice over LTE report
Thesis_Report
Thesis_Report
Resume Mehul Jain
Resume Mehul Jain
IRJET - Model Driven Methodology for JAVA
IRJET - Model Driven Methodology for JAVA
IRJET- Implementation of Garbage Collection Java Application on Sun Java ...
IRJET- Implementation of Garbage Collection Java Application on Sun Java ...
Parth-Resume_1-2[1]
Parth-Resume_1-2[1]
Free Writing - Grammatical Error Correction System: Sequence Tagging
Free Writing - Grammatical Error Correction System: Sequence Tagging
IRJET- Lost: The Horror Game
IRJET- Lost: The Horror Game
Muhammad JEHANGIR KHAN_updated_NEW_cv _l
Muhammad JEHANGIR KHAN_updated_NEW_cv _l
resume_ravi_iitk
resume_ravi_iitk
ParthaSaha_CV
ParthaSaha_CV
Evolutionary Multi-Goal Workflow Progress in Shade
Evolutionary Multi-Goal Workflow Progress in Shade
Umasankar 10 years embedded software engineer
Umasankar 10 years embedded software engineer
129 sample 1_st few pages for final doc
129 sample 1_st few pages for final doc
Ije v4 i2International Journal of Engineering (IJE) Volume (3) Issue (4)
Ije v4 i2International Journal of Engineering (IJE) Volume (3) Issue (4)
Estimation of Base Drag On Supersonic Cruise Missile
Estimation of Base Drag On Supersonic Cruise Missile
Recently uploaded
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
GDSCAESB
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Dr.Costas Sachpazis
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
slot gacor bisa pakai pulsa
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
soniya singh
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
ranjana rawat
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
Call Girls in Nagpur High Profile
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur High Profile
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
purnimasatapathy1234
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur High Profile
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
upamatechverse
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
hassan khalil
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
RajaP95
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
upamatechverse
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
upamatechverse
Internship report on mechanical engineering
Internship report on mechanical engineering
malavadedarshan25
Recently uploaded
(20)
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
Internship report on mechanical engineering
Internship report on mechanical engineering
summer training report on java
1.
Page|1 SUMMERTRAININGREPORT ON JAVA Submittedinthepartialfulfillmentforthe awardofdiplomaofengineeringincomputer science&engineering. Govt.polytechnic,kashipur (2017-2018) SUBMITTEDTO SUBMITTEDBY Mrs.AnitaMam ShivaBhatt ComputerScience& Eng.
2.
Page|2 TABLEOFCONTENTS TOPIC Page(s) 1:Introduction 3-6 1.1.IntroductiontoOOPS 1.2
Objects 1.3Class 1.4 Polymorphism 1.5 Encapsulation 1.6Inheritance 1.7 Abstraction 1.8 Newoperator 1.9 Instances 2: Constructor 7-9 2.1DefaultConstructor 2.2ParameterizedConstructor 2.3ConstructorOverloading 3:Statickeyword 10-11 3.1Staticvariable 3.2Staticmethod 3.3Staticblock 4:Polymorphism 12-13 4.1TypesofPolymorphism
3.
Page|3 4.2FunctionOverloading 4.3DataShadowing 5:Inheritance 14-15 5.1FunctionOverriding 5.2Upcasting 5.3Downcasting 6:Abstraction 16-18 6.1Abstractclass 6.2Interfaces 6.3Extendinginterfaces 6.4Extendingmultipleinterfaces 7:StringHandling
18 7.1Rules 7.2MethodsofStringclass 8.ProjectforInstituteManagementusingSwingandpackage 19 1.IntroductiontoOOPs: OOPsstandsforObjectOrientedProgrammingthatprovidesmanyconcepts suchasInheritance,Abstraction,Encapsulation,Polymorphismetc. 1.1Object Anyentitythathasstateandbehaviorisknownasanobject.Forexample:
4.
Page|4 chair,pen,table,keyboard,bikeetc.Itcanbephysicalandlogical. 1.2Class Collectionofobjectsiscalledclass.Itisalogicalentity. 1.3Inheritance Whenoneobjectacquiresallthepropertiesandbehaviorsofparentobjecti.e. knownasinheritance.Itprovidescodereusability.Itisusedtoachieveruntime polymorphism. 1.4Polymorphism Whenonetaskisperformedbydifferentwaysi.e.knownaspolymorphism. Forexample:toconvincethecustomerdifferently,todrawsomethinge.g. shapeorrectangleetc. Injava,weusemethodoverloadingandmethodoverridingtoachieve polymorphism. Anotherexamplecanbetospeaksomethinge.g.catspeaksmeaw,dogbarks woofetc. 1.5Abstraction
5.
Page|5 Hidinginternaldetailsandshowingfunctionalityisknownasabstraction.For example:phonecall,wedon'tknowtheinternalprocessing. Injava,weuseabstractclassandinterfacetoachieveabstraction. 1.6Encapsulation Binding(orwrapping)codeanddatatogetherintoasingleunitisknownas encapsulation.Forexample:capsule,itiswrappedwithdifferentmedicines. Ajavaclassistheexampleofencapsulation.Javabeanisthefully encapsulatedclassbecauseallthedatamembersareprivatehere. 1.7NewOperator Itdynamicallyallocatesbufferinheapwiththereferencewedefinepointed fromthestack. Foreg. Demoobj; Obj=newDemo(); Thisstatementdoestwothings: 1.Itcreatesactual(physical)objectinheapwiththevariable‘obj’instack pointingtheobject. 2.Itcallstheconstructorof‘Demo’classfortheintializationofobject.
6.
Page|6 Injava,onlyobjectsaregettingmemoryatruntime. Newoperatorisonlyusedtoallocateamemoryforobjectonly.
Thememorythathasbeenallocatedatruntimedoesnothaveany name. Injava,pointersarenotdefined.ItusesReferenceIDfortheallocation whichisstoredinsideReferenceVariable. 1.8Instance: Itisactuallythephysicalexistenceofanobject. Foreg.Carisaclassandifweseeanycarinreality,thenitisgeneralthing. 2.ConstructorsInJava: Constructorinjava isa specialtypeofmethod thatisusedtoinitializethe
7.
Page|7 object. Javaconstructoris invokedatthetimeofobjectcreation.Itconstructsthe valuesi.e.providesdatafortheobjectthatiswhyitisknownasconstructor. Rulesforcreatingjavaconstructor Therearebasicallytworulesdefinedfortheconstructor. 1. Constructornamemustbesameasitsclassname 2. Constructormusthavenoexplicitreturntype Typesofjavaconstructors Therearetwotypesofconstructors: 1.
Defaultconstructor(no-arguementconstructor) 2. Parameterizedconstructor 2.1DefaultConstructor: Eg. classBike1{ Bike1(){ System.out.println("Bikeiscreated"); } publicstaticvoidmain(Stringargs[]){
8.
Page|8 Bike1b=newBike1();}} Output: Bikeiscreated Rule:Ifthereisnoconstructorinaclass,compilerautomaticallycreatesa defaultconstructor. 2.2ParameterizedConstructor: A constructorthathaveparametersisknownasparameterizedconstructor. Parameterizedconstructorisusedtoprovidedifferentvaluestothedistinct objects. ConstructorOverloadinginJava ConstructoroverloadingisatechniqueinJavainwhichaclasscanhaveany numberofconstructorsthatdifferinparameterlists.Thecompiler differentiatestheseconstructorsbytakingintoaccountthenumberof parametersinthelistandtheirtypes.
9.
Page|9 3.Javastatickeyword Thestatickeywordinjavaisusedformemorymanagementmainly.Wecan applyjavastatickeywordwithvariables,methods,blocksandnestedclass. Thestatickeywordbelongstotheclassthaninstanceoftheclass. Thestaticcanbe: variable(alsoknownasclassvariable) method(alsoknownasclassmethod) block nestedclass 1)Javastaticvariable Ifyoudeclareanyvariableasstatic,itisknownstaticvariable. Thestaticvariablecanbeusedtoreferthecommonpropertyofallobjects (thatisnotuniqueforeachobject)e.g.companynameofemployees,college nameofstudentsetc. Thestaticvariablegetsmemoryonlyonceinclassareaatthetimeofclass loading. Advantageofstaticvariable Itmakesyourprogrammemoryefficient(i.eitsavesmemory). Understandingproblemwithoutstaticvariable classStudent{ introllno; Stringname; Stringcollege="ITS";
10.
Page|10 } Supposethereare500studentsinmycollege,nowallinstancedatamembers willgetmemoryeachtimewhenobjectiscreated.Allstudenthaveitsunique rollnoandnamesoinstancedatamemberisgood.Here,collegereferstothe commonpropertyofallobjects.Ifwemakeitstatic,thisfieldwillgetmemory onlyonce. Javastaticpropertyissharedtoallobjects. 2)Javastaticmethod Ifweapplystatickeywordwithanymethod,itisknownasstaticmethod. Astaticmethodbelongstotheclassratherthanobjectofaclass. Astaticmethodcanbeinvokedwithouttheneedforcreatinganinstanceofa class. staticmethodcanaccessstaticdatamemberandcanchangethevalueofit. 3)Javastaticblock Isusedtoinitializethestaticdatamember. Itisexecutedbeforemainmethodatthetimeofclassloading.
11.
Page|11 4. POLYMORPHISM: Wheneveranobjectgivesdifferentbehavioraccordingtodifferent environmentthenitissaidtobepolymorphism. Eg.System.out.println(10); System.out.println(“hi”); System.out.println(2.4); Here,byusingonlyonefunction,wepasseddifferenttypeofvalues. *Polymorphismisalwaysachievedbythebehaviorofanobject. Polymorphismareoftwotypes: 1.RunTimePolymorphism(LateBinding): Objectisbindwithitsfunctionalityatruntime. 2.CompileTimepolymorphism(EarlyBinding): Objectisbindwithitsfunctionalityatcompiletime. JavadoesnotsupportOperatoroverloadingexplicitly. Rule:JavadoesnotsupportCompiletimePolymorphism.Onlyincaseof Staticfunction
CompileTimePolymorphismissupported.ButStatic functionsarebindatclasslevel.SoCTPinjavaisnotsupported. Rule:Bydefaultallthenonstaticfunctionexceptstatic,final,privateare implicitvirtual andvirtualfunctionalwaysbindatruntime. 4.1. Functionoverloading: Functionoverloadingsaysifyouhavemorethanonefunctionwith samenameinoneclassbuthavingdifferentprototypes. Functionprototypesconsistsof5thimgs: 1.Accessspecifier
12.
Page|12 2.Accessmodifier 3.Returntype 4.Name 5.Argiuement Accessspecifier,accessmodifier,andreturntypedonotplayanyrole infunctionoverloading. Functionoverloadingcanonlybeachievedbychangingargumentsin2 ways: 1.Changeinnumberofarguments 2.Changeindatatypeofargument 4.2DataShadowing Wheneverclasslevelvariableandlocallevelvariablehavesamename ,ThenlocalVariablevalueovershadowstheclasslevelvariable’svalue. ThisconceptiscalledDatashadowing. Thiskeyword:
Allthenonstaticfunction,implicitlyaccessclasslevelvariablein objectbyusing‘this’keyword. ‘this’catchesRIDofobjectimplicitlyinnonstaticfunction. Ifdatashadowingoccursthentoaccessclasslevelvariablevalues,use of‘this’ismandatory. ‘this’keywordcannotbeusedinstaticfunction.
13.
Page|13 6.Inheritance: Itisusedtoachievereusability,optimization,timeandcostutilization. ItisachievedbyFunctionOverriding. Eg.SyntaxofjavaisinheritedfromyhesyntaxofClanguage. InheritanceisaISARELATIONSHIP. Javadoesnotsupportmultipleinheritance. Bydefaultallthedatamemberandmemberfunctionofparentclass areavailabletochildclassiftheyarenotprivate. 6.1Functionoverriding: Wheneverparentclassandchildclassbothhavememberfunction ofsamesamethenchildfunctionoverridesparentfunction.This conceptiscalledfunctionoverriding.
Staticmethodcannotoverrideanotherstaticmethod,buttheycanhide anothermethodanditiscalledfunctionhiding. Ifmethodofparentismadeprivatethenwhatevertheaccessspecifier ofmethodofchildis,functionoverridingisnotpossible. Finalmethodscannotbeoverriddenbymethodofchildclass. Onlyinheritedmethodcanbeoverridden. Theoverridingmethodandoverriddenmethodmusthavesame argumentlistandareofsamereturntype. Constructorscan’tbeoverriddenbutcanbeoverloaded. Abstractmethodmustbeoverriddenbynonabstractsubclass. 6.2 Upcasting TheRIDofchildclassobjectisputintheRVofparentclassbutvice
14.
Page|14 versaisnottrue. Eg.Parentp=newChild(); 6.3 Downcasting TheprocessofgettingbackRIDofachildclassobjectfromparent classRVtochildclassRV. Eg.Childc=(Child)p;
15.
Page|15 7.Abstraction: Itisusedtodefinestandards. Itisusedtohidetheinternalworking. Abstractfunctiondefinestandards,implementationvariesfrom onestandardtoother. Therearetwowaystoachieveabstraction: 1.ViaabstractClass 2.ViaInterface 7.1AbstractClass Abstractclassissimilartonormalclassinjavaexceptitcan’tbe instanciated. Abstractclasscanonlycontainabstractmethods.
Itmaycontainmorethanoneabstractmethodsoralsocontainnon abstractmethods. Achildclasshastooverridealltheabstractmethodofanabstract methods,Otherwiseithastomakeitselfabstract. Eg. abstractClassBase{ Intx;inty; voidshow(){ System.out.println(x);System.out.println(y); } Abstractvoidget();} ClassChildextendsBase{
16.
Page|16 Voidget(intx,inty){ this.x=x; this.y=y;} publicstaticvoidmain(Stringargs[]) { Childc1=newChild(); C1.get(1,2); C1.show(); } } Output: 1 2 7.2Interfaces: Interfacesaretheblueprintofaclass. Itisareferencetypeinjava.Itisacollectionofabstractmethods. Aclassimplementsaaninterface,therebyinheritinganabstract methodsftheinterface. Alongwiththeabstractmethods,italsocontainconstants,default methods,staticmethods,andnestedmethods. Interfacecontainsthebehaviorthataclassimplements. Interfacecan’tbeinstanciated. Interfacedoesnotcontainanyconstructors.
Allthemethodsofinterfaceareabstract. Aninterfaceisnotextendedbyaclass.
17.
Page|17 Aninterfacecanextendmultipleinterfaces. Interfacekeywordisusedtodeclareinterface. Foreg. InterfaceMy{ voidshow();} classChildimplementsMy{ publicvoidshow() {System.out.println(“show”);} Publicstaticvoidmain(Stringargs[]){ Mym=newMy(); m.show();} output: show 7.3ExtendindInterfaces: Eg. publicinterfaceSports{ publicvoidshow(); } PublicinterfaceFootballextendsSports{ Publicvoidscore(); } 7.4Extendingmultipleinterfaces Eg.PublicinterfacehockeyextendsSports,Football{} 8.StringHandling: Creatingstringbymostdirectway:
18.
Page|18 Stringg=“Helloworld”; Stringclassisimmutablesoonceobjectiscreateditcan’tbechanged. ImportantmethodsofStringclass: 1.byteb[]=g.getBytes(); 2.charch[]=g.toCharArray(); 3.charc=g.charAt(2); 4.Strings1=g.toUpperCase(); 5.Strings2=g.toLowerCase(); 6.Strings1=g.subString(10); 7.Strings2=g.subString(0,4); 8.Strings=String.valueOf(10); 9.intI=Integer.parseInt(“10”);etc. StringConcatenation: Strings=“good”; S=s+“morning”; StringComparision: 1.Booleanb=s1.equals(s2); Italwayscomparesthecontentofreferencevariable,ifsamethenreturns true; 2.booleanb=s1.equalsIgnoreCase(s2); 3.intx=s1.CompareTo(s2);
19.
Page|19 9.ProjectforInstituteManagementUsingSwingandPanel: InthiswehavemadeaLibrearymanagementprojectinwhichanadmin managestheRecordofbooks,AddbookwhichyouwanttostoreonLibreary, Availablebooks,,IssueBook,ReturnBook.Onlytheadministratorhasthe permissiontomanagethisinstitutemanagementapplication. Forcreatingthisapplication,weneedthefollowingfile: 1.Javafile: forwritingcode.Inthisfileweuseswingandpackagecomponentsto createaregistrationformwithpasswordvalidation. 2.Odbc.jarfile: ThisjarfileprovidesawaytosetupaJavaconnectionwithanOracle Database. 3.Msaccessfile:whichisusedtostorethedatabasetables. 4.Regtableindatabase1.mdb(msaccessfile):forfetchingrecordswe needadatabasetable.
20.
Page|20 INTERODUCTION:-LibrarymanagementsystemprothemainobjectiveoftheLibrary Managementsystemprojectisdisciplineoftheplanning,organizingandmanagingthe librarytasks.Ourprojectaimsatmakingthetaskoflibraryeasy.LibraryManagementis enteringtherecordsofnewbookandretrievingthedetailsofbookavailableinthelibrary. Wecanissuebooktothelibrarymemberandmaintaintheirrecordsandcanalsochecks howmanybookareissuedandstockavailableinthelibrary.Intheprojectwecanmaintain thelatefineoflibrarymemberwhoreturntheissuedbookaftertheduedate.ThisLibrary managementsystemprojectinJAVAandMSSQLserver. Projecttitle: Librarymanagementsystem/LibrarymanagementsystemprojectinJAVA RDBMS Languageandsoftwaretoolused:
21.
Page|21 FrontEnd:Java OperatingSystem:Window10 BackEnd:MicrosoftSQLServer ProposedSystem: Intheproposedsystem,weassumethateachmemberwillbehavingaidentitywhichcan beusedforthelibrarybookissue.wheneverlibrarymemberwishtotakeabook,thebook issuedbythelibraryauthoritywillbecheckboththebookdetailsaswellasthestudent detailsandstoreitinlibrarydatabase. ModuleDescription: 1.UserModule: Inthismodulestudentcancheckavailabilityofthebook…
Thefollowingarethesubmoduleintheusermodule. Bookreturn:Herestudentwillreturnthebookstothelibrary… 2.LiberianModule: Thisisthemainmoduleintheproposedproject.TheLiberiancanreadand writeinformationaboutanystudent.TheLiberiancanalsoupdate,createand deletetherecordofstudentasperrequirementandimplementationplans. Thefollowingarethesubmoduleintheadministratormodule. Bookdetails:AllowLiberiantoenteredbookdetails. Bookissue:HereLiberianissuesthebookstothestudentfromlibrary. Futurescopeoftheproject: Wecanconsidermuchfuturescopetothisapplication.Thefollowingare
22.
Page|22 someofthere. OnlineuseofthelibrarycanbegoodfeaturefortheLibraryManagement system. Advancedfinepaymentsystemcanbeadded.
Inventorysystemcanbeusedtomaintainthebooksofthelibrary. Hardwarerequirement:Operatingsystem:Window10 Harddisks:GB RAM:MB Softwarerequirement: Javalanguage Javadevelopmentkit7 MSSQLserver ModuleOfProject: LoginPage. Menu. AddBook. AvailableBook. IssueBook. ReturnBook. Bookdetails:AllowLiberiantoenteredbookdetails.
23.
Page|23 Bookissue:HereLiberianissuesthebookstothestudentfromlibrary. Futurescopeoftheproject: Wecanconsidermuchfuturescopetothisapplication.Thefollowingare someofthere.
OnlineuseofthelibrarycanbegoodfeaturefortheLibraryManagement system. Advancedfinepaymentsystemcanbeadded. Inventorysystemcanbeusedtomaintainthebooksofthelibrary. Hardwarerequirement:Operatingsystem:Window10 Harddisks:GB RAM:MB Softwarerequirement: Javalanguage Javadevelopmentkit7 MSSQLserver ModuleOfProject: LoginPage. Menu. AddBook. AvailableBook. IssueBook. ReturnBook.
24.
Page|24 LoginPage-: TheLoginpageisthefirstpageoftheproject.Whichisthegrantthepermissiontothe liberationbyaccessingthecorrectsecuritylevel?WheretheusernameorPassword. HerethethreePanelareusedintheLoginPage,inwhichthefirstpanelisusesforthe LIBRARYMANAGMENT.thesecondpanelisusedfortheuseridandpasswordandthelast panel,panelthreeisusedforthefinalprocessoftheloginpageasaLoginintheprojector canceltheloginpage. Afterthecorrectinformationprovidingintheloginpagetheauthorisedusercanenterin theproject...andhewillbeaccessallthefunctionoftheproject.suchasaddbook,return booketc Completetheprocessofloginpageasacompleteandcorrecttheauthorisedusergoes awaythenextpage(Menu). Inthecaseofincorrectusernameorpasswordtheloginpagewillbeshowthedialogbox andinstructionthattheusernameorpasswordisinvalid.
25.
Page|25 Menu-: Themenupageoftheprojectiscontainthe4button.whichistheuseforopennewpage forusingspecialaction. Wherethefollowingbuttonsareusing.theyarefollowingtypes----- AddBook. AvailableBook.
IssueBook. ReturnBook.
26.
Page|26 AddBook-: Theaddbookpageoftheprojectisthepageinwhichthenewbooksaretheaddingin libraryrecordthrowthelibrarian. Wherethegeneralinformationshouldmusttoaddedinthefield.Afterthesubmittingthe alldetailsthedetailofthebookissavedintheavailablebook.
27.
Page|27 AvailableBook-: Theavailablebookoftheprojectistherecordoftheallbookswhicharetheaddedin thelibrary.Theaddbooksdatabaseareconnectedwiththeavailablebook.Thebooks whoaretheaddedintheaddbookpagetheyarestoredintheavailablebook.Inwhich thealldetail
28.
Page|28 ofthebooksaretheincludedsuchas,bookname,bookid,publisher,publishingyear, addingdateetc. IssueBook-: Theissuebookistheprocessofthedestructionofthelibrary’sbooktotheusers,where theallgeneralinformationofuser’s&booksareaddedinthepageoftheissuebook.after thatthebooksarethecheckoutfromthelibrary.
29.
Page|29 ReturnBook-: Thereturnbookofthejavalibrarymanagementsystemisthelastpage,inwhichthe booksarecheckininthelibrarywhicharethecheckoutbythelibrary. Thebasicdetailofthebooksandusersaresubmittingsameastheissuebookpage.after thatthebooksarecheckininthelibrary.
30.
Page|30 Conclusion Thistrainingfocusseduponincreasingourknowledge andinterestintowardthejava.Becausejavaismost interestingandmostusedlanguageinthesedays.We learnthowtocreateawebsitesandwebpages.Itwas agreatexperience.Itincreaseourpracticalskills that‟sthemainthingwhichwelearntinthetraining session.Thus,webelievethatourprojectwillbe beneficialforvariouspurposes&henceourefforts willbefruitful.
Download now