Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Given two strings like x=?hello? and y=?open?, remove any
character from string x which is also used in string y,
thus making the result x=?hll?.

Answers were Sorted based on User's Feedback



Given two strings like x=?hello? and y=?open?, remove any character from string x which is also us..

Answer / nisha sharma

class Stringb
{

public static void main(String a[])
{
StringBuffer sb=new StringBuffer("Hello");
StringBuffer sb1=sb.deleteCharAt(1);
StringBuffer sb2=sb1.deleteCharAt(3);
System.out.println(sb2);
}
}

Is This Answer Correct ?    4 Yes 6 No

Given two strings like x=?hello? and y=?open?, remove any character from string x which is also us..

Answer / bijoy kumar baral

Public abstract ClassDemo
{
public static void main(string args[]){
StringBuffer sb1= new stringBuffer("Hello");
StringBuffer sb2= new stringBuffer("open");
stringbuffer a= sb.deletecharacterAt("hello",1);
system.out.println("the value of a:"+a);
stringBuffer x=sb.deletecharacterAt("hllo"3);
system.out.println(x:+"x");
}

Is This Answer Correct ?    1 Yes 4 No

Given two strings like x=?hello? and y=?open?, remove any character from string x which is also us..

Answer / shilpa

x="hello", y="open"
so we have to remove e and o from x, so its hll

Is This Answer Correct ?    0 Yes 8 No

Post New Answer

More OOPS Interview Questions

Give two or more real cenario of virtual function and vertual object

0 Answers   TCS,


diff between Abstract class Interfaces?

4 Answers  


for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)

2 Answers  


what is the difference between containership and inheritence?

1 Answers  


What is the difference between and interface and an abstract class ?

4 Answers   IBM, Infosys, Ness Technologies,


What is abstraction and encapsulation?

0 Answers  


What is design patterns in C++?

2 Answers   Persistent,


Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.

2 Answers  


What is polymorphism and types?

0 Answers  


what are three tenets of object orinted Systems?Why they call like that ? Please answer me. Advance thanks.

2 Answers   Excel,


What is difference between multiple inheritance and multilevel inheritance?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1 Answers  


Categories