Interview Questions and Answers for 'Maverick' - 3 question(s) found - Order By Rating Q1. What is coupling and Cohesion ? Design
Ans. Coupling is the degree of interdependence between software modules, a measure of how closely connected two modules are or the strength of the relationships between modules.
Cohesion refers to the degree to which the elements of a module belong together. Cohesion measures the strength of relationship between pieces of functionality within a given module. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  coupling  cohesion Asked in 10 Companies   frequent Related Questions Can you explain software design principles cohesion and coupling with an example? How dependency injection in angular helps with loose coupling in angular ? Frequently asked. Ans. Iterator is an interface that provides methods to iterate over any Collection. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java   collections   iterator Asked in 11 Companies basic   frequent Related Questions What are few iterator classes provided by Java ? What are fail-fast Iterators ? Is Iterator a class ? How Spliterator in Java 8 different than iterator ? Which is better in terms of performance - Iterator or Spliterator ? What are the cursors available in Java ? What is the difference between Enumeration and Iterator ? Why iterators of an array list are fail fast ? How can i split a linked list in two parts in java 8? Must know at all levels. Among Top 10 frequently asked questions in Java. Very frequently asked to fresh graduates or less experienced professionals. Ans. Its a facility for code reuse and independent extension wherein a derived class inherits the properties of parent class. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  inheritance  object oriented programming (oops)  oops concepts  oops concepts  java concepts  code reuse  code re-use   classes  derived classes Asked in 14 Companies basic   frequent Related Questions Why do we need Inner classes ? Cant we just work with outer classes wherever we implement Inner classes ? Differences between abstract class and interface ? What are different types of classes ? Will this code give error if i try to add two heterogeneous elements in the arraylist. ? and Why ? Which of the following can be marked static ?
a. Methods , Variables and Initialization Blocks.
b. Methods , Variables , Initialization Blocks and Outer Classes and nested Classes.
c. Methods , Variables , Initialization Blocks and Outer Classes.
d. Methods , Variables , Initialization Blocks and nested Classes What is the difference between the following two code lines ?
1. new OuterClass().new InnerClass();
2. new OuterClass.InnerClass(); What are the Wrapper classes available for primitive types ? What are wrapper classes ? Why Struts 1 Classes are not Thread Safe whereas Struts 2 classes are thread safe ? What is a stream and what are the types of Streams and classes of the Streams?