What is an object in Java and what are its benefits?
Answer Posted / amit
In Java,The object will have its own state and access to all of the behavior defined by the class.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you clear an arraylist in java?
Can we extend immutable class?
What is meant by main method?
What are the ways in which a thread can enter the waiting state?
What is default constructors?
What is widening and narrowing in java? Discuss with an example.
Difference between comparator and comparable in java?
Can we sort arraylist in java?
What is a for loop in java?
What is Major and importance difference between for and foreach loop ?
what is the significance of listiterator in java?
What is the difference between length and length () in java?
What is the size of integer?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
Can we sort hashset in java?