Java OOPS Concepts Object oriented programing language provides many concepts, such as Inheritance, Data Binding, Polymorphism etc. Object: Any entity which has state and behavior is known as object. It can be physical or logical part. For example, a chair, pen, keyboard etc. An object can be define as instance of class. An object contains an address and takes up some space in memory. Objects can communicate with each other without knowing the details of each others data or code. Only the type of response and message acceptance is important. The representation of object is same as below: Class: Class is a collection of object. It is logical entity. Class can also be define as a blueprint from which you can create individual object. Class doesn't consume any space. Sample example of java class declaration is as follows: class SampleDemo{ // Statements or logical code ...
A blog about Java basic concept, Java Keywords, Algorithems, Loops, Conditional loops, Data Structure, Java collections, Database, OOPS concepts, Java Interface, Java String, Java Execption handling, Java Networking, Java AWT, Java Swing, Java Applet, Java JDBC, Java Multithreading, Java I/O, Java String, Java conversion, Java date. And we are going to explain every point in deep for better understanding.