Interview Questions and Answers for 'Flextronics' - 3 question(s) found - Order By Newest Frequently asked in face to face interviews. Q1. Write a program to print fibonacci series. Core Java
Ans. int count = 15;
int[] fibonacci = new int[count];
fibonacci[0] = 0;
fibonacci[1] = 1;
for(int x=2; x < count; x++){
fibonacci[x] = fibonacci[x-1] + fibonacci[x-2];
}
for(int x=0; x< count; x++){
System.out.print(fibonacci[x] + " ");
} Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ebay   fibonacci series Asked in 66 Companies basic   frequent Related Questions What are the steps to be performed while coding Junit with Mocking framework ? What is a Sequence File? What different level of logging you use while coding ? Have you ever encoded the response before sending it back from the service? If Yes , Which encoding was used ? What are the different type of encoding you have used ? How does encoding affect using Reader / writer classes or Stream classes in Java ? What is the difference between html encoding and url encoding ? Does spaces get's encoded in html encoding ? Frequently asked Spring interview question. Q2. What are the components of Spring framework ? Spring
Ans. Core: [Core, Bean, Context, Expression Language]
Web: [Web, Portlet, Servlet, etc]
Data Access [JMS, JDBC, etc]
AOP, Aspect Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  spring  spring framework components Asked in 12 Companies Related Questions Explain Flow of Spring MVC ? What are the benefits of using Spring Framework ? What is MVC ? How spring boot works ? What is the difference between Singleton and Prototype Bean scope in Spring ? How can we manage Error Messages in the web application ? Difference between Java beans and Spring Beans ? What bean scopes does Spring support? Explain them. What are some differences between Spring caching and Hibernate caching? Can we have two beans with same class with different bean id in spring ? Q3. What are the core OOPs concepts ? Core Java
Ans. Abstraction, Encapsulation, Polymorphism , Composition and Inheritance Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  core oops concepts Asked in 65 Companies basic   frequent Related Questions What are the difference between composition and inheritance in Java? Explain OOPs
or
Explain OOPs Principles
or
Explain OOPs Concepts
or
Explain OOPs features
or
Tell me something about OOPs What is the difference between Encapsulation and Abstraction? What are points to consider in terms of access modifier when we are overriding any method? What is Polymorphism in Java ? Difference between Overloading and Overriding ? Can you give a real world example of Encapsulation and Abstraction ? Why every object constructor automatically call super() in Object before its own constructors? How compiler handles the exceptions in overriding ? Difference between Composition and Inheritance ?