Java Interview Questions and Answers for Freshers Pdf - 3
Question: 11
Immutable objects are automatically thread-safe?
True. Since the state of the immutable objects cannot be changed once they are created they are automatically synchronized/thread-safe.
Question: 12
What is method overloading and method overriding?
When a method in a class having the same method name with different arguments is said to be method overloading.
When a method in a class having the same method name with same arguments is said to be method overriding.
Question: 13
Does Java provide any construct to find out the size of an object?
No there is not sizeof operator in Java. So there is not direct way to determine the size of an object directly in Java.
Question: 14
What is protected?
It can be accessed in the same class, sub class of the same package but not other side of that package.
Question: 15
What is recursive?
A method that calls itself is said to be recursive.
- Java Interview Questions and Answers
- Top 1000+ Java Interview Questions and Answers Pdf
- Top 500+ Advanced Java Interview Questions 2020-2021
- Java Interview Questions and Answers for Freshers Pdf
- Java Interview Questions and Answers for Experienced Pdf
- Java Programming Basics Interview Questions
- Java OOPS Interview Questions for 3 years experienced
- Basic Java Programs Asked in Interview with Answers Pdf
- Java Programming Interview Questions and Answers
- C | C++ | Java Interview Questions and Answers
DC Generator Questions and Answers Pdf More
Electromagnetic Induction Quiz Questions and Answers More
Basic Electronics Quiz Questions with Answers Pdf More
Wireless Communication MCQ Questions with Answers More
Digital Communication Quiz Questions and Answers Pdf More
Top 10,000+ World GK Quiz Questions and Answers 2020-2021 More
Previous 10 Years Question Papers with Answers for TRB Science More
Computer Instructor Previous Year Question Papers More
1000+ Permutations and Combinations Questions and Answers More
+100 Missing Number Problems for Bank Exams More