What are the most important features of Java?

Which one of them do you consider the best feature of Java?

What do you mean by platform independence?

What is byte code?

How does Java acheive platform independence?

What is a JVM?

Are JVM's platform independent?

Who provides the JVM?

What is the difference between a JDK and a JVM?

What is a pointer and does Java support pointers?

How is an object reference different from a pointer?

Does Java support multiple inheritance?

Why Java doesn't support multiple inheritance?

Is Java a pure object oriented language?

What is the difference between Path and Classpath?

Why does Java not support operator overloading?

What are keywords?

What are reserved keywords? And can you name few reserved keywords?

What is the overhead of introducing a new keyword?

Have you come across difficulties due to introduction of a new keyword?

What are identifiers?

What is meant by naming conventions? And what are the naming conventions followed in Java?

If you dont follow coding standards, will it result in compilation error?

How to make sure that all programmers are following the coding standards?

What are literals?

Name the eight data types which are available in Java?

Are primitive data types objects in Java?

What are all the number data types? And are they signed or unsigned?

What are the possible values that a boolean data type can hold?

What are default values?

What are the default values of primitive data types?

Are object references defaulted?

Are arrays defaulted?

Can you explain keyword , identifier and literal with an example?

What are the 3 ways to represent an integer value?

In how many ways a char value be represented?

How is it possible to represent char using a integer value?

Can char be used when an integer value is expected?

Can char be manipulated like integers?

What is Unicode?

What should i have to do if i have to print my name in Tamil?

How will the below literal value be internally represented?
float f = 21.22;

Give your observation on the below statement.
int i = 10/0;

Give your observation on the below statement.
double d = 10.12/0;

What is a Variable?

What are the 3 types of variables?

What are Local variables?

When are local variables eligible for garbage collection?

What are Instance variables?

Are arrays primitive data types?

What are different ways to declare an array?

What are the 3 steps in defining arrays?

What is the simplest way to defining an primitive array?

What is wrong with the below code segment?
int i[] = new int[5]
System.out.println(i.length())

What is wrong with the below code segment?
int i[5] = new int[]
System.out.println(i.length)

What will be the output of the below code segment?
int i[] = new int[5]
System.out.println(i.length)

What are the frequent RuntimeException's encountered because of improper coding with respect to arrays?

Should a main method be compulsorily declared in all java classes?

What is the return type of the main method?

Why is the main method declared static?

What is the argument of main method?

How to pass an argument to main method?

What will happen if no argument is passed to the main method?

Can a main method be overloaded?

Can a main method be declared final?

Does the order of public and static declaration matter in main method?

Can a source file contain more than one Class declaration?

If a source file has 2 class declaration in it, on compilation how many class files will be created?

Can the first line of the source code be a comment?

Can the source file name and the class name in the file be different?

Explain Inheritance?

Does Java support multiple inheritance?

Why Java doesn’t support muliple inheritance?

Which keyword is used for inheriting from another class?

Can a subclass be referenced for a super class object?

Can a parent class be referenced for a subclass object?

Can an interface be referenced for any object?

What are constructors?

What are the decalaration of a constructor?

Does constructors throw exceptions?

Can constructors be overloaded?

Is it compulsory to define a constructor for a class?

What is a default constructor?

Explain about “this” operator?

Explain about “super” operator?

What is the sequence of constructor invocation?

Can a constructor be defined for an interface?

Explain Polymorphism?

What is Overloading?

When to use overloading?

Explain Overriding?

What is a package?

Which package is imported by default?

Is package statement mandatory in a Java source file?

What will happen if there is no package for Java source file?

What is the impact using a * during importing(for example import java.io.*;?

Can a class declared as private be accessed outside it's package?

Can a class be declared as protected?

What is the access scope of a protected method?

What is the impact of marking a constructor as private?

What is meant by default access?

Is default a keyword?

Then how to give default access to a class?

Can i give two access specifiers to a method at the same time?

What is the purpose of declaring a variable as final?

Can a final variable be declared inside a method?

What is the impact of declaring a method as final?

I don't want my class to be inherited by any other class. What should i do?

When will you declare a class as final?

Can you give few examples of final classes defined in Java API?

How to define a constant variable in Java?

Can a class be declared as static?

When will you define a method as static?

I want to print "Hello" even before main is executed. How will you acheive that?

What is the use of a static code block?

Cant you use the constructor for initialisation rather than static block?

Will the static block be executed for each object?

What are the restriction imposed on a static method or a static block of code?

When overriding a static method, can it be converted to a non-static method?

What is the importance of static variable?

Can we declare a static variable inside a method?

What is an Abstract Class and what is it's purpose?

What is the use of a abstract variable?

Can a abstract class be declared final?

What is an abstract method?

Can a abstract class be defined without any abstract methods?

What happens if a subclass has inherited a abstract class but has not provided implementation for all the abstract methods of the super class?

What happens if a class has implemented an interface but has not provided implementation for a method in a interface?

Can you create an object of an abstract class?

Can I create a reference for a an abstract class?

Can a class be marked as native?

What is the use of native methods?

What is the disadvantage of native methods?

What is the purpose of transient modifier?

What is the purpose of volatile modifier?

What is an Interface?

Class C implements Interface I containing method m1 and m2 declarations. Class C has provided implementation for method m2. Can i create an object of Class C?

Can a method inside a Interface be declared as final?

Can an Interface implement another Interface?

Can an Interface extend another Interface?

Can a Class extend more than one Class?

Why is an Interface be able to extend more than one Interface but a Class can't extend more than one Class?

Can an Interface be final?

Can a class be defined inside an Interface?

Can an Interface be defined inside a class?

What is a Marker Interface?

Can we define private and protected modifiers for variables in interfaces?

What modifiers are allowed for methods in an Interface?

When can an object reference be cast to an interface reference?

What are Inner Classes?

What are Nested Classes?

What is the super class of all Inner Classes?

What are the disadvantages of Inner classes?

Name the different types of Inner Classes?

What are Regular Inner Classes?

Can a regular inner class access a private member of the enclosing class?

How will you instantiate a regular inner class from outside the enclosing class?

What are Local Inner Classes or Method Local Inner Classes?

What are the constraints on Method Local Inner Classes?

What are Anonymous Inner Classes? Name the various forms of Anonymous Inner Classes.

How many classes can an Anonymous Inner classes inherit from?

How many Interfaces can an Anonymous Inner classes implement?

What are Static Inner Classes?

Can you instantiate the static Inner Class without the existence of the outer class object? If Yes, Write a sample statement.

What are the constraints on Static Inner Classes?

How many class files are produced for source file having one Outer class and one Inner class?