Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

java question

  Asked By: Rufus    Date: Mar 29    Category: Java    Views: 454
  

what is the difference between date and sql date

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Daniel Costa     Answered On: Mar 29

date is a class that can deal with date  values. SQL date is a date
string, usually in ISO format

YYYY-MM-DD

which is better for sorting values in sequential order as the dates
will be in chronological order.

 
Answer #2    Answered By: Grace Ellis     Answered On: Mar 29

Yhere are 4 levels of protection in Java:
Public - anyone can access this.
(blank - pakage) - all classes in the same package can access.
Protected - package level + child classes can access.
Private - no one can access except the implementing class.

These levels are based on Object-Oriented Programming principles.

Thus, there is no way to access a Private constructor outside of the
implementing class. The java  compiler (javac) and all IDEs that I know
of forbid it.

 
Answer #3    Answered By: Alisha Johnson     Answered On: Mar 29

Can anybody tell me the difference  between normal Java object and EJB ?

 
Answer #4    Answered By: Varick Fischer     Answered On: Mar 29

The only sinilarity between JavaBeans and EJB is both are components.
But EJB is deployable component and java  bean is development component it can't
be deployed on a server
EJB is meant for inter process and Java beans are ment for intra process.For
example a Button is one java bean ie development componet that can be included
in any of your GUI
Consider a Customer bean which is deployed in a server.It can be accessed from
anywhere.


and ejb are distributed components and jaba beans are not distributed

ejb are used for bussiness logic and server side of applications

and java beans are gui components

 
Didn't find what you were looking for? Find more on java question Or get search suggestion and latest updates.




Tagged: