Wednesday, January 20, 2016

Is Java Pure Object Oriented Language?

What is OOP (Object Oriented Programming) ?
Object-oriented programming (OOP) is a programming paradigm based on the concept of “objects”, which are data structures that contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods. - Wikipedia
Java follows Object Oriented Paradigms except in few cases, which are -
  1. Java has primitive types which are not objects like int, float, char, etc. But Java has added wrapper classes for most of these that can used in Collections Framework like Integer, Double, Character, etc. So Java has support for OOP after these Wrapper classes.
  2. Java 8 added lambda expressions which are like function pointers, they are not typically allowed as per OOP
Popular Object Oriented Languages are - Python, C++, Java, .Net, Ruby, Objective-C, SmallTalk, etc.
But in my opinion, 100% object oriented doesn’t mean much, really !

No comments:

Post a Comment

Your comment will be published after review from moderator