What is Session ?
Web is stateless, which means a new instance of a web page class is re-created each time the page is posted to the server. As we all know, HTTP is a stateless protocol, it can't hold client information on a page. If the user inserts some information and move to the next page, that data will be lost and the user would not be able to retrieve that information....
Showing posts with label JAVA. Show all posts
Showing posts with label JAVA. Show all posts
October 19, 2013
October 15, 2013
All Differences Between Java and C++
PointersJava does not have an explicit pointer type. Instead of pointers, all references to objects—including variable assignments, arguments passed into methods, and array elements—areaccomplished by using implicit references. References and pointers are essentially the same thingexcept that you can’t do pointer arithmetic on references (nor do you need to).Reference semantics also enable structures...
October 09, 2013

Question 01: Give a few reasons for using Java?
Answer 01: Java is a fun language. Let’s look at some of the reasons:
Built-in support for multi-threading, socket communication, and memory management (automatic garbage collection).
Object Oriented (OO).
Better portability than other languages across operating systems.
Supports Web based...

Question- Can there be an abstract class with no abstract methodsin it?Answer- Yes
Question- Can an Interface be final?
Answer- No
Question- Can an Interface have an inner class?Answer- Yes.public interface abc {static int i=0;void dd();class a1 {a1() {int j;System.out.println("in interfia");};public static void main(String a1[]) {System.out.println("in interfia");...