Pinards PDF

Hi JAVA is a ocean, so as you have going to shown 2+ years of experience you must have The above site is managed by Arul Kumaran, who is well known author for his book Java / J2EE, . Hitesh Kumar, CEO & Founder at Sitesbay. com. Java/J2EE Job Interview Companion [Arulkumaran Kumaraswamipillai, Sivayini Arulkumaran] on *FREE* shipping on qualifying offers. + Java/ J2EE Interview questions with clear and concise answers for: job Anuj Kumar. View Arul kumar’s profile on LinkedIn, the world’s largest professional community. Arul has 4 jobs listed on their profile. GWT, Java and J2EE Developer.

Author: Mausar Gakus
Country: Kenya
Language: English (Spanish)
Genre: Medical
Published (Last): 5 July 2015
Pages: 290
PDF File Size: 7.48 Mb
ePub File Size: 14.23 Mb
ISBN: 930-8-14570-132-5
Downloads: 89053
Price: Free* [*Free Regsitration Required]
Uploader: Kagar

What do you know about Java? Java is a high-level programming language originally developed by Sun Microsystems and released in What are the supported platforms by Java Programming Language? List any five features ukmar Java?

200 LATEST JAVA interview Questions pdf arul kumar

Why is Java Architectural Neutral? How Java enabled High Performance?

Java uses Just-In-Time compiler to enable high performance. Just-In-Time compiler is a program that turns Java bytecode, which is a program that contains instructions that must be interpreted into jzva that can be sent directly to the processor. Why Java is considered dynamic? It is designed to adapt to an evolving environment.

Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time. When Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code.

This byte code is distributed over the web and interpreted by virtual Machine JVM on whichever platform it is being run. Some Java keywords are import, super, finally, etc. What do you mean by Object? A class is a blue print from which individual objects are created. A class can contain fields and methods to describe the behavior of an object.

What kind of variables a class can consist of? A class consist of Local variable, instance variables and class variables. What is a Local Aryl A: Variables defined inside methods, constructors or blocks are called local variables.

LATEST JAVA interview Questions pdf arul kumar

The variable will be declared and initialized within the method and it will be destroyed when the method has completed.

What is a Instance Variable A: Instance variables are variables within a class but outside any method. These variables are instantiated when the class is loaded. What is a Class Variable A: These are variables declared with in a class, outside any method, with the static keyword.

What is Singleton class? Singleton class control object creation, limiting the number to one but allowing the flexibility to create more objects if the situation changes. What do you mean by Constructor? Constructor gets invoked when a new object is created. Every class javx a constructor. If we do not explicitly write a constructor for a class the java compiler builds a default constructor for that class.


List the three steps for creating an Object for a class? An Object is first declared, then instantiated and then it is initialized. What is the default value of byte datatype in Java?

Default value of byte datatype is agul. What is the default value of float and double datatype in Java? For float its 0. When a byte datatype is used? This data kumarr is used to save space in large arrays, mainly in place of integers, since a byte is four times smaller than an int.

Arun Kumar _ Java 5_J2EE Interviews Questions and Answers – Free Download PDF

What is a static variable? Class variables also known as static variables are declared with the static keyword in a class, but outside a method, constructor or a block.

What do you mean by Access Modifier? Java provides access modifiers to set access levels for classes, variables, methods and constructors. A member has package or default accessibility when no accessibility modifier is specified.

What is protected access modifier? What do you mean by synchronized Non Access Modifier?

Java provides these modifiers for providing functionalities other than Access Modifiers, synchronized used to indicate that a method can be accessed by only one thread at a time.

According to Java Operator precedence, which operator is considered to be with highest precedence? Variables used in a switch statement kmar be used with which datatypes? Variables used in a switch statement can only be a byte, short, int, or char.

When parseInt method can be used? This method is used to get the primitive data type of a certain String. Why is Aful class considered immutable? The String class is immutable, so that once it is created a String object cannot be changed. Since String is immutable it can safely be shared between many threads ,which is considered very important for multithreaded programming. Why is StringBuffer called mutable?

The String class is considered as immutable, so that once it is created a String object cannot be changed. If there is a necessity to make alot of modifications to Strings of characters then StringBuffer should be used.

What is the difference between StringBuffer and StringBuilder class? Use StringBuilder whenever possible because it is faster than StringBuffer. But, if thread safety is necessary then use StringBuffer objects. Which package is used for pattern matching with regular expressions? Pattern class, Matcher class and PatternSyntaxException class. What is finalize method? This method is called finalizeand it can be used to ensure that an object terminates cleanly. What is an Exception?


An exception is a problem that arises during the execution of a program. What do you mean by Checked Exceptions? It is an exception that is typically a user error or a problem that cannot be foreseen by the programmer. For example, if a wrul is to be opened, but the file cannot be found, an exception occurs.

These exceptions cannot simply be ignored at the time of kukar. It is an exception that occurs that probably could have been avoided by the programmer. As opposed to checked exceptions, runtime exceptions are ignored at the time of compliation.

Which are the two subclasses under Exception class? The Exception class has two main subclasses: When throws keyword is used? If a method does not handle a checked exception, the method must declare it using the throwskeyword. When throw keyword is used? An exception can be thrown, either a newly instantiated one or an exception that you just caught, by using throw keyword.

How finally used under Exception Handling?

The finally keyword is used to create a block of code that follows a try block. A finally block of code always executes, whether or not an exception has occurred. What things should be kept in mind while creating your own exceptions in Java?

While creating your own exception:. If you want to write a checked exception that is automatically enforced by the Handle or Declare Rule, you need kumag extend the Exception class. It is the process where one qrul acquires the properties of another. With the use of inheritance the information is made manageable in a hierarchical order. When super keyword is used? It can be also used to refer to a hidden field.

Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to jaava child class object. It refers to the ability to make a class abstract in OOP.

It kumsr to reduce the complexity and also improves the maintainability of the system. What is Abstract class A: These classes cannot be instantiated and are either partially implemented or not at all implemented. This class contains one or more abstract methods which are simply method declarations without a body. When Abstract methods are used?