We create immutable class in java by making the class fields final and private, and by providing getter setter method, and returning new object with
Answer to what to choose between abstract class and interface if both contain only abstract methods. This is the frequently asked technical interview question. Here
A nice note on Java interface in which interface variables, methods has been clearly explained with declaration and examples. 3 complete interface examples and interface
Linux multiple choice questions for interview and Linux exams preparation. Most of the Linux MCQs are asked in the interviews and they have answers and
Learn use of singleton class in java with examples including three examples used in java libraries. Singleton class is majorly used to create single or
Learn singleton class in java with example. Singleton class is just a concept and we can make any class singleton which we want by following
What is method signature in java ? – Method signature in java includes only method name and parameters. Method return types are not included in
BST – Binary Search Tree inorder traversal program in C. This program will first prepare a binary search tree by create a tree node and
MCQ on virtual function, VPTR, VTABLE and destructors etc. for interview exams preparation. These multiple-choice questions on virtual concepts contain the answer and explanation. Q)
Use of volatile keyword in Java – The volatile keyword is used to declare a variable volatile, so, the variable can be accessed directly from