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 9911If your team member writes code with lots of static variables and static methods, will it cause any side effects?
KPIT,
3 6641If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why?
KPIT,
5 7612I 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 6047There 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 2928There 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 11898There 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 9447I 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 10047
What is method overloading in java ?
What are the classes of java?
What is an example of a boolean?
Why is a singleton bad?
Is 64bit faster than 32 bit?
What is a super method?
How many types of design patterns are there?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
Explain the differences between static and dynamic variables?
What does next mean in java?
how come we know the object is no more used in the class?
Can we override private method?
write a program that list all permutations of ABCDEF in which A appears before B?
What is map and hashmap in java?
How do I get the | symbol on my keyboard?