Between abstract classes and interfaces we use the former when we have some common functionalities implementation to define we define those in the abstract classes. When don't have the common implementation for all sub classes we can go for interfaces. 2. It is possible for subclass return types . It's called covariant return types.
Bro you answered questions in very calm and composed manner. One question which interviewer asked - about changing server jetty with tomcat, I think we need to change in pom.xml. we have to exclude tomcat and we need to add jetty as tomcat comes because of web dependencies.
If the superclass method does not declare an exception, subclass overridden method cannot declare the checked exception but it can declare unchecked exception. and If the superclass method declares an exception, subclass overridden method can declare same, subclass exception or no exception but cannot declare parent exception.
Can you please let me know which Software we can use for recording, I'm also currently attending interviews I really want to save them for my improvement.
The answer to this is not straightforward. There are 2 cases here- 1. If the return type is a primitive data type or void, in that case it should be same. 2. Otherwise, it could be covariant.
Yes it may differ but there are some limitations. Before Java 5.0, when you override a method, both parameters and return type must match exactly. Java 5.0 introduced a new facility called covariant return type.
I think second option is better because experience always counts more than MCA. Also, MCA is not a preferred choice these days and you will spend money over while with experience you get salary as well. So, second option.
I believe you have taken the interview of TCS few months ago and selected but you didn't joined. Again they are conducting interview for you? Are you giving many interview to gain knowledge.? I am asking because I have many offers along with TCS but I want join other company now and TCS later.
TCS has a weird process and they even call you many times for interview when you have a good feedback at their end. I didn't join TCS because they were offering me a low CTC. I didn't say no to interviews because I wanted to put out this information out to the world.
Well, the question was - Do you have ID with you right now? I said no as no-one sits with their own ID. Then, I went and took some time to find it and then showed it to them. It took some time, so I cropped that portion so that I won't waste anyone's time watching this video.
@@yasararafathk5954 In my experience, HR never calls if you are not selected and sometimes they call on the same day or maybe till a week later in case you are selected. So, no pattern here..
Are sharma Ji ek cheez help krdo ye abhi TCS me hua hai lekin ye TCS vale salary nahi disclose krrahe abhi current company me 11 LPA milta hai . Any chance in worst case ye TCS vale kitna dete for 4 year experience?
You should always ask for salary details and I'm guessing you haven't got the offer letter so please don't resign yet. For 4 years, they don't go above 10lpa so maybe that's why they haven't disclosed. So, hope for the best maybe they have learnt something from this current market standards. Good luck!!
Between abstract classes and interfaces we use the former when we have some common functionalities implementation to define we define those in the abstract classes.
When don't have the common implementation for all sub classes we can go for interfaces.
2. It is possible for subclass return types . It's called covariant return types.
Bro you answered questions in very calm and composed manner. One question which interviewer asked - about changing server jetty with tomcat, I think we need to change in pom.xml. we have to exclude tomcat and we need to add jetty as tomcat comes because of web dependencies.
That's a great answer, I couldn't thought of an answer back then.
You can use exclude marker and add Jetty as you need to configure.
The correct answer is, you have to configure in application. Properties file
If the superclass method does not declare an exception, subclass overridden method cannot declare the checked exception but it can declare unchecked exception.
and
If the superclass method declares an exception, subclass overridden method can declare same, subclass exception or no exception but cannot declare parent exception.
Can you elaborate the second statement, what is parent exception,subclass exception here
Can you please let me know which Software we can use for recording, I'm also currently attending interviews I really want to save them for my improvement.
Use OBS
@@PrashantSharmaOfficial Thank You 😊
Return type doesn't matter in override
The answer to this is not straightforward. There are 2 cases here-
1. If the return type is a primitive data type or void, in that case it should be same.
2. Otherwise, it could be covariant.
Experience?
Not sure of exact experience but between 6-7 years.
OK..Thank you
I have an experience of 2 years in Java and Spring boot. Will the question difficult be the same or a bit on lower side?
It should be on lower difficulty side.
Bro the overrinding different return types is possibles
Yes it may differ but there are some limitations.
Before Java 5.0, when you override a method, both parameters and return type must match exactly. Java 5.0 introduced a new facility called covariant return type.
@@PrashantSharmaOfficial but the child's return type should be a subtype of the parent's return type.
How much experience do you have?
Roughly around 6 years
I'm currently pursuing bcs cs ... Should I go for MCA
Or bcs cs + 4 years of experience (Java developer) .... For joining TCS
I think second option is better because experience always counts more than MCA. Also, MCA is not a preferred choice these days and you will spend money over while with experience you get salary as well. So, second option.
@@PrashantSharmaOfficial thanks😄
I believe you have taken the interview of TCS few months ago and selected but you didn't joined. Again they are conducting interview for you? Are you giving many interview to gain knowledge.? I am asking because I have many offers along with TCS but I want join other company now and TCS later.
TCS has a weird process and they even call you many times for interview when you have a good feedback at their end. I didn't join TCS because they were offering me a low CTC. I didn't say no to interviews because I wanted to put out this information out to the world.
Is this 6-7 years experience question?
No, 5-6
Do you have any government Id answer is No.. but you showed some Id.. what did I miss here.
Well, the question was - Do you have ID with you right now? I said no as no-one sits with their own ID. Then, I went and took some time to find it and then showed it to them. It took some time, so I cropped that portion so that I won't waste anyone's time watching this video.
After interview how many days they take to call for next round ???
This was the first and last round. After this, HR calls about next steps.
@@PrashantSharmaOfficial thanks ... When HR will inform you whether your shortlisted or not
@@yasararafathk5954 In my experience, HR never calls if you are not selected and sometimes they call on the same day or maybe till a week later in case you are selected. So, no pattern here..
@@PrashantSharmaOfficial is this interview is for fresher or experienced
@@RangToons Experienced
Can anyone refer me in your company
Having 1.3 year of experience in java [ Spring boot framework]
Try asking this on Fishbowl or LinkedIn, they are better platform for these type of questions.
Have u got any interview call?
@@kukuusah no
Are sharma Ji ek cheez help krdo ye abhi TCS me hua hai lekin ye TCS vale salary nahi disclose krrahe abhi current company me 11 LPA milta hai . Any chance in worst case ye TCS vale kitna dete for 4 year experience?
You should always ask for salary details and I'm guessing you haven't got the offer letter so please don't resign yet. For 4 years, they don't go above 10lpa so maybe that's why they haven't disclosed. So, hope for the best maybe they have learnt something from this current market standards. Good luck!!
@@PrashantSharmaOfficial Bhai thanks 😂😂😂😂lekin 11 toh milta hai current😂😂
@@ferringxor Well, that's TCS! They offered me my current minus 7 amount when I got interviewed.
@@PrashantSharmaOfficial Khatarnak😂😂
Hello, can you refer me in your company?
As Java developer
R u selected?
Yes, I was. But, I rejected the offer.
Hi. For 3.3 years experienced java developer, in tcs how much they will pay? Approximately. Last week got selected in tcs.
Somewhere around 10lpa, maybe more or less. Good luck!!
In the middle that beep sound is pathetic