It's absolutely #freeofcost
GeeksforGeeks is organizing an 11-week workshop on Data structures and #Algorithms for FREE
isn't it the best thing that happened in 2020 #datastructures
#skill yourself up by enrolling in this wonderful course
Register here: https://practice.geeksforgeeks.org/courses/Workshop-DSA/
invite code: GFGY479GV
Hurry up!!! batch starting from tomorrow i.e 19 November 2020
Get Start Preparing for F.A.A.N.G. Companies...
@interviewprep2021
@interviewprep2021
@freshersoffcampjobs
@freshersoffcampjobs
GeeksforGeeks is organizing an 11-week workshop on Data structures and #Algorithms for FREE
isn't it the best thing that happened in 2020 #datastructures
#skill yourself up by enrolling in this wonderful course
Register here: https://practice.geeksforgeeks.org/courses/Workshop-DSA/
invite code: GFGY479GV
Hurry up!!! batch starting from tomorrow i.e 19 November 2020
Get Start Preparing for F.A.A.N.G. Companies...
@interviewprep2021
@interviewprep2021
@freshersoffcampjobs
@freshersoffcampjobs
www.geeksforgeeks.org
Placement 360 Course - Complete Tech Interview Prep
Master coding, Data Structures and Algorithms, core Computer Science subjects, Low-Level Design, and interview preparation with Placement 360, an AI-powered placement program designed to make you job-ready.
Java Interview Question ::
Q-1 Explain public static void main(String args[]).
● public : Public is an access modifier, which is used to specify who can access
this method. Public means that this Method will be accessible by any Class.
● static : It is a keyword in java which identifies it is class based i.e it can be
accessed without creating the instance of a Class.
● void : It is the return type of the method. Void defines the method which will
not return any value.
● main: It is the name of the method which is searched by JVM as a starting
point for an application with a particular signature only. It is the method
where the main execution occurs.
● String args[] : It is the parameter passed to the main method.
Q-2. Why Java is platform independent?
Platform independent practically means “write once run anywhere”. Java is called so
because of its byte codes which can run on any system irrespective of its underlying
operating system.
Q-3. Why java is not 100% Object-oriented?
Java is not 100% Object-oriented because it makes use of eight primitive datatypes
such as boolean, byte, char, int, float, double, long, short which are not objects.
Q-4. What do you mean by Object?
An object consists of methods and class which depict its state and
perform operations. A java program contains a lot of objects instructing
each other their jobs. This concept is a part of core java.
Q-5 What is association?
Association is a relationship where all object have their own lifecycle and there is no
owner. Let’s take an example of Teacher and Student. Multiple students can
associate with a single teacher and a single student can associate with multiple
teachers but there is no ownership between the objects and both have their own lifecycle. These relationship can be one to one, One to many, many to one and many
to many.
Q-6. What do you mean by aggregation?
Aggregation is a specialized form of Association where all object have their own
lifecycle but there is ownership and child object can not belongs to another parent
object. Let’s take an example of Department and teacher. A single teacher can not
belongs to multiple departments, but if we delete the department teacher object will
not destroy.
Q-7. What is composition in Java?
Composition is again specialized form of Aggregation and we can call this as a
“death” relationship. It is a strong type of Aggregation. Child object dose not have
their lifecycle and if parent object deletes all child object will also be deleted. Let’s
take again an example of relationship between House and rooms. House can contain
multiple rooms there is no independent life of room and any room can not belongs to
two different house if we delete the house room will automatically delete.
Q-8. What's the difference between an array and Vector?
Ans: An array groups data of same primitive type and is static in nature while
vectors are dynamic in nature and can hold data of different data types.
Q-9. What is multi-threading?
Ans: Multi threading is a programming concept to run multiple tasks in a
concurrent manner within a single program. Threads share same process stack
and running in parallel. It helps in performance improvement of any program.
Q-10. Why Runnable Interface is used in Java?
Ans: Runnable interface is used in java for implementing multi threaded
applications. Java.Lang.Runnable interface is implemented by a class to support multi threading
Q-1 Explain public static void main(String args[]).
● public : Public is an access modifier, which is used to specify who can access
this method. Public means that this Method will be accessible by any Class.
● static : It is a keyword in java which identifies it is class based i.e it can be
accessed without creating the instance of a Class.
● void : It is the return type of the method. Void defines the method which will
not return any value.
● main: It is the name of the method which is searched by JVM as a starting
point for an application with a particular signature only. It is the method
where the main execution occurs.
● String args[] : It is the parameter passed to the main method.
Q-2. Why Java is platform independent?
Platform independent practically means “write once run anywhere”. Java is called so
because of its byte codes which can run on any system irrespective of its underlying
operating system.
Q-3. Why java is not 100% Object-oriented?
Java is not 100% Object-oriented because it makes use of eight primitive datatypes
such as boolean, byte, char, int, float, double, long, short which are not objects.
Q-4. What do you mean by Object?
An object consists of methods and class which depict its state and
perform operations. A java program contains a lot of objects instructing
each other their jobs. This concept is a part of core java.
Q-5 What is association?
Association is a relationship where all object have their own lifecycle and there is no
owner. Let’s take an example of Teacher and Student. Multiple students can
associate with a single teacher and a single student can associate with multiple
teachers but there is no ownership between the objects and both have their own lifecycle. These relationship can be one to one, One to many, many to one and many
to many.
Q-6. What do you mean by aggregation?
Aggregation is a specialized form of Association where all object have their own
lifecycle but there is ownership and child object can not belongs to another parent
object. Let’s take an example of Department and teacher. A single teacher can not
belongs to multiple departments, but if we delete the department teacher object will
not destroy.
Q-7. What is composition in Java?
Composition is again specialized form of Aggregation and we can call this as a
“death” relationship. It is a strong type of Aggregation. Child object dose not have
their lifecycle and if parent object deletes all child object will also be deleted. Let’s
take again an example of relationship between House and rooms. House can contain
multiple rooms there is no independent life of room and any room can not belongs to
two different house if we delete the house room will automatically delete.
Q-8. What's the difference between an array and Vector?
Ans: An array groups data of same primitive type and is static in nature while
vectors are dynamic in nature and can hold data of different data types.
Q-9. What is multi-threading?
Ans: Multi threading is a programming concept to run multiple tasks in a
concurrent manner within a single program. Threads share same process stack
and running in parallel. It helps in performance improvement of any program.
Q-10. Why Runnable Interface is used in Java?
Ans: Runnable interface is used in java for implementing multi threaded
applications. Java.Lang.Runnable interface is implemented by a class to support multi threading
Top 30 HR Round Questions and Perfect Answers
Some Other Tips to Keep in Mind for a Job Interview:
● Wear neat and modest clothing.
● Be aware of your body language.
● Speak clearly while answering the questions. Do not mumble.
● Keep your tone positive and enthusiastic.
● Maintain focus throughout the interview process.
● Bring a copy for your resume.
● Always arrive to the interview venue 10 minutes in advance.
● Always follow up with a thank you note restating your interest in the position.
Q-1 Tell me about your dream job.
The only dream job I’ve always had was a job that keeps me busy, a job wherein I get to
contribute to the company’s success.
Q-2 Why did you leave your last job?
I left my previous job because I feel I want to do more, to get hold of a greater
opportunity to serve.
Q-3 What experience do you have in this field?
I have created several systems that are still in used to this day. Some of the systems I’m
proud include [mention those remarkable ones]
Q-4 What do co-workers say about you?
My co-worker [name] at [company] never gets tired of telling other people how brilliant I
am when it comes to [specific task].
Q-5 Why should we hire you?
Following are 5 sample answers
Sample Answer 1:
In my XXX years of experience as a manager, I have build-up a solid motivational and
team-working skills. I was awarded twice as the manager-of-the-year for my excellent
methodologies for motivating employees to encounter challenges and meeting
deadlines. If hired, I will carry forward this ability of leadership and strategies for
achieving profit gains to this position.
Sample Answer 2:
The subjects I chose while working for my degree in XXX subject have prepared me for
this particular post. Also, my two-year experience working with company X has given me
the platform to master the skills that I needed to deliver for this position. It seems as if I
was prepared all my life to land this job.
Sample Answer 3:
For this particular job, I have the perfect combination of skills and experience that is
required. I also bring the experience of strong analytical and problem-solving skills that I
have gained while working with other companies. My dedication to excellent work
standards will add value to the team and the company.
Sample Answer 4:
I am quite aware of the company’s mission of acquiring the largest consumer base in the
area and to become the front-runner in supplier’s or provider’s community. My domain
knowledge and hold over the customer base can make a big contribution towards this. I
would really enjoy this challenge of growing this business bigger.
Sample Answer 5:
As I have said earlier, my years of experience in this field is something that can truly
contribute to this company’s success. My sense of dedication in every task that I handle
is definitely a big plus. I believe my skills and work attitude measures up to your
company standards.
Tips
● Emphasize on your uniqueness but keep it concise
● Highlight your strength, skills, and your accomplishments
● Give an example that describes you as a quick learner
● State or provide some evidence that shows how you contributed to the growth
of the previous company in terms of revenue, goodwill, and brand
● Include your research you made on the company- for a smaller company you
can say- your company is open to new innovative ideas
What not to say
● Try to avoid saying- I need a job, money or this place is close to where I live
● Focus on what can you do for the company rather than what they can do for
you
● NEVER DO THIS- comparing your skills to others. The natural instinct to this
question is we usually start comparing our skills to others, when this question
is put through.
Q-6 Are you a team player?
Yes, definitely. While I will deny the fact that I can work independently with minimal
supervision, I’m also one companion every leader would ever wanted to be in his team.
Whatever task is assigned to me, I make sure it meets and exceeds what is expected of
me. I also make it a point to reach out to teammates whenever needed.
Some Other Tips to Keep in Mind for a Job Interview:
● Wear neat and modest clothing.
● Be aware of your body language.
● Speak clearly while answering the questions. Do not mumble.
● Keep your tone positive and enthusiastic.
● Maintain focus throughout the interview process.
● Bring a copy for your resume.
● Always arrive to the interview venue 10 minutes in advance.
● Always follow up with a thank you note restating your interest in the position.
Q-1 Tell me about your dream job.
The only dream job I’ve always had was a job that keeps me busy, a job wherein I get to
contribute to the company’s success.
Q-2 Why did you leave your last job?
I left my previous job because I feel I want to do more, to get hold of a greater
opportunity to serve.
Q-3 What experience do you have in this field?
I have created several systems that are still in used to this day. Some of the systems I’m
proud include [mention those remarkable ones]
Q-4 What do co-workers say about you?
My co-worker [name] at [company] never gets tired of telling other people how brilliant I
am when it comes to [specific task].
Q-5 Why should we hire you?
Following are 5 sample answers
Sample Answer 1:
In my XXX years of experience as a manager, I have build-up a solid motivational and
team-working skills. I was awarded twice as the manager-of-the-year for my excellent
methodologies for motivating employees to encounter challenges and meeting
deadlines. If hired, I will carry forward this ability of leadership and strategies for
achieving profit gains to this position.
Sample Answer 2:
The subjects I chose while working for my degree in XXX subject have prepared me for
this particular post. Also, my two-year experience working with company X has given me
the platform to master the skills that I needed to deliver for this position. It seems as if I
was prepared all my life to land this job.
Sample Answer 3:
For this particular job, I have the perfect combination of skills and experience that is
required. I also bring the experience of strong analytical and problem-solving skills that I
have gained while working with other companies. My dedication to excellent work
standards will add value to the team and the company.
Sample Answer 4:
I am quite aware of the company’s mission of acquiring the largest consumer base in the
area and to become the front-runner in supplier’s or provider’s community. My domain
knowledge and hold over the customer base can make a big contribution towards this. I
would really enjoy this challenge of growing this business bigger.
Sample Answer 5:
As I have said earlier, my years of experience in this field is something that can truly
contribute to this company’s success. My sense of dedication in every task that I handle
is definitely a big plus. I believe my skills and work attitude measures up to your
company standards.
Tips
● Emphasize on your uniqueness but keep it concise
● Highlight your strength, skills, and your accomplishments
● Give an example that describes you as a quick learner
● State or provide some evidence that shows how you contributed to the growth
of the previous company in terms of revenue, goodwill, and brand
● Include your research you made on the company- for a smaller company you
can say- your company is open to new innovative ideas
What not to say
● Try to avoid saying- I need a job, money or this place is close to where I live
● Focus on what can you do for the company rather than what they can do for
you
● NEVER DO THIS- comparing your skills to others. The natural instinct to this
question is we usually start comparing our skills to others, when this question
is put through.
Q-6 Are you a team player?
Yes, definitely. While I will deny the fact that I can work independently with minimal
supervision, I’m also one companion every leader would ever wanted to be in his team.
Whatever task is assigned to me, I make sure it meets and exceeds what is expected of
me. I also make it a point to reach out to teammates whenever needed.