Popular Articles

Beauty of Kashmir is breathtaking and thus this valley is rightly described as paradise on earth. Carpets of saffron resembling lotus petals are spread
Located in culturally important Bhavnagar district of Gujarat, Alang today is known worldwide for ship dismantling. It is world's largest ship dismantling
The Oracle’s house became crowded. Anxiety spread around the pedestal of the basil plant. Shadows of question-marks hung under the blossomed Golden Shower

Latest Articles

Pradoshapuram is the name of that village. The village has several stories to tell you, especially those praising the glory of traditions. Beautiful twilights
Honey is not only sweet but is also used as medicine for wounds. It is not only a favorite food for bees but also is good food for humans and animals such
The Oracle’s house became crowded. Anxiety spread around the pedestal of the basil plant. Shadows of question-marks hung under the blossomed Golden Shower
John has written the following program which prints the below message.

"I am developer 1
You are developer 2"

public class Main {
public static void main(String[] args){
System.out.println("I am --> "+Programmers.Developer1.getMyName());
System.out.println("You are --> "+Programmers.Developer2.getMyName());
}
}
class Programmers{
static class Developer1{
static String getMyName(){
return "Developer 1";
}
}
    static class Developer2{
static String getMyName(){
return "Developer 2";
}
}
}

requirements has changed and he has to print the below message.

"I am developer 2
You are developer 1"

The specifications/rules are given as below:
1) The solution should be done with minimal changes
2) No modifications are allowed to the Main, Developer1 and Developer2 classes

Try if you can do it. Else watch this space for the answer soon...