Java Programing laungage

Core Java Tutorial

Introduction of Core Java

How To Install JDk and Set of Path

Syntax of java Program

Difference between Java and C/C++

Advantage and Disadvantage of Java

What is Java

Why Java is not Pure Object Oriented Language

Java has Following Features/Characteristics

Limitation of Java Language and Java Internet

Common Misconception about Java

Simple Program of Java

Integrated Development Environment in java

Compile and Run Java Program

Applet and Comments in Java

Tokens in Java

Keywords in Java

Identifier and Variables in Java

Literals/Constants

Data Type in Java

Assignments and Initialization in Java

Operators in Java

Rule of Precedence in Java

Operator on Integer and Separators in Java Programming

Java Control Flow of Statements

If and If-else Selection Statement

Nested If-else and If-else-If Selection Statement

switch case and conditional operator Selection Statement

for and while Loop

do..while and for each Loop

break and labeled break statement

continue and labeled continue statement

return Statement and exit() Method

Escape Sequence for Special Characters and Unicode Code

Constants and Block or Scope

Statement in Java

Conversions between Numeric Types in Java

Import Statement in Java

User Input in Java using Scanner Class

User Input in Java using Console Class

Array in Java

One Dimensional Array

Two Dimensional Array

Two Dimensional Array Program

Command Line Argument in Java

String args Types in Java

Uneven/Jagged array in java

Math Class Function and Constant

Math Class all Function used in a program

Enumerated Types in Java

Object Oriented Programming v/s Procedural Programming

Object Oriented Programming Concepts in Java

Introduction to Class,Object and Method in Java

Class Declaration in Java

Class & Objects in java

Encapsulation in Java

Modifiers/Visibility for a Class or Interrface or member of a Class

Polymorphism in Java

Runtime polymorphism (dynamic binding or method overriding)

Java 6 Interview Questions Answers
Previous Home Next
What is the difference between static and dynamic class loading in java 6?

static class loading in java 6 means loading a class with new operator as below:

List mylist = new ArrayList();

Dynamic loading class loading in java means invoking the functions of a class loader at run time as below:

List myList = (List)class.forName(sampleClassName).newInstance();
What is primordial or bootstrap class loader in java and its use?

Primordial or bootstrap class loader in java is a special Class loader that is embedded within the JVM or Java Virtual Machine. it is used to load JDK internal classes and java.* packages. primordial or bootstrap class loader in java is not reloadable.

same singleton class loaded by different class loader is equal true or false.

False. Same singleton class loaded by different class loader is not equal. Because Two objects loaded by different class loaders are not equal.

What is RMI or Remote Method Invocation in the context of distributed java applications?

RMI in the context of distributed java applications is an API(Application Programming Interface) that allows us to invoke a method on an object existing in another address space that may or may not be on the same machine. In other words RMI is an object-oriented Implementation of RPC(Remote procedure call).

What is the difference between Socket and ServerSocket class in java.net package?

Socket class is used as an end point for client side of the connection and the ServerSocket class is used as an end point of server side of the connection, respectively.

What is RPC or Remote Procedure call in java distributed programming?

In java distributed programming RPC or Remote Procedure call can be seen as inter process communication API that is used to call a procedure in another address space mainly on another computer on a shared network. RMI or Remote method Invocation is Object oriented Implementation of RPC or Remote Procedure call.

What is the difference between soap and RMI or Remote method Invokation?

RMI or Remote Method Invocation can be used to to talk with another Java application while Soap can be used to to talk to applications written in any language including java.

Which implementation for distributed application is slower Soap or sockets?

SOAP implementation for distributed application is slower then plain sockets.

What is the difference between RMI or Remote Method Invocation and Sockets in java 6?

RMI or Remote Method Invocation can be used to to talk with another Java application while sockets can be used to to talk to applications written in any language including java. RMI is good for interaction involving small size of data Sockets is good for interaction involving large size of data .

What is the similarity and difference between RMI and CORBA ?

similarity: Both RMI(Remote Method Invocation) and CORBA is another object-oriented RPC mechanism for RPC or Remote Procedure call.

Differences: RMI is a language dependent standard but CORBA language independent standard. CORBA has a standard for TP monitors but Java RMI does not have it.

What are the characteristics provided in jdk1.6 apart from other versions?

Java SE 6 specification focused on new specifications and APIs including:

  1. XML processing and Web services
  2. JDBC 4.0
  3. Annotation-based programming
  4. Java compiler APIs
  5. Application client GUI APIs
What is difference between jdk1.5 and jdk1.6?
  1. Java 1.6 runs faster than Java 1.5.
  2. Java 1.6 makes programming easier by implementing various tools such as SwingWorker and JTable to develop user interface.
  3. Java 1.6 includes new or, in some cases, improved monitoring and management tools, including the "infamous" Jhat, which is used to explore core dumps. It also includes more diagnostic information, making bug fixing somewhat easier.
  4. In java 1.6,Java DB, a new database management tool, has been included. Java DB is based on the open-source Apache Derby and is supported by Sun.
Advantages to running applications on Java SE 6?

Applications run faster on the desktop and servers New 'Dynamic Attach' diagnostics simplify troubleshooting Expanded Solaris DTrace support provides additional value on Solaris Improved 'native' look and feel across Solaris, Linux, and Windows First Java platform with full support for Windows Vista.

Benefits in upgrading developer environments to Sun's Java SE 6.

JavaScript integrated and included with the platform Scripting languages framework extends support for Ruby, Python, and other languages Complete light-weight platform for web services, right out of the box Simplified GUI design and expanded native platform support Full JDBC4 implementation providing improved XML support for Databases Java DB included with the JDK, a free to use and deploy Java Database Full support by NetBeans IDE 5.5 Sun Developer Services available to help build more robust applications.

What is the difference in loading of first class and subsequent class in java?

The difference in loading of first class and subsequent class in java is that the first class is loaded by static main() method and the subsequent classes are loaded by the classes already loaded and running in JVM or Java Virtual Machine.

Previous Home Next