Actually there is no difference between access specifier and access modifier in Java they both mean the same and Access modifier is the new and official term used instead of access specifier
@@sahiljagtap1958 I now work at my dream company...I can't believe it! I watched some videos from @RD Automation Learning and practiced writing automation tests.
Sir can you make pdf for java interview questions with answers for cracking interview sir pleaase i am from mechanical background i m trying for software field
Hi bro I am working in TCS as contact employee from 1.3 years now TCS is offered me for permanent position, total 2.6 years of experience current CTC is 3.5. should i accept TCS permanent offed and what CTC need to ask
@@rdautomationlearning609 Can you please schedule one mock interview for me sir.... because I m also tried to get job because your mock is very helpful for facing the interview
Time Stamp : 14:10 //Find a number is Palindrome or not || Java Solution class Solution { // Method to check if the given integer is a palindrome public boolean isPalindrome(int x) { // Convert the integer to a string for easier manipulation String c = Integer.toString(x); // Convert the string to a character array char[] cArr = c.toCharArray(); // Get the length of the character array int len = cArr.length; // Initialize the 'end' pointer to the last index of the character array int end = len-1; // Iterate over the first half of the character array for(int i=0; i
Aggregation is weak relationship while composition is string relationship like car and indicator' s relationship is example of aggregation but car and engine's relationship is composition ... Without aggregation the system is dtill complete but without composition its not
I have completed my graduation in BCA in 2018 .There is 4 yrs gap . So, what I'll say in interview. In these 4yrs I was trying to crack gvrnt exam but I can't...also suffering from some medical issue...
About pointers we do have object refrence variable whihc stores adressof location where the object is stored in heap and about pointer it gives the memory location then whats the diffrence between pointer and object refrence variable
Can you please provide a video on parallel tests execution without using cypress cloud on GitHub actions. Tests should be run on GitHub actions without cypress cloud.
@@ruch830 this terminology is only for C++ If you want proof then do one thing declare top level class as Private and see the error saying private modifier is not allowed on top level classes. Compiler also considers private as modifier but not specifier..As private,public, protected, default are access specifiers in C++ but they all are considered as modifiers in java
Access Specifiers: Default: within the package Public: can be access by any class or method Private: within the class Protected: can be accessed by class of same package and subclass extends the child class
Aggregation It is a special form of Association where: It represents Has-A’s relationship. It is a unidirectional association i.e. a one-way relationship. For example, a department can have students but vice versa is not possible and thus unidirectional in nature. In Aggregation, both the entries can survive individually which means ending one entity will not affect the other entity. Composition is a restricted form of Aggregation in which two entities are highly dependent on each other. It represents part-of relationship. In composition, both entities are dependent on each other. When there is a composition between two entities, the composed object cannot exist without the other entity.
....for palindrome, wouldn't it be easier to just convert the number to string and reverse it then compare both? Or just reverse half of the string, then compare left and right part?
@@bartallen7023 after gaining more experience from problem solving: my answer would be, use two pointers, one at start, one at end, move them towards the middle, check if chars are same or not, if not return false, otherwise after while loop ends(both at mid) return true
public class Don { public static void main(String[] args) { int number=15; if(number > 0) { System.out.println(number+" is a positive number"); } else if(number < 0) { System.out.println(number+" is a negative number"); } else { System.out.println(number+" is neither positive nor negative"); } } } OUTPUT =15 POSITIVE
If you write public void static main, you are altering the signature by switching the order of the keywords void and static. This change will cause a compilation error, and the program will not run successfully.