Computer Science, asked by Vaanika, 1 year ago

plz answer the following :
1.write a statement to raise an ioexception in java.

2. differentiate between string and string buffer.

3. which class is known as 'user defined data type 'and which class is known as 'application '

plz give genuine ans and plz don't give google ans and spams ...

Answers

Answered by manav86
3
1 answer is java.io
2 answer is
diff b/w string and string buffer is that string buffer is mutable means length and other thing were changed nd string is immutable

siddhartharao77: I am having a small doubt. Why u have written java.io?
manav86: io expection is of bufferreader so i wrie buffer reader class
siddhartharao77: The question is raise an ioexception in java.
siddhartharao77: Why it can't be written using try catch blocks?
manav86: then answe is throws ioexpection
manav86: with function
siddhartharao77: Yes.
manav86: ok thanxx
siddhartharao77: She didn't asked to write package statements.
siddhartharao77: OK
Answered by shraddhasayali
1
import java.io*
statement to raise an in exception in java
Similar questions