Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
General - Interview Questions and Answers for 'Incontact' - 2 question(s) found - Order By Newest | ||||
| ||||
Ans. [Open Ended Answer] This is a very sensitive question and should be dealt with caution. Just simply saying that you never had any disagreement will present you as dumb team member. Showing your self as too aggressive in such decisions will present you as a trouble maker. You should present a situation where you had an argument / disagreement but eventually you and your team mates mutually found a way out of it. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve   Asked in 20 Companies basic | ||||
Related Questions | ||||
Describe, in general, how java's garbage collector works ? | ||||
What is a ConcurrentHashMap ? | ||||
What is Generalization and Specialization in terms of casting ? | ||||
Which java frameworks have you used ? | ||||
What the Bean scopes provided by Spring ? | ||||
What are the various Auto Wiring types in Spring ? | ||||
When should we use prototype scope and singleton scope for beans ? | ||||
When do we generally get this database error - integrity constraint violated - parent key not found ? | ||||
Write a program for Coin Changer application ? | ||||
When do we generally get the database error - Unique Constraint Violated ? | ||||
| ||||
Ans. There are four main OOP concepts in Java. These are: Abstraction. Abstraction means using simple things to represent complexity. We all know how to turn the TV on, but we don?t need to know how it works in order to enjoy it. In Java, abstraction means simple things like objects, classes, and variables represent more complex underlying code and data. This is important because it lets avoid repeating the same work multiple times. Encapsulation. This is the practice of keeping fields within a class private, then providing access to them via public methods. It?s a protective barrier that keeps the data and code safe within the class itself. This way, we can re-use objects like code components or variables without allowing open access to the data system-wide. Inheritance. This is a special feature of Object Oriented Programming in Java. It lets programmers create new classes that share some of the attributes of existing classes. This lets us build on previous work without reinventing the wheel. Polymorphism. This Java OOP concept lets programmers use the same word to mean different things in different contexts. One form of polymorphism in Java is method overloading. That?s when different meanings are implied by the code itself. The other form is method overriding. That?s when the different meanings are implied by the values of the supplied variables. See more on this below. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  oops  oops concepts Asked in 16 Companies basic   frequent | ||||
Related Questions | ||||
What are the difference between composition and inheritance in Java? | ||||
Explain OOPs or Explain OOPs Principles or Explain OOPs Concepts or Explain OOPs features or Tell me something about OOPs | ||||
What is the difference between Encapsulation and Abstraction? | ||||
What are points to consider in terms of access modifier when we are overriding any method? | ||||
What is Polymorphism in Java ? | ||||
Difference between Overloading and Overriding ? | ||||
Can you give a real world example of Encapsulation and Abstraction ? | ||||
Why every object constructor automatically call super() in Object before its own constructors? | ||||
How compiler handles the exceptions in overriding ? | ||||
Difference between Composition and Inheritance ? | ||||