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.
Operating System Questions and Answers Pdf More
SQL Multiple Choice Questions with Answers Pdf More
Advanced SQL MCQ (Multiple Choice) Questions and Answers Pdf More
DBMS Question Paper with Answers Pdf More
Database Management System Pdf Class 10 More
1000+ Reading Comprehension Passages for Competitive Exams Pdf More
1000+ Objective Computer Awareness for Bank Exams 2023 - 2024 Pdf More
Metallurgy Engineering Iron Making, Steel Making MCQ Questions More
1000+ Number Puzzles Online Test Questions & Answers More
1000+ English Grammar Objective Questions and Answers More