اكثر اسئلة واجوبة المقابلات طلبا والاختبارات عبر الإنترنت
منصة تعليمية للتحضير للمقابلات والاختبارات عبر الإنترنت والدروس والتدريب المباشر

طوّر مهاراتك من خلال مسارات تعلم مركزة واختبارات تجريبية ومحتوى جاهز للمقابلات.

يجمع WithoutBook أسئلة المقابلات حسب الموضوع والاختبارات العملية عبر الإنترنت والدروس وأدلة المقارنة في مساحة تعلم متجاوبة واحدة.

التحضير للمقابلة

الاختبارات التجريبية

اجعلها الصفحة الرئيسية

احفظ هذه الصفحة في المفضلة

الاشتراك عبر البريد الإلكتروني
WithoutBook LIVE Mock Interviews
The Best LIVE Mock Interview - You should go through before interview

Freshers / Beginner level questions & answers

Ques 1. What is design patterns?

Design patterns are tried and tested way to solve particular design issues by various programmers in the world. Design patterns are extension of code reuse.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 2. Can you name few design patterns used in standard JDK library?

Decorator design pattern which is used in various Java IO classes, Singleton pattern which is used in Runtime , Calendar and various other classes, Factory pattern which is used along with various Immutable classes likes Boolean e.g. Boolean.valueOf and Observer pattern which is used in Swing and many event listener frameworks.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 3. What is Singleton design pattern in Java ? write code for thread-safe singleton in Java.

Singleton pattern focus on sharing of expensive object in whole system. Only one instance of a particular class is maintained in whole application which is shared by all modules. Java.lang.Runtime is a classical example of Singleton design pattern. From Java 5 onwards you can use enum to thread-safe singleton.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 4. What is main benefit of using factory pattern? Where do you use it?

Factory patterns main benefit is increased level of encapsulation while creating objects. If you use Factory to create object you can later replace original implementation of Products or classes with more advanced and high performance implementation without any change on client layer.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 5. What is observer design pattern in Java?

Observer design pattern is based on communicating changes in state of object to observers so that they can take there action. Simple example is a weather system where change in weather must be reflected in Views to show to public. Here weather object is Subject while different views are Observers.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 6. Give example of decorator design pattern in Java ? Does it operate on object level or class level?

Decorator pattern enhances capability of individual object. Java IO uses decorator pattern extensively and classical example is Buffered classes like BufferedReader and BufferedWriter which enhances Reader and Writer objects to perform Buffer level reading and writing for improved performance.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 7. What is decorator design pattern in Java?

  • Decorator design pattern is used to enhance the functionality of a particular object at run-time or dynamically.
  • At the same time other instance of same class will not be affected by this so individual object gets the new behavior.
  • Basically we wrap the original object through decorator object.
  • Decorator design pattern is based on abstract classes and we derive concrete implementation from that classes,
  • Its a structural design pattern and most widely used.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 8. What is Factory Design Pattern with example?

Factory pattern is one of most used design pattern in Java. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object.

In Factory pattern, we create object without exposing the creation logic to the client and refer to newly created object using a common interface.

We're going to create a Mobile interface and concrete classes implementing the Mobile interface. A factory class MobileFactory is defined as a next step.

FactoryPatternDemo, our demo class will use MobileFactory to get a Mobile object. It will pass information (SAMSUNG / SONY / BLACKBERRY) to MobileFactory to get the type of object it needs.

Step 1: Create an interface.

Mobile.java

public interface Mobile {

   void draw();

}


Step 2

Create concrete classes implementing the same interface.

Sony.java

public class Sony implements Mobile {

   @Override

   public void draw() {

      System.out.println("Inside Sony::draw() method.");

   }

}


Blackberry.java

public class Blackberry implements Mobile {

   @Override

   public void draw() {

      System.out.println("Inside Blackberry::draw() method.");

   }

}


Samsung.java

public class Samsung implements Mobile {

   @Override

   public void draw() {

      System.out.println("Inside Samsung::draw() method.");

   }

}


Step 3

Create a Factory to generate object of concrete class based on given information.

MobileFactory.java

public class MobileFactory {

   //use getMobile method to get object of type Mobile 

   public Mobile getMobile(String MobileType){

      if(MobileType == null){

         return null;

      }

      if(MobileType.equalsIgnoreCase("SAMSUNG")){

         return new Samsung();

      } else if(MobileType.equalsIgnoreCase("SONY")){

         return new Sony();

      } else if(MobileType.equalsIgnoreCase("BLACKBERRY")){

         return new Blackberry();

      }

      return null;

   }

}


Step 4

Use the Factory to get object of concrete class by passing an information such as type.

FactoryPatternDemo.java

public class FactoryPatternDemo {

   public static void main(String[] args) {

      MobileFactory MobileFactory = new MobileFactory();

      //get an object of Samsung and call its draw method.

      Mobile Mobile1 = MobileFactory.getMobile("SAMSUNG");


      //call draw method of Samsung

      Mobile1.draw();


      //get an object of Sony and call its draw method.

      Mobile Mobile2 = MobileFactory.getMobile("SONY");


      //call draw method of Sony

      Mobile2.draw();


      //get an object of Blackberry and call its draw method.

      Mobile Mobile3 = MobileFactory.getMobile("BLACKBERRY");


      //call draw method of Blackberry

      Mobile3.draw();

   }

}


Step 5

Verify the output.

Inside Samsung::draw() method.

Inside Sony::draw() method.

Inside Blackberry::draw() method.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 9. What is Abstract Factory Design Patter in Java with example?

Abstract Factory patterns works around a super-factory which creates other factories. This factory is also called as Factory of factories. This type of design pattern comes under creational pattern as this pattern provides one of the best ways to create an object.

In Abstract Factory pattern an interface is responsible for creating a factory of related objects, without explicitly specifying their classes. Each generated factory can give the objects as per the Factory pattern.

We're going to create a Shape and Color interfaces and concrete classes implementing these interfaces. We create an abstract factory class AbstractFactory as next step. Factory classes MobileFactory and ColorFactory are defined where each factory extends AbstractFactory. A factory creator/generator class FactoryProducer is created.

AbstractFactoryPatternDemo, our demo class uses FactoryProducer to get a AbstractFactory object. It will pass information (SAMSUNG / SONY / BLACKBERRY for Mobile) to AbstractFactory to get the type of object it needs. It also passes information (RED / GREEN / BLUE for Color) to AbstractFactory to get the type of object it needs.

Step 1
Create an interface for Mobiles.
Mobile.java
public interface Mobile {
   void make();
}

Step 2
Create concrete classes implementing the same interface.
Sony.java
public class Sony implements Mobile {
   @Override
   public void make() {
      System.out.println("Inside Sony::make() method.");
   }
}

Blackberry.java
public class Blackberry implements Mobile {
   @Override
   public void make() {
      System.out.println("Inside Blackberry::make() method.");
   }
}

Samsung.java
public class Samsung implements Mobile {
   @Override
   public void make() {
      System.out.println("Inside Samsung::make() method.");
   }
}

Step 3
Create an interface for Colors.
Color.java
public interface Color {
   void fill();
}

Step4
Create concrete classes implementing the same interface.
Red.java
public class Red implements Color {
   @Override
   public void fill() {
      System.out.println("Inside Red::fill() method.");
   }
}

Green.java
public class Green implements Color {
   @Override
   public void fill() {
      System.out.println("Inside Green::fill() method.");
   }
}

Blue.java
public class Blue implements Color {
   @Override
   public void fill() {
      System.out.println("Inside Blue::fill() method.");
   }
}

Step 5
Create an Abstract class to get factories for Color and Mobile Objects.
AbstractFactory.java
public abstract class AbstractFactory {
   abstract Color getColor(String color);
   abstract Mobile getMobile(String shape) ;
}

Step 6
Create Factory classes extending AbstractFactory to generate object of concrete class based on given information.
MobileFactory.java
public class MobileFactory extends AbstractFactory {
   @Override
   public Mobile getMobile(String shapeType){
      if(shapeType == null){
         return null;
      }
      if(shapeType.equalsIgnoreCase("SAMSUNG")){
         return new Samsung();
      } else if(shapeType.equalsIgnoreCase("SONY")){
         return new Sony();
      } else if(shapeType.equalsIgnoreCase("BLACKBERRY")){
         return new Blackberry();
      }
      return null;
   }
   
   @Override
   Color getColor(String color) {
      return null;
   }
}

ColorFactory.java
public class ColorFactory extends AbstractFactory {
   @Override
   public Mobile getMobile(String shapeType){
      return null;
   }
   
   @Override
   Color getColor(String color) {
      if(color == null){
         return null;
      }
      if(color.equalsIgnoreCase("RED")){
         return new Red();
      } else if(color.equalsIgnoreCase("GREEN")){
         return new Green();
      } else if(color.equalsIgnoreCase("BLUE")){
         return new Blue();
      }
      return null;
   }
}

Step 7
Create a Factory generator/producer class to get factories by passing an information such as Mobile or Color
FactoryProducer.java
public class FactoryProducer {
   public static AbstractFactory getFactory(String choice){
      if(choice.equalsIgnoreCase("SHAPE")){
         return new MobileFactory();
      } else if(choice.equalsIgnoreCase("COLOR")){
         return new ColorFactory();
      }
      return null;
   }
}

Step 8
Use the FactoryProducer to get AbstractFactory in order to get factories of concrete classes by passing an information such as type.
AbstractFactoryPatternDemo.java
public class AbstractFactoryPatternDemo {
   public static void main(String[] args) {

      //get shape factory
      AbstractFactory shapeFactory = FactoryProducer.getFactory("SHAPE");

      //get an object of Mobile Samsung
      Mobile shape1 = shapeFactory.getMobile("SAMSUNG");

      //call make method of Mobile Samsung
      shape1.make();

      //get an object of Mobile Sony
      Mobile shape2 = shapeFactory.getMobile("SONY");

      //call make method of Mobile Sony
      shape2.make();
      
      //get an object of Mobile Blackberry 
      Mobile shape3 = shapeFactory.getMobile("BLACKBERRY");

      //call make method of Mobile Blackberry
      shape3.make();

      //get color factory
      AbstractFactory colorFactory = FactoryProducer.getFactory("COLOR");

      //get an object of Color Red
      Color color1 = colorFactory.getColor("RED");

      //call fill method of Red
      color1.fill();

      //get an object of Color Green
      Color color2 = colorFactory.getColor("Green");

      //call fill method of Green
      color2.fill();

      //get an object of Color Blue
      Color color3 = colorFactory.getColor("BLUE");

      //call fill method of Color Blue
      color3.fill();
   }
}

Step 9
Verify the output:
Inside Samsung::make() method.
Inside Sony::make() method.
Inside Blackberry::make() method.
Inside Red::fill() method.
Inside Green::fill() method.
Inside Blue::fill() method.

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 10. What is Singleton Design Pattern with example in java design patterns?

Singleton pattern is one of the simplest design patterns in Java. This type of design pattern comes under creational pattern as this pattern provides one of the best way to create an object.

This pattern involves a single class which is responsible to creates own object while making sure that only single object get created. This class provides a way to access its only object which can be accessed directly without need to instantiate the object of the class.

We're going to create a SingleObject class. SingleObject class have its constructor as private and have a static instance of itself.

SingleObject class provides a static method to get its static instance to outside world. SingletonPatternDemo, our demo class will use SingleObject class to get a SingleObject object.

Step 1
Create a Singleton Class.
SingleObject.java
public class SingleObject {

   //create an object of SingleObject
   private static SingleObject instance = new SingleObject();

   //make the constructor private so that this class cannot be
   //instantiated
   private SingleObject(){}

   //Get the only object available
   public static SingleObject getInstance(){
      return instance;
   }

   public void showMessage(){
      System.out.println("Hello World!");
   }
}

Step 2
Get the only object from the singleton class.
SingletonPatternDemo.java
public class SingletonPatternDemo {
   public static void main(String[] args) {

      //illegal construct
      //Compile Time Error: The constructor SingleObject() is not visible
      //SingleObject object = new SingleObject();

      //Get the only object available
      SingleObject object = SingleObject.getInstance();

      //show the message
      object.showMessage();
   }
}

Step 3
Verify the output:
Hello World!

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 11. What is MVC design pattern in java design patterns?

MVC Pattern stands for Model-View-Controller Pattern. This pattern is used to separate application's concerns.
Model - Model represents an object or JAVA POJO carrying data. It can also have logic to update controller if its data changes.
View - View represents the visualization of the data that model contains.
Controller - Controller acts on both Model and view. It controls the data flow into model object and updates the view whenever data changes. It keeps View and Model separate.

We're going to create a Employee object acting as a model.EmployeeView will be a view class which can print employee details on console and EmployeeController is the controller class responsible to store data in Employee object and update view EmployeeView accordingly.
MVCPatternDemo, our demo class will use EmployeeController to demonstrate use of MVC pattern.

Step 1
Create Model.
Employee.java
public class Employee {
   private String salary;
   private String name;
   public String getSalary() {
      return salary;
   }
   public void setSalary(String salary) {
      this.salary = salary;
   }
   public String getName() {
      return name;
   }
   public void setName(String name) {
      this.name = name;
   }
}

Step 2
Create View.
EmployeeView.java
public class EmployeeView {
   public void printEmployeeDetails(String employeeName, String employeeSalary){
      System.out.println("Employee: ");
      System.out.println("Name: " + employeeName);
      System.out.println("Salary: " + employeeSalary);
   }
}

Step 3
Create Controller.
EmployeeController.java
public class EmployeeController {
   private Employee model;
   private EmployeeView view;

   public EmployeeController(Employee model, EmployeeView view){
      this.model = model;
      this.view = view;
   }

   public void setEmployeeName(String name){
      model.setName(name);
   }

   public String getEmployeeName(){
      return model.getName();
   }

   public void setEmployeeSalary(String salary){
      model.setSalary(salary);
   }

   public String getEmployeeSalary(){
      return model.getSalary();
   }

   public void updateView(){
      view.printEmployeeDetails(model.getName(), model.getSalary());
   }
}

Step 4
Use the EmployeeController methods to demonstrate MVC design pattern usage.
MVCPatternDemo.java
public class MVCPatternDemo {
   public static void main(String[] args) {

      //fetch employee record based on his roll no from the database
      Employee model  = retriveEmployeeFromDatabase();

      //Create a view : to write employee details on console
      EmployeeView view = new EmployeeView();

      EmployeeController controller = new EmployeeController(model, view);

      controller.updateView();

      //update model data
      controller.setEmployeeName("Craig");

      controller.updateView();
   }

   private static Employee retriveEmployeeFromDatabase(){
      Employee employee = new Employee();
      employee.setName("Maxwell");
      employee.setSalary("30000");
      return employee;
   }
}

Step 5
Verify the output:
Employee: 
Name: Maxwell
Salary: 30000
Employee: 
Name: Kate
Salary: 30000

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Intermediate / 1 to 5 years experienced level questions & answers

Ques 12. What is Prototype Design Pattern in java design patterns?

Prototype pattern refers to creating duplicate object while keeping performance in mind. This type of design pattern comes under creational pattern as this pattern provides one of the best way to create an object.

This pattern involves implementing a prototype interface which tells to create a clone of the current object. This pattern is used when creation of object directly is costly. For example, a object is to be created after a costly database operation. We can cache the object, returns its clone on next request and update the database as as and when needed thus reducing database calls.

We're going to create an abstract class Mobile and concrete classes extending the Mobile class. A class MobileCache is defined as a next step which stores shape objects in a Hashtable and returns their clone when requested.

PrototypPatternDemo, our demo class will use MobileCache class to get a Mobile object.

Step 1
Create an abstract class implementing Clonable interface.
Mobile.java
public abstract class Mobile implements Cloneable {
   
   private String id;
   protected String type;
   
   abstract void make();
   
   public String getType(){
      return type;
   }
   
   public String getId() {
      return id;
   }
   
   public void setId(String id) {
      this.id = id;
   }
   
   public Object clone() {
      Object clone = null;
      try {
         clone = super.clone();
      } catch (CloneNotSupportedException e) {
         e.printStackTrace();
      }
      return clone;
   }
}

Step 2
Create concrete classes extending the above class.
Sony.java
public class Sony extends Mobile {

   public Sony(){
     type = "Sony";
   }

   @Override
   public void make() {
      System.out.println("Inside Sony::make() method.");
   }
}

Blackberry.java
public class Blackberry extends Mobile {

   public Blackberry(){
     type = "Blackberry";
   }

   @Override
   public void make() {
      System.out.println("Inside Blackberry::make() method.");
   }
}

Samsung.java
public class Samsung extends Mobile {

   public Samsung(){
     type = "Samsung";
   }

   @Override
   public void make() {
      System.out.println("Inside Samsung::make() method.");
   }
}

Step 3
Create a class to get concreate classes from database and store them in a Hashtable.
MobileCache.java
import java.util.Hashtable;
public class MobileCache {
   private static Hashtable<String, Mobile> shapeMap 
      = new Hashtable<String, Mobile>();

   public static Mobile getMobile(String shapeId) {
      Mobile cachedMobile = shapeMap.get(shapeId);
      return (Mobile) cachedMobile.clone();
   }

   // for each shape run database query and create shape
   // shapeMap.put(shapeKey, shape);
   // for example, we are adding three shapes
   public static void loadCache() {
      Samsung circle = new Samsung();
      circle.setId("1");
      shapeMap.put(circle.getId(),circle);

      Blackberry square = new Blackberry();
      square.setId("2");
      shapeMap.put(square.getId(),square);

      Sony rectangle = new Sony();
      rectangle.setId("3");
      shapeMap.put(rectangle.getId(),rectangle);
   }
}

Step 4
PrototypePatternDemo uses MobileCache class to get clones of shapes stored in a Hashtable.
PrototypePatternDemo.java
public class PrototypePatternDemo {
   public static void main(String[] args) {
      MobileCache.loadCache();

      Mobile clonedMobile = (Mobile) MobileCache.getMobile("1");
      System.out.println("Mobile : " + clonedMobile.getType());

      Mobile clonedMobile2 = (Mobile) MobileCache.getMobile("2");
      System.out.println("Mobile : " + clonedMobile2.getType());

      Mobile clonedMobile3 = (Mobile) MobileCache.getMobile("3");
      System.out.println("Mobile : " + clonedMobile3.getType());
   }
}

Step 5
Verify the output.
Mobile : Samsung
Mobile : Blackberry
Mobile : Sony

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 13. What is Decorator Design Pattern in java design patterns?

Decorator pattern allows to add new functionality an existing object without altering its structure. This type of design pattern comes under structural pattern as this pattern acts as a wrapper to existing class.

This pattern creates a decorator class which wraps the original class and provides additional functionality keeping class methods signature intact.

We are demonstrating use of Decorator pattern via following example in which we'll decorate a shape with some color without alter shape class.

We're going to create a Mobile interface and concrete classes implementing the Mobile interface. We then create a abstract decorator class MobileDecorator implementing the Mobile interface and having Mobile object as its instance variable.

RedMobileDecorator is concrete class implementing MobileDecorator.
DecoratorPatternDemo, our demo class will use RedMobileDecorator to decorate Mobile objects.

Step 1
Create an interface.
Mobile.java
public interface Mobile {
   void make();
}

Step 2
Create concrete classes implementing the same interface.
Sony.java
public class Sony implements Mobile {

   @Override
   public void make() {
      System.out.println("Mobile: Sony");
   }
}

Blackberry.java
public class Blackberry implements Mobile {

   @Override
   public void make() {
      System.out.println("Mobile: Blackberry");
   }
}

Step 3
Create abstract decorator class implementing the Mobile interface.
MobileDecorator.java
public abstract class MobileDecorator implements Mobile {
   protected Mobile decoratedMobile;

   public MobileDecorator(Mobile decoratedMobile){
      this.decoratedMobile = decoratedMobile;
   }

   public void make(){
      decoratedMobile.make();
   }
}

Step 4
Create concrete decorator class extending the MobileDecorator class.
RedMobileDecorator.java
public class RedMobileDecorator extends MobileDecorator {

   public RedMobileDecorator(Mobile decoratedMobile) {
      super(decoratedMobile);
   }

   @Override
   public void make() {
      decoratedMobile.make();       
      setRedBorder(decoratedMobile);
   }

   private void setRedBorder(Mobile decoratedMobile){
      System.out.println("Border Color: Red");
   }
}

Step 5
Use the RedMobileDecorator to decorate Mobile objects.
DecoratorPatternDemo.java
public class DecoratorPatternDemo {
   public static void main(String[] args) {

      Mobile circle = new Blackberry();

      Mobile redBlackberry = new RedMobileDecorator(new Blackberry());

      Mobile redSony = new RedMobileDecorator(new Sony());
      System.out.println("Blackberry with normal border");
      circle.make();

      System.out.println("nBlackberry of red border");
      redBlackberry.make();

      System.out.println("nSony of red border");
      redSony.make();
   }
}

Step 6
Verify the output.

Blackberry with normal border
Mobile: Blackberry

Blackberry of red border
Mobile: Blackberry
Border Color: Red

Sony of red border
Mobile: Sony
Border Color: Red

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Experienced / Expert level questions & answers

Ques 14. What is Observer Design Pattern in java design patterns?

Observer pattern is used when there is one to many relationship between objects such as if one object is modified, its depenedent objects are to be notified automatically. Observer pattern falls under behavioral pattern category.

Observer pattern uses three actor classes. Subject, Observer and Client. Subject, an object having methods to attach and de-attach observers to a client object. We've created classes Subject, Observer abstract class and concrete classes extending the abstract class the Observer.

ObserverPatternDemo, our demo class will use Subject and concrete class objects to show observer pattern in action.

Step 1
Create Subject class.
Subject.java
import java.util.ArrayList;
import java.util.List;
public class Subject {
   private List<Observer> observers 
      = new ArrayList<Observer>();
   private int state;

   public int getState() {
      return state;
   }

   public void setState(int state) {
      this.state = state;
      notifyAllObservers();
   }

   public void attach(Observer observer){
      observers.add(observer);
   }

   public void notifyAllObservers(){
      for (Observer observer : observers) {
         observer.update();
      }
   }
}

Step 2
Create Observer class.
Observer.java
public abstract class Observer {
   protected Subject subject;
   public abstract void update();
}

Step 3
Create concrete observer classes
BinaryObserver.java
public class BinaryObserver extends Observer{
   public BinaryObserver(Subject subject){
      this.subject = subject;
      this.subject.attach(this);
   }

   @Override
   public void update() {
      System.out.println( "Binary String: " 
      + Integer.toBinaryString( subject.getState() ) ); 
   }
}

OctalObserver.java
public class OctalObserver extends Observer{
   public OctalObserver(Subject subject){
      this.subject = subject;
      this.subject.attach(this);
   }

   @Override
   public void update() {
     System.out.println( "Octal String: " 
     + Integer.toOctalString( subject.getState() ) ); 
   }
}

HexaObserver.java
public class HexaObserver extends Observer{
   public HexaObserver(Subject subject){
      this.subject = subject;
      this.subject.attach(this);
   }

   @Override
   public void update() {
      System.out.println( "Hex String: " 
      + Integer.toHexString( subject.getState() ).toUpperCase() ); 
   }
}

Step 4
Use Subject and concrete observer objects.
ObserverPatternDemo.java
public class ObserverPatternDemo {
   public static void main(String[] args) {
      Subject subject = new Subject();

      new HexaObserver(subject);
      new OctalObserver(subject);
      new BinaryObserver(subject);

      System.out.println("First state change: 15");
      subject.setState(15);
      System.out.println("Second state change: 10");
      subject.setState(10);
   }
}

Step 5
Verify the output:
First state change: 15
Hex String: F
Octal String: 17
Binary String: 1111
Second state change: 10
Hex String: A
Octal String: 12
Binary String: 1010

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Ques 15. What is builder pattern and give an example.

Builder pattern builds a complex object using simple objects and using a step by step approach. It creates one by one object and wraps on parent object. E.g. burger making, pizza making, house building etc.

Below we have created a Pizza restaurant where pizza and cold-drink is a typical meal. Pizza can be Italian, American, Mexican etc which will be packed in a wrapper and Cold-drink can be Pepsi, Coke, Limca etc which will be packed in a bottle.

Creating an Item interface representing food items such as pizzas and cold drinks and concrete classes implementing the Item interface and a Packing interface representing packaging of food items and concrete classes implementing the Packing interface as burger would be packed in wrapper and cold drink would be packed as bottle.

We then create a Meal class having ArrayList of Item and a MealBuilder to build different types of Meal object by combining Item. BuilderPatternDemo, our demo class will use MealBuilder to build a Meal.

Step 1
Create an interface Item representing food item and packing.
Item.java
public interface Item {
   public String name();
   public Packing packing();
   public float price();
}

Packing.java
public interface Packing {
   public String pack();
}

Step 2
Create concreate classes implementing the Packing interface.
Wrapper.java
public class Wrapper implements Packing {

   @Override
   public String pack() {
      return "Wrapper";
   }
}

Bottle.java
public class Bottle implements Packing {
   @Override
   public String pack() {
      return "Bottle";
   }
}

Step 3
Create abstract classes implementing the item interface providing default functionalities.
Pizza.java
public abstract class Pizza implements Item {

   @Override
   public Packing packing() {
      return new Wrapper();
   }
   @Override
   public abstract float price();
}

ColdDrink.java
public abstract class ColdDrink implements Item {
@Override
public Packing packing() {
       return new Bottle();
}
@Override
public abstract float price();
}

Step 4
Create concrete classes extending Pizza and ColdDrink classes
ItalianPizza.java
public class ItalianPizza extends Pizza {
   @Override
   public float price() {
      return 200.0f;
   }
   @Override
   public String name() {
      return "Italian Pizza";
   }
}

AmericanPizza.java
public class AmericanPizza extends Pizza {
   @Override
   public float price() {
      return 300.0f;
   }
   @Override
   public String name() {
      return "American Pizza";
   }
}

Coke.java
public class Coke extends ColdDrink {
   @Override
   public float price() {
      return 30.0f;
   }
   @Override
   public String name() {
      return "Coke";
   }
}

Pepsi.java
public class Pepsi extends ColdDrink {
   @Override
   public float price() {
      return 40.0f;
   }
   @Override
   public String name() {
      return "Pepsi";
   }
}

Step 5
Create a Meal class having Item objects defined above.
Meal.java
import java.util.ArrayList;
import java.util.List;
public class Meal {
   private List<Item> items = new ArrayList<Item>();
   public void addItem(Item item){
      items.add(item);
   }
   public float getCost(){
      float cost = 0.0f;
      for (Item item : items) {
         cost += item.price();
      }
      return cost;
   }
   public void showItems(){
      for (Item item : items) {
         System.out.print("Item : "+item.name());
         System.out.print(", Packing : "+item.packing().pack());
         System.out.println(", Price : "+item.price());
      }
   }
}

Step 6
Create a MealBuilder class, the actual builder class responsible to create Meal objects.
MealBuilder.java
public class MealBuilder {
   public Meal prepareVegMeal (){
      Meal meal = new Meal();
      meal.addItem(new ItalianPizza());
      meal.addItem(new Coke());
      return meal;
   }   
   public Meal prepareNonVegMeal (){
      Meal meal = new Meal();
      meal.addItem(new AmericanPizza());
      meal.addItem(new Pepsi());
      return meal;
   }
}

Step 7
BuiderPatternDemo uses MealBuider to demonstrate builder pattern.
BuilderPatternDemo.java
public class BuilderPatternDemo {
   public static void main(String[] args) {
      MealBuilder mealBuilder = new MealBuilder();
      Meal vegMeal = mealBuilder.prepareVegMeal();
      System.out.println("Veg Meal");
      vegMeal.showItems();
      System.out.println("Total Cost: " +vegMeal.getCost());
      Meal nonVegMeal = mealBuilder.prepareNonVegMeal();
      System.out.println("nnNon-Veg Meal");
      nonVegMeal.showItems();
      System.out.println("Total Cost: " +nonVegMeal.getCost());
   }
}

Step 8
Verify the output.
Veg Meal
Item : Italian Pizza, Packing : Wrapper, Price : 200.0
Item : Coke, Packing : Bottle, Price : 30.0
Total Cost: 230.0

Non-Veg Meal
Item : American Pizza, Packing : Wrapper, Price : 300.0
Item : Pepsi, Packing : Bottle, Price : 40.0
Total Cost: 340.0

Save For Revision

Save For Revision

Bookmark this item, mark it difficult, or place it in a revision set.

Open My Learning Library

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

Related interview subjects

Java 17 اسئلة واجوبة المقابلات - Total 20 questions
Servlets اسئلة واجوبة المقابلات - Total 34 questions
Kotlin اسئلة واجوبة المقابلات - Total 30 questions
EJB اسئلة واجوبة المقابلات - Total 80 questions
Java Beans اسئلة واجوبة المقابلات - Total 57 questions
Java Exception Handling اسئلة واجوبة المقابلات - Total 30 questions
Spring Boot اسئلة واجوبة المقابلات - Total 50 questions
Java 15 اسئلة واجوبة المقابلات - Total 16 questions
Core Java اسئلة واجوبة المقابلات - Total 306 questions
Java Multithreading اسئلة واجوبة المقابلات - Total 30 questions
Apache Wicket اسئلة واجوبة المقابلات - Total 26 questions
JBoss اسئلة واجوبة المقابلات - Total 14 questions
Log4j اسئلة واجوبة المقابلات - Total 35 questions
Java Mail اسئلة واجوبة المقابلات - Total 27 questions
Java Applet اسئلة واجوبة المقابلات - Total 29 questions
Java 21 اسئلة واجوبة المقابلات - Total 21 questions
Google Gson اسئلة واجوبة المقابلات - Total 8 questions
Struts اسئلة واجوبة المقابلات - Total 84 questions
RMI اسئلة واجوبة المقابلات - Total 31 questions
Java Support اسئلة واجوبة المقابلات - Total 30 questions
Apache Camel اسئلة واجوبة المقابلات - Total 20 questions
JAXB اسئلة واجوبة المقابلات - Total 18 questions
JSP اسئلة واجوبة المقابلات - Total 49 questions
Java Concurrency اسئلة واجوبة المقابلات - Total 30 questions
J2EE اسئلة واجوبة المقابلات - Total 25 questions
JUnit اسئلة واجوبة المقابلات - Total 24 questions
Java OOPs اسئلة واجوبة المقابلات - Total 30 questions
Apache Tapestry اسئلة واجوبة المقابلات - Total 9 questions
Java 11 اسئلة واجوبة المقابلات - Total 24 questions
JDBC اسئلة واجوبة المقابلات - Total 27 questions
Java Garbage Collection اسئلة واجوبة المقابلات - Total 30 questions
Spring Framework اسئلة واجوبة المقابلات - Total 53 questions
Java Swing اسئلة واجوبة المقابلات - Total 27 questions
Java Design Patterns اسئلة واجوبة المقابلات - Total 15 questions
JPA اسئلة واجوبة المقابلات - Total 41 questions
Hibernate اسئلة واجوبة المقابلات - Total 52 questions
JMS اسئلة واجوبة المقابلات - Total 64 questions
JSF اسئلة واجوبة المقابلات - Total 24 questions
Java 8 اسئلة واجوبة المقابلات - Total 30 questions

All interview subjects

ASP اسئلة واجوبة المقابلات - Total 82 questions
C# اسئلة واجوبة المقابلات - Total 41 questions
LINQ اسئلة واجوبة المقابلات - Total 20 questions
ASP .NET اسئلة واجوبة المقابلات - Total 31 questions
Microsoft .NET اسئلة واجوبة المقابلات - Total 60 questions
Hugging Face اسئلة واجوبة المقابلات - Total 30 questions
TensorFlow اسئلة واجوبة المقابلات - Total 30 questions
Gemini AI اسئلة واجوبة المقابلات - Total 50 questions
Oracle AI Agents اسئلة واجوبة المقابلات - Total 50 questions
Artificial Intelligence (AI) اسئلة واجوبة المقابلات - Total 47 questions
Machine Learning اسئلة واجوبة المقابلات - Total 30 questions
Google Cloud AI اسئلة واجوبة المقابلات - Total 30 questions
IBM Watson اسئلة واجوبة المقابلات - Total 30 questions
Perplexity AI اسئلة واجوبة المقابلات - Total 40 questions
ChatGPT اسئلة واجوبة المقابلات - Total 20 questions
NLP اسئلة واجوبة المقابلات - Total 30 questions
AI Agents (Agentic AI) اسئلة واجوبة المقابلات - Total 50 questions
OpenCV اسئلة واجوبة المقابلات - Total 36 questions
Amazon SageMaker اسئلة واجوبة المقابلات - Total 30 questions
C++ اسئلة واجوبة المقابلات - Total 142 questions
VBA اسئلة واجوبة المقابلات - Total 30 questions
COBOL اسئلة واجوبة المقابلات - Total 50 questions
R Language اسئلة واجوبة المقابلات - Total 30 questions
Python Coding اسئلة واجوبة المقابلات - Total 20 questions
Scala اسئلة واجوبة المقابلات - Total 48 questions
Swift اسئلة واجوبة المقابلات - Total 49 questions
Golang اسئلة واجوبة المقابلات - Total 30 questions
Embedded C اسئلة واجوبة المقابلات - Total 30 questions
CCNA اسئلة واجوبة المقابلات - Total 40 questions
ServiceNow اسئلة واجوبة المقابلات - Total 30 questions
Snowflake اسئلة واجوبة المقابلات - Total 30 questions
Oracle APEX اسئلة واجوبة المقابلات - Total 23 questions
Oracle Cloud Infrastructure (OCI) اسئلة واجوبة المقابلات - Total 100 questions
AWS اسئلة واجوبة المقابلات - Total 87 questions
Microsoft Azure اسئلة واجوبة المقابلات - Total 35 questions
Azure Data Factory اسئلة واجوبة المقابلات - Total 30 questions
OpenStack اسئلة واجوبة المقابلات - Total 30 questions
DPDP اسئلة واجوبة المقابلات - Total 30 questions
PIPEDA اسئلة واجوبة المقابلات - Total 20 questions
GDPR اسئلة واجوبة المقابلات - Total 30 questions
CCPA اسئلة واجوبة المقابلات - Total 20 questions
HITRUST اسئلة واجوبة المقابلات - Total 20 questions
LGPD اسئلة واجوبة المقابلات - Total 20 questions
PDPA اسئلة واجوبة المقابلات - Total 20 questions
OSHA اسئلة واجوبة المقابلات - Total 20 questions
HIPPA اسئلة واجوبة المقابلات - Total 20 questions
PHIPA اسئلة واجوبة المقابلات - Total 20 questions
FERPA اسئلة واجوبة المقابلات - Total 20 questions
Operating System اسئلة واجوبة المقابلات - Total 22 questions
MS Word اسئلة واجوبة المقابلات - Total 50 questions
Tips and Tricks اسئلة واجوبة المقابلات - Total 30 questions
PoowerPoint اسئلة واجوبة المقابلات - Total 50 questions
Data Structures اسئلة واجوبة المقابلات - Total 49 questions
Computer Networking اسئلة واجوبة المقابلات - Total 65 questions
Microsoft Excel اسئلة واجوبة المقابلات - Total 37 questions
Computer Basics اسئلة واجوبة المقابلات - Total 62 questions
Computer Science اسئلة واجوبة المقابلات - Total 50 questions
Python اسئلة واجوبة المقابلات - Total 106 questions
Python Pandas اسئلة واجوبة المقابلات - Total 48 questions
Python Matplotlib اسئلة واجوبة المقابلات - Total 30 questions
Django اسئلة واجوبة المقابلات - Total 50 questions
Pandas اسئلة واجوبة المقابلات - Total 30 questions
Deep Learning اسئلة واجوبة المقابلات - Total 29 questions
Flask اسئلة واجوبة المقابلات - Total 40 questions
PySpark اسئلة واجوبة المقابلات - Total 30 questions
PyTorch اسئلة واجوبة المقابلات - Total 25 questions
Data Science اسئلة واجوبة المقابلات - Total 23 questions
SciPy اسئلة واجوبة المقابلات - Total 30 questions
Generative AI اسئلة واجوبة المقابلات - Total 30 questions
NumPy اسئلة واجوبة المقابلات - Total 30 questions
Elasticsearch اسئلة واجوبة المقابلات - Total 61 questions
Data Mining اسئلة واجوبة المقابلات - Total 30 questions
Oracle اسئلة واجوبة المقابلات - Total 34 questions
MongoDB اسئلة واجوبة المقابلات - Total 27 questions
AWS DynamoDB اسئلة واجوبة المقابلات - Total 46 questions
Entity Framework اسئلة واجوبة المقابلات - Total 46 questions
Redis Cache اسئلة واجوبة المقابلات - Total 20 questions
MySQL اسئلة واجوبة المقابلات - Total 108 questions
Data Modeling اسئلة واجوبة المقابلات - Total 30 questions
MariaDB اسئلة واجوبة المقابلات - Total 40 questions
DBMS اسئلة واجوبة المقابلات - Total 73 questions
Apache Hive اسئلة واجوبة المقابلات - Total 30 questions
PostgreSQL اسئلة واجوبة المقابلات - Total 30 questions
SSIS اسئلة واجوبة المقابلات - Total 30 questions
SQL Query اسئلة واجوبة المقابلات - Total 70 questions
SQLite اسئلة واجوبة المقابلات - Total 53 questions
Teradata اسئلة واجوبة المقابلات - Total 20 questions
Cassandra اسئلة واجوبة المقابلات - Total 25 questions
Neo4j اسئلة واجوبة المقابلات - Total 44 questions
MSSQL اسئلة واجوبة المقابلات - Total 50 questions
OrientDB اسئلة واجوبة المقابلات - Total 46 questions
Data Warehouse اسئلة واجوبة المقابلات - Total 20 questions
SQL اسئلة واجوبة المقابلات - Total 152 questions
IBM DB2 اسئلة واجوبة المقابلات - Total 40 questions
Verilog اسئلة واجوبة المقابلات - Total 30 questions
Software Engineering اسئلة واجوبة المقابلات - Total 27 questions
MATLAB اسئلة واجوبة المقابلات - Total 25 questions
Digital Electronics اسئلة واجوبة المقابلات - Total 38 questions
VLSI اسئلة واجوبة المقابلات - Total 30 questions
Civil Engineering اسئلة واجوبة المقابلات - Total 30 questions
Electrical Machines اسئلة واجوبة المقابلات - Total 29 questions
Data Engineer اسئلة واجوبة المقابلات - Total 30 questions
Robotics اسئلة واجوبة المقابلات - Total 28 questions
AutoCAD اسئلة واجوبة المقابلات - Total 30 questions
Power System اسئلة واجوبة المقابلات - Total 28 questions
Electrical Engineering اسئلة واجوبة المقابلات - Total 30 questions
TIBCO اسئلة واجوبة المقابلات - Total 30 questions
Informatica اسئلة واجوبة المقابلات - Total 48 questions
Oracle CXUnity اسئلة واجوبة المقابلات - Total 29 questions
Web Services اسئلة واجوبة المقابلات - Total 10 questions
Salesforce Lightning اسئلة واجوبة المقابلات - Total 30 questions
IBM Integration Bus اسئلة واجوبة المقابلات - Total 30 questions
Power BI اسئلة واجوبة المقابلات - Total 24 questions
OIC اسئلة واجوبة المقابلات - Total 30 questions
Web API اسئلة واجوبة المقابلات - Total 31 questions
Dell Boomi اسئلة واجوبة المقابلات - Total 30 questions
IBM DataStage اسئلة واجوبة المقابلات - Total 20 questions
Talend اسئلة واجوبة المقابلات - Total 34 questions
Salesforce اسئلة واجوبة المقابلات - Total 57 questions
Java 17 اسئلة واجوبة المقابلات - Total 20 questions
Servlets اسئلة واجوبة المقابلات - Total 34 questions
Kotlin اسئلة واجوبة المقابلات - Total 30 questions
EJB اسئلة واجوبة المقابلات - Total 80 questions
Java Beans اسئلة واجوبة المقابلات - Total 57 questions
Java Exception Handling اسئلة واجوبة المقابلات - Total 30 questions
Spring Boot اسئلة واجوبة المقابلات - Total 50 questions
Java 15 اسئلة واجوبة المقابلات - Total 16 questions
Core Java اسئلة واجوبة المقابلات - Total 306 questions
Java Multithreading اسئلة واجوبة المقابلات - Total 30 questions
Apache Wicket اسئلة واجوبة المقابلات - Total 26 questions
JBoss اسئلة واجوبة المقابلات - Total 14 questions
Log4j اسئلة واجوبة المقابلات - Total 35 questions
Java Mail اسئلة واجوبة المقابلات - Total 27 questions
Java Applet اسئلة واجوبة المقابلات - Total 29 questions
Java 21 اسئلة واجوبة المقابلات - Total 21 questions
Google Gson اسئلة واجوبة المقابلات - Total 8 questions
Struts اسئلة واجوبة المقابلات - Total 84 questions
RMI اسئلة واجوبة المقابلات - Total 31 questions
Java Support اسئلة واجوبة المقابلات - Total 30 questions
Apache Camel اسئلة واجوبة المقابلات - Total 20 questions
JAXB اسئلة واجوبة المقابلات - Total 18 questions
JSP اسئلة واجوبة المقابلات - Total 49 questions
Java Concurrency اسئلة واجوبة المقابلات - Total 30 questions
J2EE اسئلة واجوبة المقابلات - Total 25 questions
JUnit اسئلة واجوبة المقابلات - Total 24 questions
Java OOPs اسئلة واجوبة المقابلات - Total 30 questions
Apache Tapestry اسئلة واجوبة المقابلات - Total 9 questions
Java 11 اسئلة واجوبة المقابلات - Total 24 questions
JDBC اسئلة واجوبة المقابلات - Total 27 questions
Java Garbage Collection اسئلة واجوبة المقابلات - Total 30 questions
Spring Framework اسئلة واجوبة المقابلات - Total 53 questions
Java Swing اسئلة واجوبة المقابلات - Total 27 questions
Java Design Patterns اسئلة واجوبة المقابلات - Total 15 questions
JPA اسئلة واجوبة المقابلات - Total 41 questions
Hibernate اسئلة واجوبة المقابلات - Total 52 questions
JMS اسئلة واجوبة المقابلات - Total 64 questions
JSF اسئلة واجوبة المقابلات - Total 24 questions
Java 8 اسئلة واجوبة المقابلات - Total 30 questions
Tally اسئلة واجوبة المقابلات - Total 30 questions
Pega اسئلة واجوبة المقابلات - Total 30 questions
ITIL اسئلة واجوبة المقابلات - Total 25 questions
Finance اسئلة واجوبة المقابلات - Total 30 questions
SAP MM اسئلة واجوبة المقابلات - Total 30 questions
JIRA اسئلة واجوبة المقابلات - Total 30 questions
SAP ABAP اسئلة واجوبة المقابلات - Total 24 questions
SCCM اسئلة واجوبة المقابلات - Total 30 questions
Xamarin اسئلة واجوبة المقابلات - Total 31 questions
iOS اسئلة واجوبة المقابلات - Total 52 questions
Ionic اسئلة واجوبة المقابلات - Total 32 questions
Android اسئلة واجوبة المقابلات - Total 14 questions
Mobile Computing اسئلة واجوبة المقابلات - Total 20 questions
Cryptography اسئلة واجوبة المقابلات - Total 40 questions
RPA اسئلة واجوبة المقابلات - Total 26 questions
Interview Tips اسئلة واجوبة المقابلات - Total 30 questions
College Teachers اسئلة واجوبة المقابلات - Total 30 questions
SDLC اسئلة واجوبة المقابلات - Total 75 questions
Blue Prism اسئلة واجوبة المقابلات - Total 20 questions
Memcached اسئلة واجوبة المقابلات - Total 28 questions
GIT اسئلة واجوبة المقابلات - Total 30 questions
Business Analyst اسئلة واجوبة المقابلات - Total 40 questions
Splunk اسئلة واجوبة المقابلات - Total 30 questions
DevOps اسئلة واجوبة المقابلات - Total 45 questions
Accounting اسئلة واجوبة المقابلات - Total 30 questions
SSB اسئلة واجوبة المقابلات - Total 30 questions
Algorithm اسئلة واجوبة المقابلات - Total 50 questions
OSPF اسئلة واجوبة المقابلات - Total 30 questions
Sqoop اسئلة واجوبة المقابلات - Total 30 questions
JSON اسئلة واجوبة المقابلات - Total 16 questions
Computer Graphics اسئلة واجوبة المقابلات - Total 25 questions
IoT اسئلة واجوبة المقابلات - Total 30 questions
Insurance اسئلة واجوبة المقابلات - Total 30 questions
Scrum Master اسئلة واجوبة المقابلات - Total 30 questions
Accounts Payable اسئلة واجوبة المقابلات - Total 30 questions
XML اسئلة واجوبة المقابلات - Total 25 questions
GraphQL اسئلة واجوبة المقابلات - Total 32 questions
Bitcoin اسئلة واجوبة المقابلات - Total 30 questions
Active Directory اسئلة واجوبة المقابلات - Total 30 questions
Laravel اسئلة واجوبة المقابلات - Total 30 questions
Tableau اسئلة واجوبة المقابلات - Total 20 questions
Adobe AEM اسئلة واجوبة المقابلات - Total 50 questions
Kubernetes اسئلة واجوبة المقابلات - Total 30 questions
Microservices اسئلة واجوبة المقابلات - Total 30 questions
Apache Kafka اسئلة واجوبة المقابلات - Total 38 questions
Fashion Designer اسئلة واجوبة المقابلات - Total 20 questions
Desktop Support اسئلة واجوبة المقابلات - Total 30 questions
IAS اسئلة واجوبة المقابلات - Total 56 questions
PHP OOPs اسئلة واجوبة المقابلات - Total 30 questions
OOPs اسئلة واجوبة المقابلات - Total 30 questions
Linked List اسئلة واجوبة المقابلات - Total 15 questions
Dynamic Programming اسئلة واجوبة المقابلات - Total 30 questions
SharePoint اسئلة واجوبة المقابلات - Total 28 questions
CICS اسئلة واجوبة المقابلات - Total 30 questions
Yoga Teachers Training اسئلة واجوبة المقابلات - Total 30 questions
Nursing اسئلة واجوبة المقابلات - Total 40 questions
Language in C اسئلة واجوبة المقابلات - Total 80 questions
Behavioral اسئلة واجوبة المقابلات - Total 29 questions
School Teachers اسئلة واجوبة المقابلات - Total 25 questions
Statistics اسئلة واجوبة المقابلات - Total 30 questions
Digital Marketing اسئلة واجوبة المقابلات - Total 40 questions
Apache Spark اسئلة واجوبة المقابلات - Total 24 questions
Full-Stack Developer اسئلة واجوبة المقابلات - Total 60 questions
IIS اسئلة واجوبة المقابلات - Total 30 questions
System Design اسئلة واجوبة المقابلات - Total 30 questions
VISA اسئلة واجوبة المقابلات - Total 30 questions
SEO اسئلة واجوبة المقابلات - Total 51 questions
Google Analytics اسئلة واجوبة المقابلات - Total 30 questions
Cloud Computing اسئلة واجوبة المقابلات - Total 42 questions
BPO اسئلة واجوبة المقابلات - Total 48 questions
ANT اسئلة واجوبة المقابلات - Total 10 questions
HR Questions اسئلة واجوبة المقابلات - Total 49 questions
REST API اسئلة واجوبة المقابلات - Total 52 questions
Content Writer اسئلة واجوبة المقابلات - Total 30 questions
SAS اسئلة واجوبة المقابلات - Total 24 questions
Control System اسئلة واجوبة المقابلات - Total 28 questions
Agile Methodology اسئلة واجوبة المقابلات - Total 30 questions
Hadoop اسئلة واجوبة المقابلات - Total 40 questions
Banking اسئلة واجوبة المقابلات - Total 20 questions
Checkpoint اسئلة واجوبة المقابلات - Total 20 questions
Blockchain اسئلة واجوبة المقابلات - Total 29 questions
Technical Support اسئلة واجوبة المقابلات - Total 30 questions
Mainframe اسئلة واجوبة المقابلات - Total 20 questions
Nature اسئلة واجوبة المقابلات - Total 20 questions
Chemistry اسئلة واجوبة المقابلات - Total 50 questions
Docker اسئلة واجوبة المقابلات - Total 30 questions
Sales اسئلة واجوبة المقابلات - Total 30 questions
Knockout JS اسئلة واجوبة المقابلات - Total 25 questions
TypeScript اسئلة واجوبة المقابلات - Total 38 questions
PowerShell اسئلة واجوبة المقابلات - Total 27 questions
Terraform اسئلة واجوبة المقابلات - Total 30 questions
JCL اسئلة واجوبة المقابلات - Total 20 questions
JavaScript اسئلة واجوبة المقابلات - Total 59 questions
Ajax اسئلة واجوبة المقابلات - Total 58 questions
Express.js اسئلة واجوبة المقابلات - Total 30 questions
Ansible اسئلة واجوبة المقابلات - Total 30 questions
ES6 اسئلة واجوبة المقابلات - Total 30 questions
Electron.js اسئلة واجوبة المقابلات - Total 24 questions
RxJS اسئلة واجوبة المقابلات - Total 29 questions
NodeJS اسئلة واجوبة المقابلات - Total 30 questions
jQuery اسئلة واجوبة المقابلات - Total 22 questions
Vue.js اسئلة واجوبة المقابلات - Total 30 questions
ExtJS اسئلة واجوبة المقابلات - Total 50 questions
Svelte.js اسئلة واجوبة المقابلات - Total 30 questions
Shell Scripting اسئلة واجوبة المقابلات - Total 50 questions
Next.js اسئلة واجوبة المقابلات - Total 30 questions
BGP اسئلة واجوبة المقابلات - Total 30 questions
Ethical Hacking اسئلة واجوبة المقابلات - Total 40 questions
Cyber Security اسئلة واجوبة المقابلات - Total 50 questions
PII اسئلة واجوبة المقابلات - Total 30 questions
Data Protection Act اسئلة واجوبة المقابلات - Total 20 questions
Unix اسئلة واجوبة المقابلات - Total 105 questions
Weblogic اسئلة واجوبة المقابلات - Total 30 questions
Tomcat اسئلة واجوبة المقابلات - Total 16 questions
Glassfish اسئلة واجوبة المقابلات - Total 8 questions
Ubuntu اسئلة واجوبة المقابلات - Total 30 questions
Linux اسئلة واجوبة المقابلات - Total 43 questions
ETL Testing اسئلة واجوبة المقابلات - Total 20 questions
QTP اسئلة واجوبة المقابلات - Total 44 questions
Cucumber اسئلة واجوبة المقابلات - Total 30 questions
Postman اسئلة واجوبة المقابلات - Total 30 questions
TestNG اسئلة واجوبة المقابلات - Total 38 questions
SDET اسئلة واجوبة المقابلات - Total 30 questions
Selenium اسئلة واجوبة المقابلات - Total 40 questions
Kali Linux اسئلة واجوبة المقابلات - Total 29 questions
Mobile Testing اسئلة واجوبة المقابلات - Total 30 questions
UiPath اسئلة واجوبة المقابلات - Total 38 questions
Quality Assurance اسئلة واجوبة المقابلات - Total 56 questions
API Testing اسئلة واجوبة المقابلات - Total 30 questions
Appium اسئلة واجوبة المقابلات - Total 30 questions
Symfony اسئلة واجوبة المقابلات - Total 30 questions
GWT اسئلة واجوبة المقابلات - Total 27 questions
CSS اسئلة واجوبة المقابلات - Total 74 questions
Ruby On Rails اسئلة واجوبة المقابلات - Total 74 questions
Yii اسئلة واجوبة المقابلات - Total 30 questions
Angular اسئلة واجوبة المقابلات - Total 50 questions
PHP اسئلة واجوبة المقابلات - Total 27 questions
Oracle JET(OJET) اسئلة واجوبة المقابلات - Total 54 questions
Frontend Developer اسئلة واجوبة المقابلات - Total 30 questions
Zend Framework اسئلة واجوبة المقابلات - Total 24 questions
RichFaces اسئلة واجوبة المقابلات - Total 26 questions
HTML اسئلة واجوبة المقابلات - Total 27 questions
Flutter اسئلة واجوبة المقابلات - Total 25 questions
CakePHP اسئلة واجوبة المقابلات - Total 30 questions
React اسئلة واجوبة المقابلات - Total 40 questions
React Native اسئلة واجوبة المقابلات - Total 26 questions
Web Developer اسئلة واجوبة المقابلات - Total 50 questions
Angular 8 اسئلة واجوبة المقابلات - Total 32 questions
Angular JS اسئلة واجوبة المقابلات - Total 21 questions
Dojo اسئلة واجوبة المقابلات - Total 23 questions
حقوق النشر © 2026، WithoutBook.