Core java - Interview Questions and Answers for 'Harman' - 3 question(s) found - Order By Newest Q1. Explain OOPs
or
Explain OOPs Principles
or
Explain OOPs Concepts
or
Explain OOPs features
or
Tell me something about OOPs Core Java 2017-06-13 08:25:45
Ans. OOPs or Object Oriented Programming is a Programming model which is organized around Objects instead of processes. Instead of a process calling series of processes, this model stresses on communication between objects. Objects that all self sustained, provide security by encapsulating it's members and providing abstracted interfaces over the functions it performs. OOP's facilitate the following features
1. Inheritance for Code Reuse
2. Abstraction for modularity, maintenance and agility
3. Encapsulation for security and protection
4. Polymorphism for flexibility and interfacing Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  oops  oops features Asked in 258 Companies basic   frequent Related Questions Can you give a real world example of Encapsulation and Abstraction ? Which of the following Java feature promotes access protection or Hiding ?
a. Inheritance
b. Encapsulation
c. Abstraction
d. Composition Define encapsulation in Java ? Give an example of how Object Oriented Programming Concepts can be implemented. Which of the OOP's features facilitate dependency injection ? Which of the OOP's feature - encapsulation or abstraction - is more important ? Which of the polymorphism type - static or runtime - is more important ? Which of the OOP's feature is most important ? Q2. Difference between Vector and ArrayList ? Core Java Anonymous
Ans. Vectors are synchronized whereas Array lists are not. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java   basic interview question   vector   arraylist   collections   synchronization Asked in 34 Companies basic   frequent Related Questions What is the difference between ArrayList and LinkedList ? If you are given a choice to use either ArrayList and LinkedList, Which one would you use and Why ? Difference between TreeMap and HashMap ? Difference between HashMap and Hashtable? Can you provide some implementation of a Dictionary having large number of words ? What is a ConcurrentHashMap ? Collections.sort can only be performed on ..
a. Set
b. List
c. Map
d. Any Collection implementation What is the difference between List, Set and Map ?
or
What are the different Java Collections Interfaces ? Can we use null as a key for a map collection ? Q3. Why wait(), notify(), notifyAll() methods are in Object class instead of Thread class? Core Java 2020-01-14 09:48:22
This question was recently asked at 'HARMAN'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Related Questions Difference between == and .equals() ? Why is String immutable in Java ? Explain the scenerios to choose between String , StringBuilder and StringBuffer ?
or
What is the difference between String , StringBuilder and StringBuffer ? What are the difference between composition and inheritance in Java? Does garbage collection guarantee that a program will not run out of memory? Why Char array is preferred over String for storing password? What are different ways to create String Object? Explain. Why do we need Inner classes ? Cant we just work with outer classes wherever we implement Inner classes ? What is the difference between declaration, instantiation and initialization ? What is the difference between Encapsulation and Abstraction?