• Slider Banner

    Prepare for

    Technical Interview

    Over .1 Million+ Interview Questions for different profiles

    Read More
  • Slider Banner

    Join the

    Programming World

    Learn about top programming languages, tools and frameworks.

    Read More
  • Slider Banner

    Prepare with

    Certification MCQ

    Practice for certification from 1000+ multiple choice questions.

    Read More

Is cyclic inheritance allowed in Java?

Example Code: 

class C extends B
{
    public void m1()
    {
    }
} 

class B extends C
{
    public void m2()
    {
    }
}


Answer: Cyclic inheritance is not possible in java, so the above code is not allowed.

What will be the output of below Java code?

Example Code: 

class C
{
    public void m1()
    { 
    }
}

class  D extends C
{
    public void m2()
    {
    }

    public static void main(String[] args)
    {
        C c = new D();
        c.m2();
    }
}

Output: compile-time error:  The method m2() is undefined for the type C.

What is a Map in Java?

In Java, Map is an interface of Util package which maps unique keys to values. The Map interface is not a subset of the main Collection interface and thus it behaves little different from the other collection types. Below are a few of the characteristics of Map interface: 

  • Map doesn’t contain duplicate keys.
  • Each key can map at max one value.

What is Polymorphism?

Polymorphism is briefly described as "one interface, many implementations". Polymorphism is a characteristic of being able to assign a different meaning or usage to something in different contexts – specifically, to allow an entity such as a variable, a function, or an object to have more than one form. There are two types of polymorphism:

  • Compile time polymorphism
  • Run time polymorphism

Compile time polymorphism is method overloading whereas Runtime time polymorphism is done using inheritance and interface.

What is runtime polymorphism or dynamic method dispatch?

In Java, runtime polymorphism or dynamic method dispatch is a process in which a call to an overridden method is resolved at runtime rather than at compile-time. In this process, an overridden method is called through the reference variable of a superclass. Let's take a look at the example below to understand it better.

class Car 
{
    void run()
    {
        System.out.println(“car is running”); 
    }
}

class Audi extends Car
{
    void run()
    {
        System.out.prinltn(“Audi is running safely with 100km”);
    }
    
    public static void main(String args[])
    {
        Car b = new Audi();    //upcasting
        b.run();
    }
}

What A.I.D.A means in Marketing?

AIDA
It is Marketing process or Principle from getting someone aware to actually purchasing the product.

Where AIDA acronym for Attention, Interest, Desire and Action.

Attention
Who is reading your copy
Demographics- Age range, Gender, Likes, dislikes, on which part they are
What is their Problem and What solution you have

Interest
Build an Argument for your Brand
Tell Story- Telling story to people to engage people and Prove Yourself

Desire
Shift from Interest to wanting your product
Further Demonstrate why you can solve their problems.


Action
Way Provide a call to action for example:Sign Up below, Purchase now, Get the Deal this weekend
Make it easy to purchase, think about design, button and text- To make flow nicely, easier its better to get click on Call to action in fast manner.

Retention
It is Hard to sustain the existing customers as compared to the new customers. Connect with them on social or on mails. 

Subscribe to