Basic Java Interview Question and Answers

5. Why Java does not support multiple inheritances?
  Java design team stroke to make Java as
  • Simple, object oriented and familiar
  • Robust and secure
  • Architecture neutral and portable
  • High performance
  • Interpreted, threaded and dynamic
  • The reasons for omitting Multiple Inheritance from the Java Language mostly stem from the simple, object oriented and familiar goal.
 
Your Name Your Email-ID
Your Answer
6. How many types of inheritances does Java support?
  Yes, Ok but, basically there are two types of Inheritances are there, they are
  • Single Inheritance
  • Multiple Inheritances
And some other Inheritances are there those are
  • Multi level
  • Hierarchical
  • Hybrid and
  • Java supports only Single Inheritance only.
 
Your Name Your Email-ID
Your Answer
7. Why java does not support pointers?
  Because pointers are unsafe, Java uses reference types to hide pointer and programmers feel easier to deal with reference types without pointers.
 
Your Name Your Email-ID
Your Answer
8. What is a platform?
 
  • A platform is the hardware or software environment in which a program runs.
  • Most platforms can be described as a combination of the operating system and hardware, like Windows 2000/XP, Linux, Solaris and MacOs.
 
Your Name Your Email-ID
Your Answer