Delta final paper


Published on

this is a java paper you can use it as a reference in interview for java
for more info please visit

Published in: Education
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Delta final paper

  1. 1. National Resource Centre E&C/ F /16 Rev.-00 Page 1 of 2 DELTA INFORMATION TECHNOLOGY (WRITTEN EXAM) (SEPTEMBER, 2009)  Is it compulsory to save the java file with the same name as class name?  Is null a keyword?  What is an Iterator interface?  Can we use Hindi font in space of a,b,c.. If yes then what will be the compilation syntax?  What is the difference between Compiler and Interpreter?  Why the JAVA is platform independent?  What is a native method?  Difference between “.java” and “.class” file?  What type of value does Boolean variable can take?  When are the static and non static variable of the class initialized?  What is gc and when we use it?  Write down static initialize code?  What are wrapped classes?  Difference between Exception and Error?  What is the immediate super class of the Applet class?  Difference between method wait() and sleep()?  Difference between runtime and checked exception?  Why is the main method static?  What is the difference between class variable, member variable and automatic (local) variable?  What happens to the bits that fall off after shifting?  How can you access protected features from another package?  What is modifier final?  What is the Locale class?  Difference between Vector and ArrayList?  When a thread is created and started, what is its initial state?  What is the Gregorian Calendar class?  What is an abstract method?  What is static in java?  What is the difference between the instanceof and getclass?  Can an exception be rethrown?  What is serialization?  What are the rules for casting primitive types?  What is the Map interface?  How you can force the garbage collection?  Can a top level class be private or protected?  What is the relationship between clipping and repainting?  What is the basic difference between while and do while loop?  How can a death thread be restricted?  Name four Container classes?  What is the purpose of finalization?  Explain the Polymorphism?  Can a Byte object be cast to a double value?  Difference between Overloading and Overriding?  What is the % operator?  What's the difference between a queue and a stack?
  2. 2. National Resource Centre E&C/ F /16 Rev.-00 Page 2 of 2  What an I/O filter?  What do you understand by Synchronization?  What is the difference between private, protected, and public?  Can constructors be overloaded?  Which class is the immediate super class of the Container class?  What are different types of inner classes?  What is an inner class and How will you reference the inner class?  What is the Collection interface?  Can try statements be nested?  How can one prove that the array is not null but empty using one line of code?  Difference between Thread and a Process?  What is a void return type?  What are the steps in the JDBC connection?  What is similarities/difference between an Abstract class and Interface?  Why do threads block on I/O?  Describe synchronization in respect to multithreading?  What happens when a thread cannot acquire a lock on an object?  What is platform’s default character encoding?  How are this and super used?  What if the main method is declared as private?  Read the following program: public class test { public static void main(String [] args) { int x = 3; int y = 1; if (x = y) System.out.println("Not equal"); else System.out.println("Equal"); } } at is the result? A. The output is “Equal” B. The output in “Not Equal” C. An error at " if (x = y)" causes compilation to fall. D. The program executes but no output is show on console  If I write return at the end of the try block, will the finally block still execute?  How does a try statement determine which catch clause should be used to handle an exception?  What is the difference between preemptive scheduling and time slicing?  Read this:- class nishant { public static void main(String ss[]) { byte a=3; byte b=5; byte c=a+b; System.out.println(c); } } What will be the output and why?