
can we write calss A extend StringBuffer?

No you cannot extend.

No we cannot extend our class from java.lang.StringBuffer class because java.lang.StringBuffer class is final class.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.