Single/Simple inheritance: In Parent Child relation, we access the functionality Parent using Child but we cannot access Child functionality using Parent. Accessing Non static functionality: What is the super class of all classes in java? …
Inheritance: Inheritance is the Concept of defining new Object by reusing the functionality of existing object. Create a class by using the functionality of existing class. Inheritance is used to update (release next version) of …
Constructor Chaining: The concept of connecting multiple constructors in Object creation process. this() method is used to call constructor of same class explicitly. this() can access zero args constructor this(parameters) can access args constructor We …
How can we access Non-static members in Java? Answer: Using Object address, we can access. How to access static members in Java? Answer: Either by using class name or by using object address. Why it …
Default constructor: Compiler adds a zero args constructor with empty body is called default constructor. We can check compiler added code using “javap” command Compiler doesn’t add default constructor when we define any constructor explicitly …
Encapsulation: Encapsulation is the concept of protecting object functionality from outside access. Writing data (variables) and code (methods) into a single unit. In the communication world, we should make outer visibility of Object but not …
Introduction: Java is Object oriented Programming Language. Java is not fully object oriented because it is supporting primitive types. Wrapper classes providing functionality to convert Primitive data into Objects in java applications. Object Oriented Programming …
Byte class fields: Byte class is having not only methods & constructors, it has set of variables. These variables represent limits & size of byte data type. Static fields of Byte class can be accessed …
String Data conversions: String variable can accept any type of data. Generally input always collect in string format only. We need to convert these string type values into corresponding primitive types before processing in application. …
UN boxing: Conversion Object Byte into primitive byte type. Byte class is providing instance method byteValue() to perform this conversion. Conversion logic to perform Unboxing: