Top 25+ Java Framework Interview Questions and Answers - 1
Question: 1
What is the resource bundle class?
A resource bundle class is a group of related sub classes which are sharing the same base name.
For example, Button Label is the base name.
All the characters following the base name indicates the following elements respectively.
Question: 2
What is the simple time zone class?
Simple Time Zone is a concrete subclass of Time Zone class.
The Time Zone class represents a time zone that is to be used with Gregorian calendar
Question: 3
What is the advantage of generic collection?
If we use generic class, we don’t need typecasting. It is type safe and checked at compile time.
Question: 4
What is difference between arraylist and vector?
Synchronization : ArrayList is not thread safe whereas Vector is thread safe. In Vector class each method like add(), get(int i) is surrounded with a synchronized block and thus making Vector class thread safe.
Data growth: Internally, both the ArrayList and Vector hold onto their contents using an Array. When an element is inserted into an ArrayList or a Vector, the object will need to expand its internal array if it runs out of room. A Vector defaults to doubling the size of its array, while the ArrayList increases its array size by 50 percent.
Question: 5
What does hashCode() method?
The hashCode() method returns a hash code value (an integer number).
The hashCode() method returns the same integer number. If two keys (by calling equals() method) are same.
But, it is possible that two hash code numbers can have different or same keys.
Data Science and Machine Learning MCQ Pdf More
Robotic Process Automation Question Bank 2026-2027 More
Data Ethics Quiz Questions Pdf More
Power BI MCQ Questions and Answers Pdf More
AI MCQS with Answers Pdf More
100+ Word Processing Quiz Questions & Answers More
Interview Puzzles with Answers Pdf More
Basic Electronics Interview Questions & Answers pdf More
Insurance Companies, Taglines, Headquarters in India More
100+ Decimal Fraction Questions & Answers for Competitive Exams More