How many methods does cloneable interface contains?
Answer Posted / ram
@Dhinesz :
First of all, a marker interface is an interface by implementing that interface the class will get special behaviour. And it doesn't mean that, marker interface always not have any methods. Ex: Runnable interface is a marker interface and it has run().
Clone() method is a part of Object class, and if you implement cloneable interface for your class, it will force you to override the clone().
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is module in project?
What is the integer of 16?
What is the purpose of the strictfp keyword?
What is the default value of an object reference declared as an instance variable?
Is java owned by oracle?
Describe the term diamond problem.
Explain parallel processing in java8?
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.
Is it possible to compare various strings with the help of == operator?
How do you download stubs from Remote place?
What do you understand by an io stream?
Why super is first line in java?
What does arrays sort do in java?
what is abstract class in Java?
How to compare strings in java?