Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?
7 11027If your team member writes code with lots of static variables and static methods, will it cause any side effects?
KPIT,
3 7411If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why?
KPIT,
5 8697I have a Person object with 5 variables and I want to store them in a file called Person.txt. What should I do?
KPIT,
3 6738There is a Banking application. It has 2 types of account, Savings and Current. Write a method calculateInterest by passing an ArrayList of these account objects and calculate Interest accordingly. Write code for this situation
1 3447There are 2 methods in a class. Both have the same method signature except for return types. Is this overloading or overriding or what is it?
KPIT,
9 13442There are 2 classes, 1 LandAnimal and another WaterAnimal. There is another class Animal which wants to have the properties of both LandAnimal and WaterAnimal. How will you design this situation?
KPIT,
6 10554I have a String s = java; What is the output when I say s.replaceAll('j', 'k'); Also what is the value of s after replacing?
KPIT,
8 11499
How listener identify that the event came from a particular object?
How to use arraylist in java netbeans?
What is an object in java?
Can I uninstall java?
What is a buffer in java?
How do you start a new line in java?
What is default locale java?
what is the difference between process and thread? : Java thread
Can we use String with switch case?
How do you decide when to use arraylist and linkedlist?
What is the difference between serial and throughput garbage collector?
Can interface be private in java?
What is synchronization and why is it important in java programming?
List types of storage classes in java?
What is a vector in java?