OOPs and Core Java Interview Question and Answers

1. What is object oriented programming?
  • It is a problem solving technique to develop software systems. It is a technique to think real world in terms of objects.
  • Object maps the software model to real world concept.
  • These objects have responsibilities and provide services to application or other objects.
Your Name Your Email-ID
Your Answer
2. What are different properties provided by object oriented systems?
  • Abstraction
  • Encapsulation
  • Communication
  • Object lifetime
  • Inheritance
  • Aggregation
  • Association
  • Polymorphism
Your Name Your Email-ID
Your Answer
3. What are the major differences between C++ and Java?
  • Java does not support pointers.
  • Java does not include structures or unions.
  • Java does not support operator overloading.
  • Java does not perform any automatic type conversions that results in a loss of precision.
  • All the code in a Java Program is encapsulated within one or more classes.
  • Java does not support multiple inheritance.
  • Java does not have destructors.
  • Java does not support typedef.
  • It is not possible to declare unsigned integers in Java.
  • In Java, objects are passed by reference only. In C++, objects may be passed by value or reference.
Your Name Your Email-ID
Your Answer
4. What is the relation between classes and objects?
  • Class is a definition, while object is instance of the class created.
  • Class is a blue print while objects are actual objects existing in real world.
Your Name Your Email-ID
Your Answer
12345678910 Page 1 of 10