All Object Oriented Languages share three common defining traits, explain
these.
Encapsulation, Polymorphism and Inheritance.
What is the difference between a class and a structure?
In a class, members are private by default. In a structure, members are
public by default.
What is the difference between a class and an object.
A class defines an Objects methods and instance variables, i.e. the data
it will store and methods to access that data. An Object is an instantiated
Class which has a state.
What are the differences between an applet and an application.
An application has no security restrictions, and is run like a normal
application using java. An applet has security restrictions and is run either in
an applet viewer or Web Browser. There is no main, as the applet viewer/Web
Browser is the application and it instantiates the applet class instance you
provide it.
What is swing.
Swing is an enhanced version of AWT that provides light weight graphical
components. These components are suitable for Applets that are going to be run
within Web Browsers.
What are EJB's and how can they be used.
Enterprise Java Beans come in two flavours, Entity and Session. The Entity
EJB is an Object that has data like a record in a database. A Session EJB comes
in two flavours, Stateful or Stateless, and this type of EJB is used for
implementing Business rules.