Pregunta de entrevista de Infosys

1) They asked basic Java questions -How did I implemented OOps concept in Automation framework -tell me the logic of reverse string -How did you use getter and setter -what is the super class of Superclass

Respuesta de la entrevista

Anónimo

6 jul 2023

1)I have used oops OOPS concept in my project with help os Inheritence, Interface, Plymorphism, abstraction, Encapsulation 2)logic of reverse string public static String reverseString(String str){ char ch[]=str.toCharArray(); String rev=""; for(int i=ch.length-1;i>=0;i--){ rev+=ch[i]; } return rev; } 3)I have used getter and setter in the form of POJO classes to send the retrieve request data. 4) Object is superclass of every class in java.