Interview Questions and Answers for 'Trimble' - 3 question(s) found - Order By Rating Q1. How to calculate distance between 2 points using latitude longitude ? Algorithm
This question was recently asked at 'Trimble'.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? Explain OOPs
or
Explain OOPs Principles
or
Explain OOPs Concepts
or
Explain OOPs features
or
Tell me something about OOPs What is a Lambda Expression ? What's its use ? Why Char array is preferred over String for storing password? What are different ways to create String Object? Explain. Does garbage collection guarantee that a program will not run out of memory? What is the difference between final, finally and finalize() ? Q2. Explain OOPs
or
Explain OOPs Principles
or
Explain OOPs Concepts
or
Explain OOPs features
or
Tell me something about OOPs Core Java
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 260 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 ? Q3. What is the difference between Collection and Collections ? Core Java
Ans. Collection is an interface whereas Collections is a utility class. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java   collections Asked in 1 Companies 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 HashMap and Hashtable? Difference between TreeMap and HashMap ? Can you provide some implementation of a Dictionary having large number of words ? Will this code give error if i try to add two heterogeneous elements in the arraylist. ? and Why ? How is Hashmap internally implemented in Java ? What is a ConcurrentHashMap ? Collections.sort can only be performed on ..
a. Set
b. List
c. Map
d. Any Collection implementation Why HashTable has been deprecated ?