boolean isBadBoy(boolean hasGirlFriend , boolean isMarried,
int age , String middleName , String lastName , String[]
brotherName);



boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String la..

Answer / Radheshyam Pathak

public boolean isBadBoy(boolean hasGirlFriend, boolean isMarried, int age, String middleName, String lastName, String[] brotherName) {n if (age < 18 || (age >= 18 && !isMarried && hasGirlFriend)) {n return true;n }n if (brotherName != null && brotherName.length > 0) {n for (String brother : brotherName) {n if (brother.equalsIgnoreCase("BAD BOY")) {n return true;n }n }n }n return false;n}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Engineering AllOther Interview Questions

Describe circular polarization?

2 Answers  


what are the simlerities between macro and subroutine

1 Answers   TCS,


Why you shifting job every other year?

1 Answers  


how can i install windows-xp operating system in single time to 50 computersconnected in a LAN.

1 Answers   Bank Of America,


the interviewer ask me If i accept to in lower position than the one i was tested for

2 Answers  


i need NIC written test paper or give me any idea about written exam.Plz send me at smileever8@gmail.com

0 Answers   NIC,


Tell me about your parents?? Pls share any one best words...

1 Answers   HGS, Hinduja,


tell about ur self

3 Answers   American Megatrends, CTS,


is java supprot the complier time pollymorphism or run time pollymorphism ... why

1 Answers   HCL,


How would you design a gravity dam for holding back water?

1 Answers  


how to connect oracle with java ? Give detail explanation.

1 Answers   Bata,


What is the difference between while & do while loop

1 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4453)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)