Category : Java Questions

Java Interview Questions 7

Java Interview Questions What are the rules for casting primitive types ? You can cast any non Boolean type to any other non boolean type You cannot cast a boolean to any other type; you cannot cast any other type …

Read more »

Java Interview Questions 3

Java Interview Questions What does a default member mean? A default member is one that does not have any of the modifiers like public, protected or private. If a class contains more than one or more final methods must the …

Read more »

Java Interview Questions 2

Java Interview Questions What are the important principles of object oriented concepts? The three important OO principles are Encapsulation, Inheritance and polymorphism. Explain the principle of encapsulation? Encapsulation is a process of binding or wrapping the data and the codes …

Read more »

Java Interview Questions 1

Java Interview Questions What is the name of the class that is super class for every class? Object Is it possible to extend the java.lang.String class? No. java.lang.String is declared as final. Class declared as final cannot be used as …

Read more »

Java Interview Questions 4

What is the difference between an interface and an abstract class? An abstract class can have instance methods that implement a default behavior. An interface can only declare constants and instance methods, but cannot implement default behavior. An class is …

Read more »

Java Interview Questions 5

Java Interview Questions Can a method be overloaded based on different return type but same argument type ? No, because the methods can be called without using their return type in which case there is ambiquity for the compiler. What …

Read more »

Java Interview Questions 6

Why is the main method static? So that it can be invoked without creating an instance of that class What is the difference between class variable, member variable and automatic(local) variable ? class variable is a static variable and does …

Read more »

Ajax    EJB   Hibernate   JavaScript   JDBC   JMS   JSP   XML    SOA   Web Service   Servlets   Spring   JSF   Struts   SAP Tutorial  Software Testing Tutorials  PDF Tutorials   SAP Training Help  J2EE

Sitemap   Follow j2eetutorial on Twitter    

Δ Top