Skip to main content

Posts

Showing posts with the label hadoop interview questions and answers

Best Use of C# Private Constructors [How To?]

What do we need of private constructor in C#? 1. A private constructor means that the class can't be instantiated from outside the class. 2. Private constructors can be useful when using a factory pattern. 3. You cannot add public constructor without parameters. i.e. 4. If the class ONLY has private constructors, it cannot be instantiated from outside. 5. When you want to prevent the users of your class from instantiating the class directly. 6. A static method can call the private constructor to create a new instance of that class. 7. In this case, you have a static method defined inside the class that internally calls the private constructor. i.e. class A { private A() { } private static A theA = new A (); public static A getAInstance() { return theA; } } 8. If you want to create object of class(ClassA) even if we have private constructor(ClassA) then we need to add a public parameterise constructor along with private cons...

Hadoop/BigData Interview Questions and Answers

Hadoop is an open source framework that store and scale large amount of data using clusters of commodity cloud servers. Which is developed by using Apache (Java)? What is hadoop? Name the most common Input Formats defined in Hadoop? Which one is default? What is InputSplit in Hadoop? How is the splitting of file invoked in Hadoop framework? What is the purpose of RecordReader in Hadoop? What is a Combiner in hadoop? What is JobTracker in hadoop? What are some typical functions of Job Tracker in hadoop? What is TaskTracker in hadoop? What is the relationship between jobs and tasks in hadoop? How does speculative execution work in hadoop? What is distributed cache in hadoop? Have you ever used Counters in hadoop? Is it possible to have hadoo...