Encapsulation in Java

Encap­su­la­tion in Java Def­i­n­i­tion — Encap­su­la­tion in java is the process of hid­ing inter­nal detail from the out­side world and access­ing it only through pub­licly exposed method is data encap­su­la­tion /​data bind­ing. Exam­ple of encap­su­la­tion in java — The com­mon exam­ple of encap­su­la­tion is cap­sule. In cap­sule all med­i­cine are encap­su­lat­ed in side cap­sule. Ben­e­fits … Read moreEncap­su­la­tion in Java

Collection Tutorial — Collection Framework and Generics

Def­i­n­i­tion and Need of Col­lec­tion tuto­r­i­al – Col­lec­tion is a Java Object that is used to group homo­ge­neous & het­ero­ge­neous, dupli­cate and unique objects with­out size lim­i­ta­tion for car­ry­ing mul­ti­ple objects at a time from one appli­ca­tion to anoth­er appli­ca­tion among mul­ti­ple lay­ers of MVC archi­tec­ture as a method argu­ment and return type. Why col­lec­tion class are giv­en when we have … Read moreCol­lec­tion Tuto­r­i­al — Col­lec­tion Frame­work and Gener­ics

Control Statements in Java

Con­trol State­ments in Java Def­i­n­i­tion — Con­trol State­ments in java con­trol the order of the exe­cu­tion of pro­gram based on data val­ue and its types. Java con­tain three types of state­ments — Selec­tion State­ments Rep­e­ti­tion State­ments Branch­ing State­ments 1. Selec­tion State­ments — Selec­tion state­ments can be divid­ed into the fol­low­ing cat­e­gories : The if and if-else state­ments The … Read moreCon­trol State­ments in Java