Technical Interview Questions and Answers :: Sopra Steria
- Select All
- SQL
- Java
- C++
- Informatica
- C
- DBMS
- Data Structure
- HR Question in TR
- Static binding happens at compile-time while dynamic binding happens at runtime.
- Binding of private, static and final methods always happen at compile time since these methods cannot be overridden. Binding of overridden methods happens at runtime.
- Java uses static binding for overloaded methods and dynamic binding for overridden methods.
91 / 138
Map contains values on the bais of keys.
Keys= value key.
These keys are known as entry.
HasMap classes implements the Map interface by using Hash Table.
92 / 138
StringBuffer has same objects as StringBuilder, but each method in StringBuffer is synchronized,i.e., it's thread safe. That's why StringBuilder is faster than StringBuffer.
93 / 138
Singleton class is a design pattern where it allowes creating only one object per class
we should define constructor as private it object creation is restricted
we should use static method this method is returen object of same class only
94 / 138
Multiple inheritence is not supported in Java because of ambuiguity that it causes.
95 / 138
Object cloning, clone() is the method available in Java for object duplication. In java, assignment operator only copies the reference and not the object. clone() is used for this.
96 / 138
An exception is a problem that arisesduring excecution. Checked exceptions are the exceptions that gets checked at the compile time. Unchecked exceptions are not checked at compile time, in Java all exceptions are unchecked exceptions.
97 / 138
For numbers primitive data types are used normally, such as byte, int, long, double etc. But in programming, objects are sometimes required rather than primitive data types. For this, wrapper classes are available in Java.
98 / 138
The difference between static and dynamic binding in Java.
99 / 138
No, java vannot run on 1MB RAM machine. The harware requirement is 128MB RAM.
100 / 138
Java Virtual Machine(JVM) is what makes Java platform independent. A compiled java code creates a .class file which can then be run on any platform which has JVM installed on it.