Explain how to convert any java object into byte array.
Answer / Puja Rastogi
{"conversion": [n "ObjectOutputStream oos = new ObjectOutputStream(new ByteArrayOutputStream()); oos.writeObject(object); byte[] bytes = oos.toByteArray();"n]}
| Is This Answer Correct ? | 0 Yes | 0 No |
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
Explain the concept of polymorphism with examples?
In treeset we add same object ...what will be the out put
What is object-oriented programming?
What is the Concept of Encapsulation in OOPS
primitive data types in Java ?
When can you say a graph to be a tree?
Give few difference between constructor and method?
In what types of operations an ArithmeticException will be thrown?
Difference between Array and vector?
Are variables stored in ram?
Which sorting is used in arrays sort in java?