💡 If this video helped you prepare for your interview, consider supporting the channel using the Super Thanks button. Your contribution helps us create more videos to help you level up. Thank you! 😊
Default is only within package, Not from anywhere like public. Protected can be accessed within own package and also in different package but the class must be inheriting the class where it is defined as protected
If we use different package then public and protected helps.only....and protected helps only if we use sub class....creating instance would not help in protected ..as well as default when it comes to different package
Thanks for sharing valuable insights! Great resource for preparing interviews in top IT companies. Appreciate the comprehensive list of core Java questions and answers.
Well explanation and thanks for your video that this video helped me to write a written test for interview and I have qualified and and I have selected to Interview 🎉
"Void" is a return type bro. Basically what he is trying to say is, in constructors we wont specify the return type and also we cant return any value from constructors. But in "methods" we strictly need to specify its return type.
Maybe I'm picking on, but why so many people that are explaining basic Java's stuff used to give confused explanation about "final" keyword? Value of final variable can be change if it references to an object! Object itself does not become inmutable because of that keyword. The whole point of "final" is that you cannot change the reference itself that was once initialized/pointed! Apart from that little ambiguity I really like this video. :)
Class test { Int a ; test (){ //no argument constructor Sout (“a”+a); } test (int b) { this.a=b; //parameterized constructor } } Main class { Psvm (String args[]) { test obj=new test (5); }}// while creating obj we mentioned the class name that one is called default constructer 😅iam not sure about this but i tried my level best thank you
Only difference is if you're going to write your code without any constructor then jvm(compiler) will automatically create a default constructor and no argument constructor means you have to define a constructor without any parameters.
If you do not declare a constructor explicitly, the compiler automatically assigns a default constructor to the class. And that constructor is a no args constructor. That is why you are able to create a class with empty brackets even if the class doesn't have any constructor. Simply put, if you don't declare a constructor in a class, there will be a default no arg constructor.
default constructor apne app bnta he means vo declare kro na kro ban jata he , aur tumhe agar no arg constructor means agr without arg new koi object bane to tum kya krvana chahte ho tab , uske liye vo tum no arg const me likh skte ho ki- Ex, koi new object bane jisme koi arg nhi dale the to fir bhi tum kuch msg print krvana chahte ho ki u created new object , to vo tum no arg constructor me likh skte ho , or ye kam tum default constructor me nhi kr skte kyuki vo to apne aaap create hoga usme tum kuch changes nhi kr skte abbhi hmne kiya ki new object bne tab new object creatd msg pass ho to vo default const se tum asa nhi kr paoge.
sir, in question 9 example of method overloading you gave example of myMethod function which has different return data type, one has int and one has double! so can method overloading can happen if there is different return data type of method??
A 30mL of alcohol solution is made of 60% water. How much of this solution must be replaced with a 90% alcohol solution so that the resulting solution has an alcohol content of 60%? Sir please help with this Q
The solution for "x" is 0 mL. This means that no amount of the original solution needs to be replaced with the 90% alcohol solution to achieve a resulting solution with 60% alcohol content. The original solution already contains the desired alcohol content of 60%, and adding any amount of the 90% alcohol solution would only alter the original composition. i still have no idea y i ansd this q
Java requires that a method declare the data type of the value that it returns. If a method does not return a value, it must be declared to return void.
Bro please don't try to use or imitate that fake accent. Its clearly visible that you don't talk like that naturally.It's so irritating while watching the video. Just talk normally in english remove that fake accent.
💡 If this video helped you prepare for your interview, consider supporting the channel using the Super Thanks button. Your contribution helps us create more videos to help you level up. Thank you! 😊
Default is only within package, Not from anywhere like public. Protected can be accessed within own package and also in different package but the class must be inheriting the class where it is defined as protected
Pp0
...
I guess outside the package also we can but only by creating instance of the class not by inheriting
If we use different package then public and protected helps.only....and protected helps only if we use sub class....creating instance would not help in protected ..as well as default when it comes to different package
O@@kiranshetty5011
Thanks for sharing valuable insights! Great resource for preparing interviews in top IT companies. Appreciate the comprehensive list of core Java questions and answers.
What a explanation bro well done
Keep in extra 20 or 30 Questions and answers please I humble request ❤❤❤❤
Well explanation and thanks for your video that this video helped me to write a written test for interview and I have qualified and and I have selected to Interview 🎉
how was the interview ?
@AmanDhumal-e4u interview went well
Sir,you are helping freshers and we all thankful to you.😊😊😊
Thanks for such a amazing explanation😊🙏👏
10:48 *little correction methods can have return type not need necessary to use return type sometime we can use void methods also
"Void" is a return type bro. Basically what he is trying to say is, in constructors we wont specify the return type and also we cant return any value from constructors. But in "methods" we strictly need to specify its return type.
thank you for great explaination sir
😇
Loved the way you explained.
question no. 16 a file should have only one public class but here you mentioned two "public class Arithmatic and public class Main "
Constructors are 3 types
Default constructors
Parameterized constructors
Copy constructors
Thank you
Thanks for you clear Explantion
Maybe I'm picking on, but why so many people that are explaining basic Java's stuff used to give confused explanation about "final" keyword? Value of final variable can be change if it references to an object! Object itself does not become inmutable because of that keyword. The whole point of "final" is that you cannot change the reference itself that was once initialized/pointed!
Apart from that little ambiguity I really like this video. :)
tbf he did say variable and not object
Great Explanation bro. Go ahead
Thanks for the video.
2nd and 3rd question making confusion.... In JVM and Compiler
Why its making confusion its simple. Java virtual machine contains the compiler which can run the java code on any machine
Thank You Sir 🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼
Thankyou so much sir
Sir very help full video
Thank you so much
It is so helpful 😊
Great explanations !
Bro numpy and panda packages raakapote dsa ki python choose cheyyochha
what is diff between No arg constructor & default constructor?
Same question
Class test {
Int a ;
test (){ //no argument constructor
Sout (“a”+a); }
test (int b) {
this.a=b;
//parameterized constructor
}
}
Main class {
Psvm (String args[]) {
test obj=new test (5);
}}// while creating obj we mentioned the class name that one is called default constructer
😅iam not sure about this but i tried my level best thank you
Only difference is if you're going to write your code without any constructor then jvm(compiler) will automatically create a default constructor and no argument constructor means you have to define a constructor without any parameters.
If you do not declare a constructor explicitly, the compiler automatically assigns a default constructor to the class. And that constructor is a no args constructor.
That is why you are able to create a class with empty brackets even if the class doesn't have any constructor.
Simply put, if you don't declare a constructor in a class, there will be a default no arg constructor.
default constructor apne app bnta he means vo declare kro na kro ban jata he , aur tumhe agar no arg constructor means agr without arg new koi object bane to tum kya krvana chahte ho tab , uske liye vo tum no arg const me likh skte ho ki- Ex, koi new object bane jisme koi arg nhi dale the to fir bhi tum kuch msg print krvana chahte ho ki u created new object , to vo tum no arg constructor me likh skte ho , or ye kam tum default constructor me nhi kr skte kyuki vo to apne aaap create hoga usme tum kuch changes nhi kr skte abbhi hmne kiya ki new object bne tab new object creatd msg pass ho to vo default const se tum asa nhi kr paoge.
Is this questions are enought for tcs nqt interview? Can you plz reply
Nice for core interviewer ask questions me on platform independent .
Nice presentation Thanks
Great content ❤
Function defined with in the class is called as method
Watching this video 1hr before my interview..and regretting y i dint get this video before n early....😢...super explanation sir... 🙏👌
Hope it helped. All the best!
Thanks
Explanation is nice,Thank you sir
Thank you. Stay connected
sir, in question 9 example of method overloading you gave example of myMethod function which has different return data type, one has int and one has double! so can method overloading can happen if there is different return data type of method??
Nice ❤
Perfect explanation....
Sir I go for interview so I need the question and answer for freshers
Hii I m also now applying for jobs..So can u help what kind of questions they ask
Very nice videos
Thank you so much 😀
Can you tell mee some programming languages which deals ECE
Thanks for this amazing video sir 😊
Thanks for this amazing video... 👍
Glad you liked it
👍
Sir please help in the programs also
Thank you sir ❤
❤
A 30mL of alcohol solution is made of 60% water. How much of this solution must be replaced with a 90% alcohol solution so that the resulting solution has an alcohol content of 60%?
Sir please help with this Q
The solution for "x" is 0 mL. This means that no amount of the original solution needs to be replaced with the 90% alcohol solution to achieve a resulting solution with 60% alcohol content. The original solution already contains the desired alcohol content of 60%, and adding any amount of the 90% alcohol solution would only alter the original composition.
i still have no idea y i ansd this q
There's no array que , for loop que , comparator comparable and many things are not in this video
Sir nots link tyar krun send krt ja
Hello, how can I listen to these videos in Turkish?
Where are copy constructor
Copy constructors are nothhing but object created by using another object
can static method override?
No
Hii i am a bcom student can get java developer
Same bro
Why not bro
Hi sir i need a coding round questions. pls
Thank u sir
All the best
Sir what java operator
Bro any one Can tell me constructor returns any value
Iam studying in BTech 1St year ECE group
Enjoy your btech and after never judge the career with non sense package.experience your zeal to work in your dream job.
😂😂😂😂
10:49: A method must have a return type.
Funniest shit I have read today :xD
Java requires that a method declare the data type of the value that it returns. If a method does not return a value, it must be declared to return void.
What's so funny? It is mandatory to specify return type of a method in Java.
Ohh@@chetanmaskara8565
in.question 2 what is difference between.bite code n machine code
Byte code ko sirf java hi samjh sakta h
Sir is these questions are enough for freshers interview?
and some 5-6 basic codes
@@NorwayAbbai nahi bhai ye bhi kaafi nahi hai
@@ashutoshrai2717 I have gone through 7 interviews the same questions are asked in a confusing manner in my opinion these are enough
@@ashutoshrai2717 did you go through any interviews recently?
@@NorwayAbbai yes
A package in java is used to group related class are it is a collection of related interface
Hi sir, I'm diploma student I'm writing wipro exam after that I'll have interview this video is use for me...
Great!
@@CareerRideOfficial is this video uses for me sir ??
Hello sir
Please provide us PDF sir
Sir I am fresher I need tha questions and answers
Sure, please stay connected
.
Bro please don't try to use or imitate that fake accent. Its clearly visible that you don't talk like that naturally.It's so irritating while watching the video. Just talk normally in english remove that fake accent.
Thank u so much sir for this valuable video 😊
Thanks brother
Thank you sir
All the best
Bro numpy and panda packages raakapote dsa ki python choose cheyyochha
thank you sir