Java Freshers Project Based Mock Interview | Fergusson Collage Student Real Mock Interview

231 views March 06, 2025

Freshers Project-Based Mock Interview | Real IT Interview Experience 🎯

Are you a fresher preparing for IT job interviews? Watch this project-based mock interview to understand how real technical interviews are conducted! This session covers:
✅ Project Explanation – How to present your project effectively
✅ Technical Q&A – Common interview questions based on your project
✅ Live Feedback – Tips to improve your answers and impress recruiters

📌 Why Watch This Video?
✔️ Learn how to confidently talk about your final year project
✔️ Get insights into technical and behavioral questions
✔️ Understand what interviewers expect from freshers

💡 More Interview Preparation Videos:
👉 Playlist: IT Freshers Interview Guide
👉 Resume Tips for Freshers
👉 Top 10 Common Interview Questions

🔥 Subscribe for More Mock Interviews & IT Job Tips!
📢 Don't forget to LIKE 👍 | SHARE 📢 | SUBSCRIBE 🔔 for more career guidance!

0:00 okay hi SN hello sir hi uh tell me about
0:03 yourself okay so good evening sir good
0:06 evening uh my name is per currently I'm
0:09 pursuing Masters in computer application
0:11 at forguson college and I have done my
0:14 bachelor's in computer science at the
0:16 same uh Institute with the cgp of
0:19 8.84 and uh during my academic journey I
0:22 have worked on few projects MH so
0:25 because of which like I have gained
0:27 hands-on experience in Java and in
0:30 database
0:31 SQL also uh the projects uh I want to
0:34 mention which were in my undergraduation
0:38 we have buil a a uh project as tabular
0:42 it was basically a tools and travel
0:43 management system okay and in my masters
0:47 in uh computer application and uh first
0:50 year we have built a placement Pro which
0:53 was a placement cell management system
0:55 it was basically for our College purpose
0:58 only okay because of we found the
1:01 problem like uh it was a manual process
1:04 of our College placement so we think
1:08 about a placement Pro will be a good
1:10 option so okay in which text Tech which
1:13 we used are uh in backend we have used
1:16 Java with JSP mhm and in database we
1:20 have used MySQL and for front end we
1:22 have used HTML CSS and JavaScript okay
1:25 and uh currently uh which uh is our
1:28 ongoing project which we have submitted
1:31 it is basically a traton which is a
1:34 tracking uh system what it is is a web
1:37 based platform which we have designed
1:40 for adventure lovers basically so it is
1:43 a um full mean St like we have used
1:47 textech as in uh in back end we have
1:49 used nodejs with
1:51 expressjs and uh in database we have uh
1:55 used MySQL and in front end we have used
1:58 HTML CSS with uh JavaScript so uh in
2:02 this like um user first need to sign up
2:06 theirself if he or she is a new user
2:08 after that they can uh log in
2:10 theirselves then they will redirect to
2:13 dashboard uh in which they can see list
2:16 of tracking system like uh tracking with
2:18 wherever they want to go and uh from
2:21 backend side like we we have uh
2:24 developed an admin side also on which we
2:26 can um like uh add a cheing location
2:30 date or they we can delete a user also
2:35 like from back side okay yes so in this
2:39 last project okay so in this last
2:42 project what was your low role exactly
2:45 um we all have like it was a team
2:47 project basically so there were team
2:49 size of three to four uh teammates and
2:52 we all have done contribution in both
2:55 back end and front end okay so I have
2:57 worked in uh but majorly we have like
2:59 like I have worked in backend backend
3:01 and database yes okay okay as you said
3:05 that you worked on backend and database
3:07 right so let's move ahead and uh let's
3:10 uh start with some back end questions
3:12 okay so we will start with some basic
3:14 questions uh we'll start with the oops
3:18 concept uh first okay so tell me what
3:21 are the oops concept and what is the use
3:23 of this oops concept exactly oops
3:26 basically stands for object oriented
3:28 programming mhm
3:30 uh which is useful for our uh like if uh
3:34 it uses for like we can reuse our codes
3:38 okay through oops also uh reuse in the
3:41 sense there are four Concepts in oops
3:43 which are encapsulation abstraction
3:45 inheritance and polymorphism okay so
3:48 these four act as a pillar of
3:51 objectoriented programming mhm so that's
3:54 what uh I think it is useful for us okay
3:56 so what are those uh oops Concepts so
3:59 what are those pillars so uh as I said
4:02 there are four pillars which are
4:03 abstraction polymorphism encapsulation
4:06 inheritance what happens in abstraction
4:09 is it uh hides the unnecessary uh
4:14 backend you know like if we are creating
4:17 uh we are writing a code okay and U if
4:22 there is any um like uh more technical
4:26 stuff so we can uh hide it and if we can
4:30 show user only necessary part like for
4:33 real world exam real life example uh we
4:37 watch television mhm so we simply press
4:41 a remote uh like a button on a remote
4:44 and it uh simply show our whatever
4:47 Channel we want to but user do not need
4:49 to know what uh is happening internally
4:52 in the television so that's basically
4:54 abstraction in uh inheritance is like if
4:58 a child class is uh inheriting the uh
5:02 inherits the all the implementation of
5:04 parent class it is basically a
5:07 inheritance so because of which we can
5:09 reuse our code again and again so it
5:12 simplifies the uh
5:14 reusability also uh in polymorphism what
5:17 happens like uh the polymorphism term in
5:21 this term poly stands for many and
5:23 morphism stands for uh forms so it's
5:27 basically many forms like single method
5:29 can uh it can give uses uh multiple uses
5:33 we can uh use from one method like uh it
5:37 plays multiple roles if we are uh
5:40 creating any uh class or something it
5:42 can we can use it again and again like
5:45 it can form with multiple roles okay uh
5:48 like father in a real life example Our
5:51 Father plays a role uh as a father to
5:55 their children as a husband to their uh
5:58 wife and as a to their grand okay so uh
6:02 if we talked about in terms of technical
6:04 okay so what is mean by polymorphism
6:07 exactly in terms of in polymorphism
6:09 there are two types one is compile time
6:13 polymorphism second one is runtime
6:15 polymorphism in compile time overloading
6:19 plays a role okay so what happens in
6:21 overloading is if we are creating a
6:24 class in the same class there is a
6:26 different methods are used in which
6:29 methods different um same method but
6:32 different parameters and different
6:33 return type is there in polymorph in
6:36 overloading in in the other side on the
6:38 other side over what is overriding
6:41 is in that class are different but the
6:45 methods written type are same so this is
6:49 basically in overriding like subass
6:51 Implement modifies their code and also
6:54 inherit from their parent class okay so
6:57 do you know why we call it as a compile
6:59 type and run
7:01 polymorphism uh like if we are compiling
7:05 our problem MH then it then the compile
7:08 time uh polymorphism will play a role
7:11 like during our compile time and while
7:14 after all the execution of the program
7:17 of our code the runtime polymorphism
7:20 will be execute okay so so I have
7:24 written one code okay so suppose I have
7:27 one method okay called uh y M1 and
7:30 second method is integer M1 okay so
7:33 these both methods in the same class
7:35 only okay okay so tell me is it a method
7:39 over loading or not um it is like the
7:43 written type are different as I can see
7:46 one uh is int and other is white okay so
7:50 uh in overloading return type should be
7:52 different so it is not
7:55 overloading okay it is not overloading
7:57 you to say okay so what is the exact of
8:00 method overloading is um so I can see
8:03 this is the different right so I can see
8:05 the return type are different there are
8:07 some rules which overloading follows
8:10 like there should be different written
8:12 type and different method also but uh
8:15 sorry different parameters there should
8:17 be different parameters but it can be in
8:20 same class okay yes okay so you mean to
8:23 say uh different uh return types and
8:27 different parameters parameters yes okay
8:29 so uh let me tell you one thing so only
8:33 just basis of return return type we
8:35 can't do the method overloading okay if
8:37 it is uh same or if it is different that
8:41 is doesn't matter for method overloading
8:43 okay so it will consider only the
8:45 parameters okay so method signature
8:47 means it will consider only the
8:49 parameters inside this uh bracket okay
8:52 so let's move ahead and tell me one
8:55 thing what is abstraction is uh abstra
8:59 setion as I said it hides the complex
9:02 implementation and shows the in uh only
9:05 necessary part also there are two we can
9:08 Implement abstraction in two types like
9:10 with abstract class and other is
9:12 interface okay so do you know uh where
9:16 you exactly use the substraction in your
9:18 project so I remember any situation
9:21 where you have used this kind of things
9:24 yes like uh in my current project which
9:27 was traton mhm so we have to uh add
9:31 multiple tracking spots there so uh
9:35 there can be same tracking spots right
9:38 like uh same tracking spots and also the
9:41 tracking level can be same like it can
9:43 be hard uh moderate or easy right so uh
9:48 if but if we are uh uh using abstraction
9:51 by abstraction they can be costing can
9:54 be different in uh in the tracking
9:56 system M so uh while booking uh the if
10:00 user is booking the uh tracking uh any
10:04 tracking spot so costing should be
10:06 different like I have used uh
10:09 abstraction uh by giving same uh level
10:12 same on the same track uh track spot but
10:16 I have created another class uh below so
10:20 they uh calculating calculation part
10:23 will be different so here uh abstra by
10:27 using abstraction I can hide the the uh
10:30 part of uh like levels of their uh like
10:34 tracking mhm and uh calculation like if
10:37 uh if there is um like 700 rupees for
10:42 one track and another one is for 800 so
10:46 here calculation part will be
10:48 different
10:50 okay okay so uh let's move ahead and
10:54 tell me one thing uh so what is garbage
10:57 collect R exactly
10:59 um what garbage collector is like if we
11:03 are creating any program mhm and uh we
11:07 use uh multiple objects and classes as
11:10 we all know so they can be and also
11:14 obviously they uh like uses some memory
11:18 space in our system so they can be extra
11:21 memory space also so here arises garbage
11:25 collector it uh simply uh internally
11:28 initializes and uh uh it deletes all the
11:32 memory spaces so it used to like
11:35 unnecessary memory spaces are being
11:39 uh destroyed we can call it as
11:43 unnecessary objects we can M object uh
11:47 so garbage collector is collecting the
11:49 unnecessary spes of objects okay okay so
11:54 and now let's move ahead and tell me one
11:57 thing so what is the difference between
12:00 array and
12:01 collections um arrays and collection
12:05 collections are the framework like uh it
12:08 is a framework which have multiple
12:11 interfaces and classes and also it has
12:14 multiple like data structure uh in
12:17 collection whereas in Array it is a
12:20 static type of array and uh it is a
12:23 sequential it is in a sequential manner
12:26 like array and it can be
12:28 multi-dimensional also so like array M
12:31 and uh what's the major difference is
12:33 arrays are static in nature whereas
12:35 collections are dynamic in nature here
12:39 as I said types are multi-dimensional
12:41 arrays whereas in collection they can be
12:43 set maps and uh list like in list there
12:47 can be more we can further uh Implement
12:50 like uh array list and Link list whereas
12:53 in set there can be hash set and Etc
12:56 okay so tell me one thing uh so as you
13:00 know the Java is right so Java is a
13:03 programming language so what are the
13:05 other programming languages do you know
13:07 about what are the other programming
13:09 languages is uh Java is a programming
13:12 language also there are multiple
13:15 language which are been used in modern
13:19 way also uh like nodejs Express are the
13:23 these are are the framework actually
13:26 also python we can use so C Lang langage
13:29 is there right so these all are the you
13:32 know about the net uh yes I'm familiar
13:36 with net but I'm not that much okay okay
13:40 professional so one question is so why
13:43 you have choose the Java as a
13:45 programming language instead of uh
13:47 python instead of net so I felt like
13:51 Java could be easier to learn actually
13:54 every other languages are easier to
13:56 learn easy to learn right but uh as as I
14:00 said that I have completed my bachelor's
14:02 in computer science MH during our
14:04 academic curriculum Java was the core
14:07 language of our uh academic uh syllabus
14:11 so after while learning Java in our
14:14 College I felt like uh I can be familiar
14:17 with Java and uh also like current on
14:22 the current basis uh during our
14:24 interview like you also asked questions
14:27 with Java so other uh at the other point
14:31 they can be interview in the only Java
14:33 programming language like interviewer
14:35 always chooses Java I guess so so I uh
14:38 studied Java more including uh and also
14:42 we have used in some projects okay okay
14:45 great so uh now tell me one thing what
14:48 are the access modifiers we have in the
14:52 Java uh uh in Java there is uh oops
14:56 concept which is objectoriented
14:57 programming
14:59 access modifiers plays a role in
15:01 objectoriented programming only okay so
15:03 there are four types of access modifiers
15:05 which are uh protected public default
15:09 and um private so these are the four uh
15:14 access modifiers which are uh very
15:18 mandatory uh I feel like to use in our
15:20 objectoriented programming like if you
15:22 want to hide some private data of the
15:26 users or uh like um the their pay like
15:31 we have used payment gateways in our
15:33 traton project so there are some like
15:38 user need to fill their credit card
15:39 number and all so the these are some
15:42 confidential data so uh here plays a
15:45 private access modifier we can use
15:47 private access modifier in this and hide
15:50 our uh data
15:51 also protected data uh access modifier
15:55 is it protects the uh like it also and
15:59 in public it is globally like we can use
16:01 publicly uh so do you know what is mean
16:03 by default access modifier is um I think
16:08 default access modifier we do not need
16:11 to write any uh like we can directly
16:14 write any return type in this okay so
16:19 uh so for example I have one class okay
16:24 so this is for example ABC class and I
16:27 have return directly the method like
16:29 void M1 yes okay so tell me what is the
16:34 access modifier of this
16:36 method um as I said default access
16:39 modifier of the NS uh I think public
16:42 will be default uh access modifier yeah
16:46 public will be default access modifier
16:48 for the class
16:50 members are you
16:53 sure I
16:54 guess okay no issues okay so do you know
16:58 what is the def called access modifier
17:00 for the
17:03 class for a class itself I think
17:08 public okay okay no issues let's let's
17:11 move ahead and uh let's talk about
17:14 database part as right so as you uh said
17:17 that you have exposure on database as
17:19 well right so uh tell me uh what
17:23 database is exactly and why a database
17:26 is required for a developer
17:29 [Music]
17:30 um from my point of view database is the
17:35 crucial part of our whole project okay
17:38 like it plays a major uh role because if
17:42 we are developing our project with front
17:45 end and back end and if we are not using
17:47 back end uh like database then it it
17:50 will be like no views of creating our
17:53 project because if we are um developing
17:56 our project in backend after after that
17:59 uh we have to store all the information
18:02 related to our project somewhere MH so
18:05 here plays a database management system
18:08 in which U I have chose my SQL okay okay
18:13 so as I think you know that ke in the IT
18:17 industry uh there are role data uh
18:21 database engineer or uh SQL developers
18:25 right database developers and DBA as
18:27 well okay so these are the roles already
18:30 we have in the IT industry but still uh
18:33 developers should know about the
18:35 database correct right correct but what
18:38 is the logic behind this why why
18:40 developer should know about the database
18:42 as well so what what is your thinking
18:45 about this uh see like uh every other
18:49 employee works for their specific part
18:52 of their uh job role MH but there uh
18:55 like every employer also should be known
18:57 about database because um any uh any
19:02 part can be assigned to them right like
19:05 for back end also or they have to work
19:08 for front end also right so they should
19:10 know about databases also like
19:15 relational or non- relational databases
19:17 so I feel like every other employee
19:19 should have
19:21 knowledge database right so developers
19:23 is working with the testers uh SQL
19:26 developers right so and if the SQL
19:29 developers develop the or build the
19:32 database but we should know what are the
19:35 tables inside the database So based on
19:37 that we can connect to the database
19:39 based on that Fields based on that
19:41 columns we can get the fields right so
19:43 that's what we should know about the
19:45 database as well okay great let's let's
19:48 move ahead and tell me the difference
19:52 between trunet and delet
19:54 is um
19:56 okay so uh what uh Delete does is delete
20:01 uh deletes the specific row if we want
20:05 to like I want to uh Delete the row of
20:08 ID so I can simply delete it by uh
20:11 giving delete keyword and it will delete
20:14 the specific row uh on the other hand
20:17 trunade deletes all the row uh in the
20:20 table available and here uh in delete
20:25 roll back is done but uh trans doesn't
20:29 apply like roll back here okay okay fine
20:32 like we can undo changes and delete okay
20:35 fine so tell me one thing so do you know
20:38 the primary Keys what is the primary key
20:42 yes uh primary keys are the unique Keys
20:45 which uh should be there in uh every
20:48 table available in our or we have
20:50 created in our database so uh yeah
20:55 primary key is a unique okay yeah so uh
20:58 can we have a null value inside the
21:00 primary key um no primary key uh should
21:06 be like important like it it should not
21:09 be not null are you sure yes it is not
21:13 always not null okay uh can we use the
21:16 multiple primary key across the table uh
21:19 no like every other table uh uh there is
21:24 single primary key single primary yes so
21:26 can we have multiple unique key for the
21:30 table uh we can uh like by giving
21:34 references we can use multiple table
21:36 like uh there there is only one unique
21:39 in every table so there is only one
21:42 unique so can you just tell me the exact
21:45 difference between this unique and
21:47 primary key then so as you said primary
21:49 key also only one primary key across the
21:52 table and unique key also the only one
21:54 primary key itself is a unique key
21:57 I there is a separate unique keys there
22:01 okay so in this which are foreign key uh
22:03 no so in unique Keys is always having
22:06 the unique values unique values means it
22:10 will allows the single null values yes
22:13 okay right so single null values why it
22:15 is because it's a unique it will check
22:17 the uniqueness it will not check the
22:19 null or not null it is checking the
22:21 unique values then and null also it will
22:25 consider as the one value and it will
22:28 will allow the single null value unique
22:30 key okay so we can have multiple unique
22:34 key for the
22:36 tables and primary key only one primary
22:38 key across the datable okay no issues
22:40 let's move ahead and tell me what are
22:43 the joints we have in data B uh there
22:45 are two types of joints uh like uh there
22:49 is one inner joint other is outer joint
22:53 so basically in outer joint there is uh
22:56 right outer joint left outer joint joint
22:59 uh uh full outer joint so in inner uh
23:03 joint the uh if we are comparing two
23:06 tables so all the matching rows are uh
23:10 been uh like we can we can be it is
23:14 visible like in inner joint and in the
23:18 right outer joint like on the other side
23:19 on outer joint uh in the uh right outer
23:23 joint there is uh all the uh rows from
23:26 right table
23:29 write all the rows and some common rows
23:32 from the other table these are been
23:35 shown and uh uh left outer join all the
23:39 uh left side of rows and matching rows
23:43 from both the tables are been shown and
23:46 uh yeah okay so just write one query I
23:52 wanted to get the second highest salary
23:55 from employee table okay just write this
23:58 query
23:59 sure
24:31 I have used limit and offset yes okay
24:35 correct okay
24:37 so I'm done from my side okay so do you
24:42 have any question um no sir that's all
24:45 okay yes thank you thank you so much
24:47 thank you so much