


Sub Class method call
When the Subclass method is called, does the SuperClass constructor execute? If so, which Constructor executes first (Sub Class OR Super Class) for the given below scenarios?
a. Given that we are NOT inheriting SuperClass constructor?
b. Given that we are inheriting SuperClass constructor? 



Why java is not 100% object oriented language??
i have not ..asked in TCS interview ..if any one have plz answer me on er.anuj.mittal@gmail.com

String Format Expression
In the expression String.format("%2d", 5)
what are the things below, be specific. for example, if the thing is an operator, indicate whether it is binary/unary and whether it is arithmetic/logical/relational. If it is a method, indicate whether its static or not
a. String
b. .
c. format()
d. "%2d" and 5 
What is the difference between inheritance and extends?
I have not mistaken extends for polymorphism or encapsulation or anything else.. my question is correct!!!




Need of Polymorphism
What is need of polymorphism in Java? What could have happen if polymorphism is not present?


What is difference between array & arraylist?
Arraylist is resizable where as using array it is not possible.



Mystique Function
Today we have a special function called Mystique Function.Mystique function for any value x is denoted by H(x). H(x) is defined as the count of positive integers such that (Let k be one of such positive integer)
1) x%k=0
2) for every integer z it satisfies (z^kz)%k=0.
3) k>1
Now given a value x you need to print the sum of H(2)+H(3)+H(4)..H(x). 
Query multiples
You are given an array arr with indices numbered from 1 to N.
You will be given Q queries of the form i X. This query means, consider all arr[i], arr[i+1], .. arr[N] and, among these numbers, output the number of multiples of X.
Input:
First line consists of two integers; N and Q.
Next Q lines consist of one query, as described in the problem statement. 
OOPs Interface
Why interfaces is needed in Java?
Core Java Interview Questions
Ans