1.Whatisthedifferencebetweenproceduralandobject-orientedprograms?-a)Inproceduralprogram,programminglogicfollowscertainproceduresandtheinstructionsareexecutedoneafteranother.InOOPprogram,unitofprogramisobject,whichisnothingbutcombinationofdataandcode.b)Inproceduralprogram,dataisexposedtothewholeprogramwhereasinOOPsprogram,itisaccessiblewithintheobjectandwhichinturnassuresthesecurityofthecode.2.WhatareEncapsulation,InheritanceandPolymorphism?-Encapsulationisthemechanismthatbindstogethercodeanddataitmanipulatesandkeepsbothsafefromoutsideinterferenceandmisuse.Inheritanceistheprocessbywhichoneobjectacquiresthepropertiesofanotherobject.Polymorphismisthefeaturethatallowsoneinterfacetobeusedforgeneralclassactions.3.WhatisthedifferencebetweenAssignmentandInitialization?-Assignmentcanbedoneasmanytimesasdesiredwhereasinitializationcanbedoneonlyonce.4.WhatisOOPs?-Objectorientedprogrammingorganizesaprogramarounditsdata,i.e.,objectsandasetofwelldefinedinterfacestothatdata.Anobject-orientedprogramcanbecharacterizedasdatacontrollingaccesstocode.5.WhatareClass,ConstructorandPrimitivedatatypes?-Classisatemplateformultipleobjectswithsimilarfeaturesanditisablueprintforobjects.Itdefinesatypeofobjectaccordingtothedatatheobjectcanholdandtheoperationstheobjectcanperform.Constructorisaspecialkindofmethodthatdetermineshowanobjectisinitializedwhencreated.Primitivedatatypesare8typesandtheyare:byte,short,int,long,float,double,boolean,char.6.WhatisanObjectandhowdoyouallocatememorytoit?-Objectisaninstanceofaclassanditisasoftwareunitthatcombinesastructuredsetofdatawithasetofoperationsforinspectingandmanipulatingthatdata.Whenanobjectiscreatedusingnewoperator,memoryisallocatedtoit.7.Whatisthedifferencebetweenconstructorandmethod?-Constructorwillbeautomaticallyinvokedwhenanobjectiscreatedwhereasmethodhastobecalledexplicitly.8.Whataremethodsandhowaretheydefined?-Methodsarefunctionsthatoperateoninstancesofclassesinwhichtheyaredefined.Objectscancommunicatewitheachotherusingmethodsandcancallmethodsino...