Me postulé en línea. El proceso tomó 5 días. Acudí a una entrevista en Symphony Teleca (Bengaluru) en sept 2015
Entrevista
Got a call from HR, the interview was scheduled after 2 days. The interview comprised introduction,explaining your current work and project,Most of the questions related to core Java Programs and they will ask what is the exact Exception
Preguntas de entrevista [1]
Pregunta 1
1. Program(== method Program):
Class Hello
{
Public static void main(String args[])throws Exception{
Int a=112;
Int b =112;
System.out.println(a==b);
Int a1 =113;
Int b1=113;
System.out.println(a1=b1);
}
}
Output: True
113
2. Program(Static Method Program):
public class StaticClass {
public static void brahmi(){
System.out.println("I am Static Method");
}
public static void main(String args[])
{
StaticClass bb = null;
bb.brahmi(); //Static variable called by class name .so no need to bother about If we initialize ‘null’ value to the static method (but if it is instance method, throw error)
}
}
Output: I am Static Method
3. Program (overloading program):
public class overLoading {
public static void brahmi(int a){
System.out.println("First Overload Method");
}
public static void brahmi(Integer a){
System.out.println("Second Overload Method");
}
public static void main(String args[])
{
biswa bb = null;
bb.brahmi(1);
bb.brahmi((Integer)1);
}
}
Output: First Overload Method
Second Overload Method
4. Program (interface program):
interface brahmi {
public abstract static brahmi(int a){
System.out.println("First Method");
}
public static brahmi(Integer a){
System.out.println("Second Method");
}
int a,b;
}
class M implements brahmi{
system.out.println(a);
}
Output:
Compile time Error because
Interface can't have static methods, main method or constructor
Interface can have only abstract methods
Interface can't provide the implementation of abstract class.
The blank final field a may not have been initialized( If you initialize values to the a, b variables, default it will convert final variables because Interface has only static and final variables & that variables data we may not change in sub classes)
5. What is primitive data Type and Object
6. Compile binding vs Runtime binding difference
7. Handle windows popups using selenium Webdriver
(A).
package com.pack;
import java.util.Set;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
public class WindowExamples {
static WebDriver driver;
@Test
public void test_CloseAllWindowsExceptMainWindow() {
driver = new FirefoxDriver();
// It will open Naukri website with multiple windows
driver.get("http://www.naukri.com/");
// To get the main window handle
String windowTitle= getCurrentWindowTitle();
String mainWindow = getMainWindowHandle(driver);
Assert.assertTrue(closeAllOtherWindows(mainWindow));
Assert.assertTrue(windowTitle.contains("Jobs - Recruitment"), "Main window title is not matching");
}
public String getMainWindowHandle(WebDriver driver) {
return driver.getWindowHandle();
}
public String getCurrentWindowTitle() {
String windowTitle = driver.getTitle();
return windowTitle;
}
//To close all the other windows except the main window.
public static boolean closeAllOtherWindows(String openWindowHandle) {
Set<String> allWindowHandles = driver.getWindowHandles();
for (String currentWindowHandle : allWindowHandles) {
if (!currentWindowHandle.equals(openWindowHandle)) {
driver.switchTo().window(currentWindowHandle);
driver.close();
}
}
driver.switchTo().window(openWindowHandle);
if (driver.getWindowHandles().size() == 1)
return true;
else
return false;
}
}
8. Where your executing your Scripts
9. Frame Work Explanation
10. Ant tool Explanation
11. Let’s say your Jar file corrupted because of latest version and it is happening frequently (Tell me permanent solution to overcome problem)
12. Difference between prepare Statement and Callable Statement
If the interviewer has determined that they dont need to select the candidate, then they will prove your reply is wrong even though you are 100 % correct. They will waste your time