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.
Q183. Which of the following do you think is the primary reason you would never use a static class even the application doesn't need multiple requests or threads ?
a. Serialization
b. Runtime Polymorphism
c. Lazy Loading
d. Memory
Ans. Runtime Polymorphism
Help us improve. Please let us know the company, where you were asked this question :
LikeDiscussCorrect / Improve  static class   static vs singleton   java   oops   objects  Runtime Polymorphism
Q184. Which of the following Java feature promotes access protection or Hiding ?
a. Inheritance
b. Encapsulation
c. Abstraction
d. Composition
Help us improve. Please let us know the company, where you were asked this question :
LikeDiscussCorrect / Improve  java   java concepts   java features   oops concepts   oops features   access protection   information hiding
Q185. What is a Sequence File?
a. A Sequence File contains a binary encoding of an arbitrary number of homogeneous writable objects. b. A Sequence File contains a binary encoding of an arbitrary number key-value pairs. Each key must be the same type. Each value must be of same type. c. A Sequence File contains a binary encoding of an arbitrary number of heterogeneous writeable objects. d. A Sequence File contains a binary encoding of an arbitrary number of Writable Comparable objects, in sorted order.
Ans. A Sequence File contains a binary encoding of an arbitrary number key-value pairs. Each key must be the same type. Each value must be of same type.
Help us improve. Please let us know the company, where you were asked this question :
a. One Key and One Value b. Multiple Keys and Multiple associated Values c. Multiple Keys and One associated values with each d. One key and associated values.
Ans. One key and associated values.
Help us improve. Please let us know the company, where you were asked this question :
LikeDiscussCorrect / Improve  hadoop   bigdata   big data   map-reduce   map reduce   reduce function
Q187. Which of the following is the implementation language for Map Reduce Framework ?
a. Big Data b. Hadoop c. Java d. C++
Ans. Java
Help us improve. Please let us know the company, where you were asked this question :
LikeDiscussCorrect / Improve  hadoop   bigdata   big data   map-reduce   map reduce framework
Q188. Will a for loop like following throw a compilation error ?
for(;;);
Ans. No. It will result in infinite loop
Help us improve. Please let us know the company, where you were asked this question :
Ans. Static polymorphism is the polymorphic resolution identified at compile time and is achieved through function overloading whereas dynamic polymorphism is the polymorphic resolution identified at runtime and is achieved through method overriding.
Help us improve. Please let us know the company, where you were asked this question :
Ans. There was no multiple inheritance in java before version 8 as implementing multiple interfaces cannot be termed as inheritance.
With Java 8 , came the concept of default methods wherein the class implementing the interface carries the default implementation from the interface and hence facilitating multiple inheritance.
Help us improve. Please let us know the company, where you were asked this question :
1. Usage of Primitive types - Though Java provides classes for the primitive data types but as the usage of primitives is permissible, its considered unpure OOP's language.
2. Usage of Static members - Static members belong to the class and not objects and hence not considered fit for pure OOP's programming.
Help us improve. Please let us know the company, where you were asked this question :