Search...

Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Tuesday, April 28, 2015

Implementation of 0/1 Knapsack problem using Dynamic Programming in Java

What is 0/1 Knapsack problem ?The knapsack or rucksack problem is a problem in combinatorial optimization. Here there are a set of items(n) which has a profit value(v) and weight(w). 

Monday, March 23, 2015

Difference between forward and sendRedirect

forward

Control can be forward to resources available within the server from where the call is made. 

Saturday, December 20, 2014

Types of Variable in JAVA? Is JAVA a pure object oriented programming language?

A class can contain any of the following variable types.

Local variables : variables defined inside methods, constructors or blocks are called local variables. The variable will be declared and initialized within the method and the variable will be destroyed when the method has completed.

What is Java? What is Class & Object in Java?

JAVA:

Java is an Object Oriented Language. That has the feature of  Object Oriented language like:

Polymorphism

Inheritance

Encapsulation

Abstraction

Classes

Objects

Thursday, December 11, 2014

Exception in JAVA

Exception

Exception is the inefficiency of the computer system to execute the given statement. An unexpected result obtained from the program is known as Exception.


Friday, November 7, 2014

AWT in JAVA using Java.awt.*; package

  • Abstract Window Toolkit (AWT) is a set of application program interfaces ( API s) used by Java programmers to create graphical user interface ( GUI ) objects, such as buttons, scroll bars, and windows.
  • The Abstract Window Toolkit (AWT) is Java's original platform-independent windowing, graphics, and user-interface widget toolkit.