

We can read a file line by line in Java in two ways. The dog has its states such as color, name, breed, and behaviors such as barking, eating, wagging her tail. This is the reason why Java is not 100% object-oriented language.Įxample: A dog is an object of Animal class. These primitive data types are not object oriented.

Java is not a pure Object Oriented Language because it supports primitive data type such as byte, boolean, char, double, float, int, long, short. It doesn’t occupy memory for each thread. The multithreading concept of Java shares a common memory area.
#40 java collections interview questions and answers verification#
Portable: Java run time environment uses a bytecode verification process to make sure that code loaded over the network doesn’t violate Java security constraints.Object-Oriented: Java is an object-oriented programming language.Even though Java is based on C++, it was developed by eliminating poor programming practices of C++. Some of the features which play an important role in the popularity of java are as follows:
