Java Interview Questions - Ebook download as PDF File .pdf), Text File .txt) or read Download as PDF, TXT or read online from Scribd Arulazi Dhesiaseelan Employee logisticsTeamLead = new Manager("Cooma kumar" ))). + Java/J2EE Interview questions with clear and concise answers for: job seekers (junior/senior developers, architects, team/technical leads), promotion. arul kumar java pdf. Sandeep Kumar Nayak, Raees. Ahmad Khan, portal7.info Beg. Arul Prakasham.S, portal7.info,. GargX – Revolutionizing Java Based.
|Language:||English, Spanish, Dutch|
|ePub File Size:||20.31 MB|
|PDF File Size:||18.15 MB|
|Distribution:||Free* [*Sign up for free]|
Arulkumaran's Books Author Published 4+ Java/JEE career companion books that have sold over 30, copies. Maintaining a eBook (PDF): $ Learn Java/J2EE core concepts and design/coding issues. With. Java/J2EE sheets) files, Java Script files, pdf files, image files, html files etc from direct access. Employee logisticsTeamLead = new Manager("Cooma kumar", );. Java/J2EE Job Interview Companion [Arulkumaran Kumaraswamipillai, Sivayini Arulkumaran] on portal7.info *FREE* shipping on qualifying offers. + Java/ J2EE Interview questions with clear and concise answers for: job Anuj Kumar.
The author has made every effort in the preparation of this book to ensure the accuracy of the information. However, information in this book is sold without warranty either expressed or implied. The author will not be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. How would you go about describing the software development processes you are familiar with? How would you go about designing a Web application where the business tier is on a separate machine from the presentation tier. The business tier should talk to 2 different databases and your design should point out the different design patterns?
Create Xpath for dynamically changing element. How to handle pop-ups and frames? Write a Script for writing failed test cases. What are locators, types and which one is your favorite?
Tell me why we need the test cases if we already write test scenarios? Tell me the quality of testing?
Why you choose testing field? Then she asked about, what is the bug life cycle? If a developer says there is not a bug what you do? What is the last scenario you executed?
Tell me what is a test plan and why we need a test plan? Tell me requirement gathering, test planning, your role of it? Java 5 autoboxing and unboxing allows easy conversion between primitive types and their corresponding wrapper classes. Read more at Wrapper classes in Java. What is Enum in Java? Enum was introduced in Java 1. Enum constants are implicitly static and final. Read more in detail at java enum.
What is Java Annotations? Java Annotations provide information about the code and they have no direct effect on the code they annotate. Annotations are introduced in Java 5. Annotation is metadata about the program embedded in the program itself. It can be parsed by the annotation parsing tool or by the compiler. We can also specify annotation availability to either compile time only or till runtime also.
Read more at java annotations. Java Reflection API provides the ability to inspect and modify the runtime behavior of java application. We can inspect a java class, interface, enum and get their methods and field details. Reflection API is an advanced topic and we should avoid it in normal programming. Reflection API usage can break the design pattern such as Singleton pattern by invoking the private constructor i. They invoke the appropriate methods and instantiate classes through reflection API and use it a lot for other processing.
Read Java Reflection Tutorial to get in-depth knowledge of reflection api. What is composition in java? Composition is the design technique to implement has-a relationship in classes.
We can use Object composition for code reuse. Java composition is achieved by using instance variables that refer to other objects. The benefit of using composition is that we can control the visibility of other objects to client classes and reuse only what we need. Read more with example at Java Composition example. What is the benefit of Composition over Inheritance? Some of the possible reasons are: Any change in the superclass might affect subclass even though we might not be using the superclass methods.
For example, if we have a method test in the subclass and suddenly somebody introduces a method test in the superclass, we will get compilation errors in the subclass.
The composition will never face this issue because we are using only what methods we need. Inheritance exposes all the superclass methods and variables to the client and if we have no control in designing superclass, it can lead to security holes. Composition allows us to provide restricted access to the methods and hence more secure.
We can get runtime binding in composition where inheritance binds the classes at compile time. So composition provides flexibility in the invocation of methods. You can read more about above benefits of composition over inheritance at java composition vs inheritance. How to sort a collection of custom Objects in Java? We need to implement Comparable interface to support sorting of custom objects in a collection.
Comparable interface has compareTo T obj method which is used by sorting methods and by providing this method implementation, we can provide default way to sort custom objects collection. However, if you want to sort based on different criteria, such as sorting an Employees collection based on salary or age, then we can create Comparator instances and pass it as sorting methodology.
For more details read Java Comparable and Comparator. What is inner class in java?
We can define a class inside a class and they are called nested classes. Any non-static nested class is known as inner class.
Inner classes are associated with the object of the class and they can access all the variables and methods of the outer class.
We can have local inner class or anonymous inner class inside a class. For more details read java inner class. What is anonymous inner class? A local inner class without name is known as anonymous inner class. An anonymous class is defined and instantiated in a single statement.
Anonymous inner class always extend a class or implement an interface. Since an anonymous class has no name, it is not possible to define a constructor for an anonymous class. Anonymous inner classes are accessible only at the point where it is defined. What is Classloader in Java? Java Classloader is the program that loads byte code program into memory when we want to access any class.
We can create our own classloader by extending ClassLoader class and overriding loadClass String name method. Learn more at java classloader.
What are different types of classloaders? System Class Loader — It loads classes from the current classpath that can be set while invoking a program using -cp or -classpath command line options.
What is ternary operator in java? Java ternary operator is the only conditional operator that takes three operands. We can use ternary operator if-else conditions or even switch conditions using nested ternary operators.
An example can be found at java ternary operator. What does super keyword do? We can use super keyword to invoke superclass constructor in child class constructor but in this case, it should be the first statement in the constructor method.
Copy package com. We can use break statement to terminate for, while, or do-while loop. We can use break statement in switch statement to exit the switch case. You can see the example of break statement at java break. We can use break with label to terminate the nested loops. The continue statement skips the current iteration of a for, while or do-while loop.
We can use the continue statement with the label to skip the current iteration of the outermost loop. Related posts: Practical Solutions Report from JavaOne — download session resources. Hi Aamict, Please click free copy in the post above. With kind regards, AMIS. I registered my account. Hi Guys, Please visit the link in the post. This is where the book can be downloaded. Hello all, please send me Mastering EJB3.
Best regards. I read mastering ejb2.