RBS Java Interview Questions

Today I am sharing the first round of the RBS Interview questions.

They want Java Candidate to be exceptionally good in Multithreading, concurrency, and Data Structure. Before attending the interview, please make sure you have gone through with the root level basics and know internal of java collections. They only want you to know internal of Java working .like how the object is created in Java.

These are basics but all they wanted you to know first the basics.

Check these sample questions and try to solve this.

1) What is Diamond Problem in Java

2) why multiple inheritances is not in Java

3) what is polymorphism and how it is done in Java

4) what is overloading and overriding

5) how do you specify the method is overloaded and what and all parameter you will add to achieve method overloading.

6) what is overriding

7) Check the code and answer the questions related.

class A
{
public void draw()
{
sop(“Draw”);
}
}

class B extends A{

public void draw()
{
sop(“Draw in B”);
}

public void draw( int a)
{
sop(“Draw in B”+ a);
}

public static void main(String args[])
{
B b=new A();
b.Draw();
}
}
what will be the output?

8) what are an association, aggregation, and composition

9)class a
{
public void draw()
{
sop(“Draw”);
}
}

class B extends A{

public void draw()
{
sop(“Draw in B”);
}

public void draw( int a)
{
sop(“Draw in B”+ a);
}

which method is overridden in the above code.

10) difference between Final, finally, and finalized

11)how can be achieved singleton?

how can you make sure that your application has the single object?

12) singleton will break in a multithreaded application, how can you make sure that singleton will work on multithreading application.

13) how can you use singleton in serialization scenario. when we serialize the object and again when we use deserialize we will get the different object. (problem). how can you make sure the singleton behavior is intact. (read resolve method)

14) what is serialization and how it works

15) What form of the object you are passing through the network.

16) Sort employee class based on salary(comparable and comparator)

17) what is the structure of struts 2

18) Difference between array and ArrayList

19) how Map works in the background.

20)what will be the size of the map. for which it will be calculating the hash code. we have not implemented the hashcode of equals)

21) Database: how will you find the 3rd row in salary.

22) what is view

23) what are indexes

24) why we are using a stored procedure and what is the use of this.

25) where we will be using “having” clause.

26) Hibernate(JPA) I have an employee object and in the background, I have a department table and one employee can have multiple departments. so how will you map your entity classes?
(one to many) . what is the syntax you use?

27) Difference between private, public, protected and default

28) how the object is created. where does the object go in the below scenario?

String s1=”employee” – what will happen, where S1 will go and where “employee” will go.

29) What is of string pool.

30) Reference Variable (S1 will go into Heap)

31) how GC works in java

32) how GC knows that the object is not in used.

33) difference between WAR and JAR.

34) have you worked on the thread? , what is the lifecycle of a thread

35) how you create the thread.

36) what you do in the thread class.

37) how many threads will be there in the run class.

38) have you encounter any problem working with thread.

 

So friend Today I have shared RBS Java First Round interview questions.Do not forget to share it with your friends, the Sharing Button is above and below the post.

 

Keep Sharing, Because Sharing Caring 🙂 

 

Apart from this, if there is any problem in the intermediate, do not hesitate to ask in the Comment Box. If you want, you can send your question to our email at glorioustechno@gmail.com.

We will be happy to assist you.

I will continue to write more and more related to this, so do not forget to make our blog “glorioustechno.COM” in your mobile or computer (Ctrl + D) and subscribe us to get all the posts in your email. If you like this post, do not forget to share it with your friends.

You can help us reach out to more people by sharing it on social networking sites such as Facebook or Twitter. Thanks!

 

Leave a Reply

Your email address will not be published. Required fields are marked *