Data Warehousing (1107) Databases (3004) JAVA Related 2673) MainFrames (975) Microsoft Related (2296) Networking (553)
Operating Systems (919) Programming (3254) SAP (2318) Testing FAQS (1674) Testing Material (252) Web Related (994)
Custom Search

What is 1000Projects

'1000projects.com' is an educational content website dedicated to finding and realizing Final Year Projects, IEEE Projects, Engineering Projects, Science Fair Projects, Project Topics, Project Ideas, Major Projects, Mini Projects, Paper Presentations, Presentation Topics, IEEE Topics, .Net Projects, Java Projects, PHP Projects, VB Projects, SQL Projects, C & DS Projects, C++ Projects, Perl Projects, ASP Projects, Delphi Projects, HTML Projects, Cold Fusion Projects, Java Script Projects, Btech Projects, BE Projects, MCA Projects, Mtech Projects, MBA Projects, Project on Software, CBSE Projects, Testing Projects, Embedded Projects, Chemistry Projects, Electronics Projects, Electrical Projects, Science Projects, Mechanical Projects, Mba project Reports, Placement papers, Sample Resumes, Entrance Exams, Technical Faq's, Puzzles, etc

how it works?

Everything on this site is submitted by the students in this professional community. You Can submit your Projects, Project Topics & Ideas to info.1000projects{at}gmail.com after you submit your project/project Idea/Abstract/Seminar Topics, These are being verified and approved by our administrator. after approval of this project/project Idea/Abstract/Seminar Topics, It can be shown on 1000projects.com so that other users can read/discuss it.The entire content on this website is Only For Educational Purpose, Non Commercial use!

Please help us/Other Users by sending projects/project Ideas/Abstracts/Seminar Topics. Thanking You!!!!!


Category Articles
What is difference between an Abstract class and Interface?
Added on Thu, Dec 24, 2009
1.Interfaces provide a form of multiple inheritance. A class can extend only one other class. 2.Interfaces are limited to public methods and constants with no implementation. Abstract classes can have a partial implementation, protected parts,... Read More
What are wrapped classes?
Added on Thu, Dec 24, 2009
Wrapped classes are classes that allow primitive types to be accessed as objects Read More
Is it possible to override the main method?
Added on Thu, Dec 24, 2009
NO, because main is a static method. A static method can't be overridden in Java. Read More
Why does Java not support Multiple Inheritance?
Added on Thu, Dec 24, 2009
java does not support multiple inheritance because different classes may have different variable with same name that may be be contradicted and can cause confusions resulting in errors. or Java absolutely support multiple inheritance in terms... Read More
What are static methods?
Added on Thu, Dec 24, 2009
Methods declared with the keyword static as modifier are called static methods or class methods. They are so called because they affect a class as a whole, not a particular instance of the class. Static methods are always invoked without reference to... Read More
How does Java implement polymorphism?
Added on Thu, Dec 24, 2009
Inheritance, Overloading and Overriding are used to achieve Polymorphism in java). Polymorphism manifests itself in Java in the form of multiple methods having the same name. * In some cases, multiple methods have the same name, but different formal... Read More
How to define an Abstract class?
Added on Thu, Dec 24, 2009
A class containing abstract method is called Abstract class. An Abstract class can't be instantiated. Example of Abstract class: abstract class testAbstractClass { protected String myString; public String getMyString() { return... Read More
How are this() and super() used with constructors?
Added on Thu, Dec 24, 2009
* Constructors use this to refer to another constructor in the same class with a different parameter list. * Constructors use super to invoke the superclass's constructor. If a constructor uses super, it must use it in the first line; otherwise... Read More
What is final modifier?
Added on Thu, Dec 24, 2009
The final modifier keyword makes that the programmer cannot change the value anymore. The actual meaning depends on whether it is applied to a class, a variable, or a method. * final Classes- A final class cannot have subclasses. * final... Read More
Can overloaded methods be override too?
Added on Thu, Dec 24, 2009
Yes, derived classes still can override the overloaded methods. Polymorphism can still happen. Compiler will not binding the method calls since it is overloaded, because it might be overridden now or in the future. Read More
What is Dynamic Binding?
Added on Thu, Dec 24, 2009
Binding refers to the linking of a procedure call to the code to be executed in response to the call. Dynamic binding (also known as late binding) means that the code associated with a given procedure call is not known until the time of the call at... Read More
What are the differences between Class Methods and Instance Methods
Added on Thu, Dec 24, 2009
Class Methods Instance Methods Class methods are methods which are declared as static. The method can be called without creating an instance of the class Instance methods on the other hand require an instance of the class to exist before they can be... Read More
When you declare a method as abstract, can other nonabstract methods access it?
Added on Thu, Dec 24, 2009
Yes, other nonabstract methods can access a method that you declare as abstract. Read More
What are static variables?
Added on Thu, Dec 24, 2009
Variables that have only one copy per class are known as static variables. They are not attached to a particular instance of a class but rather belong to a class as a whole. They are declared by using the static keyword as a modifier. static type... Read More
Do interfaces have member variables?
Added on Thu, Dec 24, 2009
Interfaces may have member variables, but these are implicitly public, static, and final- in other words, interfaces can declare only constants, not instance variables that are available to all implementations and may be used as key references for... Read More
Explain the significance of try-catch blocks?
Added on Thu, Dec 24, 2009
Whenever the exception occurs in Java, we need a way to tell the JVM what code to execute. To do this, we use the try and catch keywords. The try is used to define a block of code in which exceptions may occur. One or more catch clauses match a... Read More
What is the difference throw and throws
Added on Thu, Dec 24, 2009
throws: Used in a method's signature if a method is capable of causing an exception that it does not handle, so that callers of the method can guard themselves against that exception. If a method is declared as throwing a particular class of... Read More
What is a local, member and a class variable?
Added on Thu, Dec 24, 2009
Variables declared within a method are ?local? variables. Variables declared within the class i.e not within any methods are ?member? variables (global variables). Variables declared within the class i.e not within any methods and are defined as ... Read More
What are the similarities between an array and an Array List?
Added on Thu, Dec 24, 2009
An array is indexed fixed number of homogeneous elements. where as in Array List you can create any number of objects with any type. Read More
Can constructor be inherited?
Added on Thu, Dec 24, 2009
No, constructor cannot be inherited, though a derived class can call the base class constructor. Read More
What does it mean that a method or field is ?static??
Added on Thu, Dec 24, 2009
Static variables and methods are instantiated only once per class. In other words they are class variables, not instance variables. If you change the value of a static variable in a particular object, the value of that variable changes for all... Read More
What is the use of finally block?
Added on Thu, Dec 24, 2009
The finally block encloses code that is always executed at some point after the try block, whether an exception was thrown or not. This is right place to close files, release your network sockets, connections, and perform any other cleanup your code... Read More
Describe the wrapper classes in Java.
Added on Thu, Dec 24, 2009
Wrapper class is wrapper around a primitive data type. An instance of a wrapper class contains, or wraps, a primitive value of the corresponding type. Read More
What do you understand by Synchronization?
Added on Thu, Dec 24, 2009
Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time. In non synchronized multithreaded application, it is possible for one thread... Read More
What is the difference between abstraction and encapsulation?
Added on Thu, Dec 24, 2009
* Abstraction focuses on the outside view of an object (i.e. the interface) Encapsulation (information hiding) prevents clients from seeing it?s inside view, where the behavior of the abstraction is implemented. * Abstraction solves the problem in... Read More
how many ways to create Thread and which one is good? runnable interface or Thread class?
Added on Thu, Dec 24, 2009
Two ways to create threads 1. By creating thread class class class name extends Thread { } 2.By converting class to thread ie using Runnable interface Read More
What is Collection API?
Added on Thu, Dec 24, 2009
The Collection API is a set of classes and interfaces that support operation on collections of objects. These classes and interfaces are more flexible, more powerful, and more regular than the vectors, arrays, and hashtables if effectively replaces. Read More
What is Encapsulation?
Added on Thu, Dec 24, 2009
Encapsulation is a technique used for hiding the properties and behaviors of an object and allowing outside access only as appropriate. It prevents other objects from directly altering or accessing the properties or methods of the encapsulated object... Read More
What is Polymorphism?
Added on Thu, Dec 24, 2009
Polymorphism is briefly described as "one interface, many implementations." Polymorphism is a characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable... Read More
How to invoke a superclass version of an Overridden method
Added on Thu, Dec 24, 2009
To invoke a superclass method that has been overridden in a subclass, you must either call the method directly through a superclass instance, or use the super prefix in the subclass itself. From the point of the view of the subclass, the super prefix... Read More
what is main purpose of interface?
Added on Thu, Dec 24, 2009
There is no multiple inheritance in java,we can't extends more than one class at a time,so interface is a way to implement multiple inheritance in java, and from design point view when we have some class specific behaviours we can put... Read More
Can we instantiate an interface
Added on Thu, Dec 24, 2009
You can?t instantiate an interface directly, but you can instantiate a class that implements an interface. Read More
What is the difference between static and non-static variables?
Added on Thu, Dec 24, 2009
A static variable is associated with the class as a whole rather than with specific instances of a class. Non-static variables take on unique values with each object instance. Read More
Can we have the try block without catch block?
Added on Thu, Dec 24, 2009
Yes, we can have the try block without catch block, but finally block should follow the try block. Note: It is not valid to use a try clause without either a catch clause or a finally clause. Read More
What do u mean by "method" in java ?
Added on Thu, Dec 24, 2009
Java methods are similar to functions or procedures in other programming languages. Every Java program must have one main() method. Here is the main() method from a Java program which prints "Hello World": public static void main ... Read More
What is transient variable?
Added on Thu, Dec 24, 2009
Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can't be written to the stream instead when the class... Read More
Why would you use a synchronized block vs. synchronized method
Added on Thu, Dec 24, 2009
Synchronized blocks place locks for shorter periods than synchronized methods. Read More
What is a marker interface?
Added on Thu, Dec 24, 2009
Marker interfaces are those which do not declare any required methods, but signify their compatibility with certain operations. The java.io.Serializable interface and Cloneable are typical marker interfaces. These do not contain any methods, but... Read More
why java uses singly rooted heirarchy
Added on Thu, Dec 24, 2009
All objects in Java are inherited from same base class called 'Object'.In Java all objects have common interface to implement and it makes implementaion of Garbage collector lot easier in Java.The necessary implementaion is provided in base... Read More
Can we create an object for an interface?
Added on Thu, Dec 24, 2009
Yes, it is always necessary to create an object implementation for an interface. Interfaces cannot be instantiated in their own right, so you must write a class that implements the interface and fulfill all the methods defined in it. Read More
When should I use abstract classes and when should I use interfaces
Added on Thu, Dec 24, 2009
Use Interfaces when? * You see that something in your design will change frequently. * If various implementations only share method signatures then it is better to use Interfaces. * you need some classes to use some methods which you don't... Read More
Which is superclass of Exception?
Added on Thu, Dec 24, 2009
Throwable", the parent class of all exception related classes. Read More
How to define an Interface?
Added on Thu, Dec 24, 2009
In Java Interface defines the methods but does not implement them. Interface can include constants. A class that implements the interfaces is bound to implement all the methods defined in Interface. Read More
Explain the user defined Exceptions?
Added on Thu, Dec 24, 2009
User defined Exceptions are the separate Exception classes defined by the user for specific purposed. An user defined can created by simply sub-classing it to the Exception class. This allows custom exceptions to be generated (using throw) and caught... Read More
Explain the different forms of Polymorphism.
Added on Thu, Dec 24, 2009
There are two types of polymorphism one is Compile time polymorphism and the other is run time polymorphism. Compile time polymorphism is method overloading. Runtime time polymorphism is done using inheritance and interface. Note: From a practical... Read More
How do you prevent a method from being overridden?
Added on Thu, Dec 24, 2009
To prevent a specific method from being overridden in a subclass, use the final modifier on the method declaration, which means "this is the final implementation of this method", the end of its inheritance hierarchy. public final void exampleMethod(... Read More
What is Early Binding?
Added on Thu, Dec 24, 2009
Early binding is nothing but declaring the Object of specific type but with this kind of object its cant be used to hold any other type of the Object/class. Read More
Explain garbage collection?
Added on Thu, Dec 24, 2009
Garbage collection is one of the most important feature of Java. Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects (value is null) from the memory. User program cann't... Read More
Explain the Inheritance principle.
Added on Thu, Dec 24, 2009
Inheritance is the process by which one object acquires the properties of another object. Read More
What is super?
Added on Thu, Dec 24, 2009
super is a keyword which is used to access the method or member variables from the superclass. If a method hides one of the member variables in its superclass, the method can refer to the hidden variable through the use of the super keyword. In the... Read More
Explain the Encapsulation principle.
Added on Thu, Dec 24, 2009
Encapsulation is a process of binding or wrapping the data and the codes that operates on the data into a single entity. This keeps the data safe from outside interface and misuse. One way to think about encapsulation is as a protective wrapper that... Read More
what is main purpose of abstract class?
Added on Thu, Dec 24, 2009
if a class contains abstract method,that class must be declared as a abstract class. Abstract methods contains only declarations. it does not contain objects. Read More
How does the Java default constructor be provided?
Added on Thu, Dec 24, 2009
If a class defined by the code does not have any constructor, compiler will automatically provide one no-parameter-constructor (default-constructor) for the class in the byte code. The access modifier (public/private/etc.) of the default constructor... Read More
What is static block?
Added on Thu, Dec 24, 2009
Static block which exactly executed exactly once when the class is first loaded into JVM. Before going to the main method the static block will execute. Read More
Can we instantiate an abstract class?
Added on Thu, Dec 24, 2009
An abstract class can never be instantiated. Its sole purpose is to be extended (subclassed). Read More
Can there be an abstract class with no abstract methods in it?
Added on Thu, Dec 24, 2009
Yes, there can be an abstract class without abstract methods. Read More
What is error?
Added on Thu, Dec 24, 2009
An Error indicates that a non-recoverable condition has occurred that should not be caught. Error, a subclass of Throwable, is intended for drastic problems, such as OutOfMemoryError, which would be reported by the JVM itself. Read More
Why Errors are Not Checked?
Added on Thu, Dec 24, 2009
A unchecked exception classes which are the error classes (Error and its subclasses) are exempted from compile-time checking because they can occur at many points in the program and recovery from them is difficult or impossible. A program declaring... Read More
What if there is a break or return statement in try block followed by finally block?
Added on Thu, Dec 24, 2009
If there is a return statement in the try block, the finally block executes right after the return statement encountered, and before the return executes. Read More
Explain the Polymorphism principle.
Added on Thu, Dec 24, 2009
The meaning of Polymorphism is something like one name many forms. Polymorphism enables one entity to be used as general category for different types of actions. The specific action is determined by the exact nature of the situation. The concept of... Read More
What is method overriding?
Added on Thu, Dec 24, 2009
Method overriding occurs when sub class declares a method that has the same type arguments as a method declared by one of its superclass. The key benefit of overriding is the ability to define behavior that?s specific to a particular subclass type.... Read More
what is the class variables ?
Added on Thu, Dec 24, 2009
When we create a number of objects of the same class, then each object will share a common copy of variables. That means that there is only one copy per class, no matter how many objects are created from it. Class variables or static variables are... Read More
What is the difference between throw and throws?
Added on Thu, Dec 24, 2009
Throw:it is used to raise exception explicitly that means it is use when a user defined exception is raised. Throws:if a method is capable of throwing an exception but it does not handle the exception that must be specified by using "throws"... Read More
What is an exception
Added on Thu, Dec 24, 2009
An exception is an event, which occurs during the execution of a program, that disrupts the normal flow of the program's instructions. Read More
Why Runtime Exceptions are Not Checked?
Added on Thu, Dec 24, 2009
The runtime exception classes (RuntimeException and its subclasses) are exempted from compile-time checking because, in the judgment of the designers of the Java programming language, having to declare such exceptions would not aid significantly in... Read More
What are the different ways to handle exceptions?
Added on Thu, Dec 24, 2009
There are two ways to handle exceptions: * Wrapping the desired code in a try block followed by a catch block to catch the exceptions. * List the desired exceptions in the throws clause of the method and let the caller of the method handle those... Read More
Describe the principles of OOPS
Added on Thu, Dec 24, 2009
There are four main principals of oops which are called Polymorphism, Inheritance and Encapsulation and abstraction. Read More
What is runtime polymorphism or dynamic method dispatch
Added on Thu, Dec 24, 2009
In Java, runtime polymorphism or dynamic method dispatch is a process in which a call to an overridden method is resolved at runtime rather than at compile-time. In this process, an overridden method is called through the reference variable of a... Read More
What are the differences between method overloading and method overriding
Added on Thu, Dec 24, 2009
Overloaded Method Overridden Method Arguments Must change Must not change Return type Can change Can?t change except for covariant returns Exceptions Can change Can reduce or eliminate. Must not throw new or... Read More
Explain the different forms of Polymorphism
Added on Thu, Dec 24, 2009
Polymorphism exists in three distinct forms in Java: 1.Method overloading 2. Method overriding through inheritance 3. Method overriding through the Java interface Read More
What is an Interface?
Added on Thu, Dec 24, 2009
An interface is a description of a set of methods that conforming implementing classes must have. Note: * You can?t mark an interface as final. * Interface variables must be static. * An Interface cannot extend anything but another interfaces. ... Read More
What are the differences between Interface and Abstract class?
Added on Thu, Dec 24, 2009
Abstract Class Interfaces An abstract class can provide complete, default code and/or just the details that have to be overridden. An interface cannot provide any code at all,just the signature. In case of abstract class, a class may extend only... Read More
What are Access Specifiers available in Java?
Added on Thu, Dec 24, 2009
Java offers four access specifiers, listed below in decreasing accessibility: * Public- public classes, methods, and fields can be accessed from everywhere. * Protected- protected methods and fields can only be accessed within the same class to... Read More
How to create custom exceptions?
Added on Thu, Dec 24, 2009
By extending the Exception class or one of its subclasses. Example: class MyException extends Exception { public MyException() { super(); } public MyException(String s) { super(s); } } Read More
What is similarities between an Abstract class and Interface?
Added on Thu, Dec 24, 2009
Neither Abstract classes or Interface can be instantiated. Read More
What are the principle concepts of OOPS?
Added on Thu, Dec 24, 2009
There are four principle concepts upon which object oriented design and programming rest. They are: * Abstraction * Polymorphism * Inheritance * Encapsulation (i.e. easily remembered as A-PIE). Read More
What is method overloading
Added on Thu, Dec 24, 2009
Method Overloading means to have two or more methods with same name in the same class with different arguments. The benefit of method overloading is that it allows you to implement methods that support the same semantic operation but differ by... Read More
What are Access Specifiers?
Added on Thu, Dec 24, 2009
One of the techniques in object-oriented programming is encapsulation. It concerns the hiding of data in a class and making this class available only through methods. Java allows you to control access to classes, methods, and fields via so-called... Read More
What is Abstraction?
Added on Thu, Dec 24, 2009
Abstraction refers to the act of representing essential features without including the background details or explanations. Read More
How can you force garbage collection?
Added on Thu, Dec 24, 2009
You can't force GC, but could request it by calling System.gc(). JVM does not guarantee that GC will be started immediately. Read More
Why operator overloading is not there in java?
Added on Thu, Dec 24, 2009
C++ has proven by example that operator overloading makes code almost impossible to maintain. In fact there very nearly wasn?t even method overloading in Java, but it was thought that this was too useful for some very basic methods like print(). Note... Read More
What is Inheritance?
Added on Thu, Dec 24, 2009
* Inheritance is the process by which objects of one class acquire the properties of objects of another class. * A class that is inherited is called a superclass. * The class that does the inheriting is called a subclass. * Inheritance is done by... Read More
What are the differences between Contructors and Methods?
Added on Thu, Dec 24, 2009
Constructors Methods Purpose Create an instance of a class Group Java statements Modifiers Cannot be abstract, final, native, static, or synchronized Can be abstract, final, native, static, or synchronized Return Type ... Read More
What are the types of Exceptions in Java
Added on Thu, Dec 24, 2009
There are two types of exceptions in Java, unchecked exceptions and checked exceptions. * Checked exceptions: A checked exception is some subclass of Exception (or Exception itself), excluding class RuntimeException and its subclasses. Each method... Read More
Explain the usage of the keyword transient?
Added on Thu, Dec 24, 2009
This keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero for integers). Read More
What modifiers are allowed for methods in an Interface?
Added on Thu, Dec 24, 2009
Only public and abstract modifiers are allowed for methods in interfaces. Read More
What is an abstract class?
Added on Thu, Dec 24, 2009
Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Note: * If even a single method is abstract, the whole class must be declared abstract. *... Read More
What is Constructor?
Added on Thu, Dec 24, 2009
* A constructor is a special method whose task is to initialize the object of its class. * It is special because its name is the same as the class name. * They do not have return types, not even void and therefore they cannot return values. * They... Read More
What are the uses of final method?
Added on Thu, Dec 24, 2009
There are two reasons for marking a method as final: * Disallowing subclasses to change the meaning of the method. * Increasing efficiency by allowing the compiler to turn calls to the method into inline Java code. Read More
What are the advantages of using exception handling?
Added on Thu, Dec 24, 2009
Exception handling provides the following advantages over "traditional" error management techniques: * Separating Error Handling Code from "Regular" Code. * Propagating Errors Up the Call Stack. * Grouping Error Types and Error Differentiation. ... Read More





©2007, 1000projects.com, Only For Educational Purpose, Non Commercial use!