| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| how exactly garbage collection take place?
| | 4 |
| How will you override default serialization mechanism in java | | 1 |
| By what default value is an object reference declared as an
instance variable? | Wipro | 1 |
| System.out.println(101/14)
what is the output?
a)6
b)14
c)7.14
d)0 | Accenture | 6 |
| What is user defined exception? | | 4 |
| What is Collection interface? | Zensar | 1 |
| What are the advantages of the model over the event-
inheritance model? | | 1 |
| printstream class method println() is calling using System
class and its static object out .how it is explain any one
in detail with example ? | TCS | 1 |
| What is a stream? what are the different types and classes
of Streams? | | 2 |
| What happens when a main method is declared as private? | Sun-Microsystems | 8 |
| why the abstract class has default constructor? | | 1 |
| Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang> | Symphony | 6 |
|
I have a sorting issue with a Hashmap. My constraint is that
I MUST use the Hashmap and work with existing code. I do a
database query and place the results in a Hashmap. When I
iterate thru the Hashmap, it loses the original alphabetical
sorting done by the database. So, my problem is that I must
sort the results coming out of the Hashmap which is then
placed into another class.
| | 1 |
| Can you explain the difference b/n abtract and interface
with a good example,?In what cases we have use abtract and
what case interface? | Satyam | 1 |
| what is sendredirect? | TCS | 3 |
| What is the specification of ?CODEBASE? in an applet? | | 1 |
| What JNDI(Java Naming and Directory Interface) provides? | | 4 |
| how can you retrive information from database by using
hashmap/arraylist ,plz explain with example briefly? | Satyam | 1 |
| can u give one sinario when you use Abstract Class and When
you use Interface. | ITC-Infotech | 5 |
| Which Math method is used to calculate the absolute value of
a number? | Accenture | 3 |
| |
| For more Core Java Interview Questions Click Here |