A class can be a subclass of itself?
Answers were Sorted based on User's Feedback
Answer / vishal
No. Each class in Java is subclass of "Object" class
| Is This Answer Correct ? | 9 Yes | 5 No |
7) Suppose there is Student class like class student { int age; string name; } We want to store these objects in a HashMap. Do we need to override any methods in Student class? If any which ones and why? what if i just override equals or just hashcode? what will be the results in both the cases?
int a=1; float b=1.0; System.out.println(a==b);
13 Answers CTS, Honeywell, McAfee,
How are Java source code files named?
How many types of flags are there?
What is meant by class loader? How many types are there? When will we use them?
Can we call the Thread.sleep in Synchyronozed block?
What is the main purpose of serialization in java?
Is string is a data type?
What is lambda in java?
When to use runnable interface vs thread class in java?
What is a instance variable in java?
What do you mean by composition in java?