class and object in java are as follows: The Object oriented programming synopsis are majorly used for code reusability purpose. The basic unit in OOPs are class and object in java. The characteristic of object oriented programmings are as follow: 1. Class: Class is a basic unit in object oriented … Read more
Abstraction: Hiding of unnecessary data is known as Abstraction. To achieve abstraction in java side we use abstract class and Interface. Abstract class: Abstract class is a class which contain zero or more abstract method. Abstract method is a method which contain only method header, that is present in its subclass. It does not contain … Read more
Class and interface in java are given below: Class Class is a basic unit in object oriented programming concept. Class is a collection of objects or a blue print of an object. It can be stored data part as well as method part. The class is declared by the use of class keyword. The class … Read more
The difference between instance variable and static variable are as follows.. Instance Variable Static Variable 1.Instance variable does not begin with Static keyword. 1.Static variable must begin with Static keyword. 2.Instance variable are also known as non-static variable. 2.Static variable are also called as class Variable. 3.
Application and Applet in java are given below: The Difference between application and applet in java are as follows.. Application Applet 1.An application is a program that run on computer system under the control of operating system. 1.Applet programs are the internet based programs which can run in a web browser. 2.Application program contain main() method. … Read more
The difference between for loop and For-each loop are as follows.. for loop For-each loop 1.for loop is a feature added from version. 1. For-each loop is a new feature added from jdk 1.5 version. 2.for loop is used to performed repeatation process until and unless condition become false. 2.For-each loop is used to modify … Read more
The difference between Array and Collection are as follows.. Array Collection 1.Array is a collection of similar Homogeneous element. 1.Collection is collection of homogeneous and hetrogeneous element. 2.Array is a fixed size. 2.Collection is dynamic growable. 3.Chance of memory wastage. 3.No memory wastage problem. 4.Store data type as well as object type. 4.Stores only object … Read more
Object oriented and procedure oriented programming are given below: The difference between Object oriented and Procedure oriented Programming are as follows.. Object Oriented Programming (OOPs) Procedure oriented Programming (POPs) 1. Data is more Secure in Object Oriented Programming language. 1.Data is less Secure in Procedure Oriented Programming Language. 2.In Object Oriented Programming , Data and Function are … Read more