Tip 1 : Start your preparation from 2nd year itself and make sure you put all your projects in GitHub.
Tip 2 : Prepare atleast one programming language thoroughly.
Tip 3 : Practice Mock interview questions in codechef and Leetcode on daily basis
Tip 1: Put only what you know in resume
Tip 2: put some projects so that you can speak about those confidently



1. The array consists of only 3 distinct integers 0, 1, 2.
2. The array is non-empty.
The program starts by declaring an integer arraya of size 100 and variables n (for the size of the array), i and j (for loop iteration), and temp (to store temporary values during sorting).
The user is prompted to enter the size of the array, which is stored in the variable n. The program then uses a for loop to prompt the user to enter values for each element in the array, which are stored in the array a.
The program then uses nested for loops to iterate over each element in the array a and compare it with every other element in the array. If an element is greater than the element it is being compared to, the two elements are swapped. This process continues until the entire array is sorted in ascending order.
Finally, the program prints the sorted array using another for loop.
In the below snippet code, Is m1() correctly overridden in the subclasses of class X?
public class One
{
void m1()
{
}
}
public class Two extends One
{
@Override
protected void m1()
{
System.out.println("m1-Two");
}
}
public class Three extends Two
{
@Override
public void m1()
{
System.out.println("m1-Three");
}
}
Ans: Yes
m1() method is correctly overridden in the subclasses of class X.
We were a batch of 10 folks. And it was afternoon. We were said to speak on Mobile Phone Application and it's threat to Cuber Security. I spoke on Pro's to it.
Mobile Phone Application and it's threat to Cuber Security
The interview was on Google meet and lasted for 1 hour
package overridingPrograms;
public class X
{
void draw(int a, float b) throws Throwable
{
System.out.println("Circle");
}
}
public class Y extends X
{
@Override
void draw(int a, float b)
{
System.out.println("Rectangle");
}
}
public class Z extends Y
{
@Override
void draw(int a, float b) throws ArithmeticException
{
System.out.println("Square");
}
}
public class Test
{
public static void main(String[] args) throws Throwable
{
X x = new Y();
x.draw(20, 30.5f);
Y y = (Y)x;
y.draw(10,2.9f);
Z z = (Z)y;
z.draw(20, 30f);
}
}
x.draw(20,30.5f); will call draw method of class Y because the reference variable is pointing to the objects of class Y. Therefore, the output is “Rectangle”.
2. When the statement Y y = (Y)x; will be executed, JVM will perform downcasting. When the reference variable of child class refers to the object of a parent class, it is known as downcasting.
Here, the reference variable y is pointing to the reference x of the parent class X but x is pointing to the objects of Class Y. So, y is pointing to the objects of class Y. Therefore, y.draw(10, 2.9f); will call draw method of class Y and the output will be “Rectangle”.
3. When the statement Z z = (Z)y; will be executed, JVM will throw ClassCastException because Y cannot be cast to Z.
It was late night
Introduce yourself
Why mphasis
Tell me about your weakness and strength

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?