Java Interview Questions


1. What is OPP?

  • Modular development of code
  • Reusability of code.
  • Improved reliability and flexibility
  • Increased understanding of code.

2. What is Encapsulation?

  • Allows objects to hide internal characteristics and behavior. Each object provides a number of methods which can be accessed by other object and change its internal data.
  • Three modifiers, each offering different access rights
  • - i. Public
  • - ii. Private
  • - iii. Protected

3. What is Polymorphism

  • The ability to present the same interface for differing underlying datatypes. A polymorphic type is a type whose operations can also be applied to values of some other type.

4. What is Inheritance

  • Provides an object with the ability to acquire the fields and methods of another class, called a base class. Provides reusability of code without modifying it.

5. What is Abstraction?

  • A process of separating ideas from specific instances and developing classes based on their own functionality instead of their implementation details.
  • The abstraction technique aims to separate the implementation details of a class from its behavior.

6. What are the differences between Abstraction and Encapsulation?

  • Abstraction and encapsulation are complementary
  • Abstraction focuses on behavior of an object
  • Encapsulation focuses on implementation of an objects behavior.

7. What is a JVM

  • A virtual machine that can execute Java bytecode

8. What does a static keyword mean?

  • The static keyword denotes that a member variable or method can be accessed without requiring and instantiation of the class it belongs too.
    Languages: Java, Java 2EE, VB, HTML, Java Script, XML.
    Frameworks: Struts1, Spring and Hibernate.
    Software: Microsoft Access, Spring Tool Suite, Eclipse and Rational.
    Databases: mySQL, SQLServer, Oracle, DB2 and Firebird.
    Testing: Selenium, Manual testing methodology, HP ALM.
    Limited experience: Angular 4, Soap UI, Postman and Business Intelligence (Cognos)
    Continuing Education
    Abiity to adapt and learn new software compentencies.
    Team Development
    Coach and motivate team to work together to create a successful team environment
    Analytical and Forward Thinking
    Identify challenges and create solutions for today while anticipating those of tomorrow
    Demonstrate autonomous actions making difficult decisions to accomplish high priority business needs
    Personal Credibility
    Own projects and own mistakes with integrity and accountability
    Baker College:
    Associates and Bachelor of Computers Science