1.what is the meaning of JVM ?
2.please explain about Reflection concisely.
3.please explain about web.xml
4.please explian about mainifest.mf
5.what technology are used in J2EE platfrom.please list and explain concisely.
6.please explain the relationship between classpath and package,and the relationship between them and java files.
7.what is the differense session Bean and Entity Bean ?
8.please write out the meaning of Aggregation and compesite within UML Relationship,and show their figures

解决方案 »

  1.   

    虽然都是基础题目,但mainifest.mf这个我还真不知道干嘛用的,
    out了,赶紧百度百度。
      

  2.   

    mainifest.mf
    是.jar的描述文件,相当于目录,jvm通过它来得到版本信息和程序入口之类的数据
      

  3.   

    lz网上下一些java的基础面试题都能得到答案。。都是些类似简答类型题目但是也是能考到很多人的当然也包括我嘿嘿
      

  4.   

    1.what is the meaning of JVM ?
    Java Virtual Machine (JVM) – ‘JVM’ is a software that can be ported onto various hardware platforms. Byte codes are the machine language of the JVM.2.please explain about Reflection concisely.
    Java's Reflection API's makes it possible to inspect classes, interfaces, fields and methods at runtime, without knowing the names of the classes, methods etc. at compile time. It is also possible to instantiate new objects, invoke methods and get/set field values using reflection. 
    3.please explain about web.xml
    The web.xml Deployment Descriptor file describes how to deploy a web application in a servlet container such as Tomcat. 4.please explian about mainifest.mf
    A Manifest file is a specific file contained within a JAR archive. It is used to define extension and package-related data. 
    If the JAR file is created only for the purpose of archival, then the MANIFEST.MF file is of no purpose.
    Applications Bundled as JAR Files: Main-Class
    Download Extensions: Class-Path
    Package Sealing: Sealed
    Package Versioning5.what technology are used in J2EE platfrom.please list and explain concisely.
    applet,an applet is a program written in the Java[tm] programming language that can be included in an HTML page
    jsp,JavaServer Pages (JSP) technology provides a simplified, fast way to create dynamic web content.
    servlet,a servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed via a request-response programming model.
    EJB,Enterprise JavaBeans (EJB) technology is the server-side component architecture for Java Platform, Enterprise Edition (Java EE). EJB technology enables rapid and simplified development of distributed, transactional, secure and portable applications based on Java technology.6.please explain the relationship between classpath and package,and the relationship between them and java files.
    Package helps resolve naming conflicts when different packages have classes with the same names. This also helps you organize files within your project.
    Classpath is set for JVM to find the classes.
    Package define the class path, which is set as classpath.7.what is the differense session Bean and Entity Bean ?
    An entity bean represents persistent global data from the database; a session bean represents transient user-specific data that will die when the user disconnects (ends his session). 
    Generally, the session beans implement business methods (e.g. Bank.transferFunds) that call entity beans (e.g. Account.deposit, Account.withdraw). 8.please write out the meaning of Aggregation and compesite within UML Relationship,and show their figures
    In normal terms, they both refer to member object but the survival or existence of the member object without the containing class or object or after the lifetime of the containing class or object makes the difference. Aggregation is also known as a 'has a' relationship because the containing object has a member object and the member object can survive or exist without the enclosing or containing class or can have a meaning after the lifetime of the enclosing object also.
    Composition is also known as a 'is a part of' or 'is a' relationship because the member object is a part of the containing class and the member object cannot survive or exist outside the enclosing or containing class or doesnt have a meaning after the lifetime of the enclosing object. Composition is used over inheritance when different roles are to be played by a single entity. The 'is a' relation comes in this case.
      

  5.   

    老兄你很长时间没露面了。
    学Apple了?如果是中文解答的话,也就第5题和第8题略显教条些,其他题不需要背的吧。当然,英文就不一样了。还有,to楼主:
    16楼8道题都回答了,也差不多到位了。只是个人认为Composition和is a没关系,如果是is a关系的话,用继承或接口实现还是更合适一些。(第8题)
      

  6.   

     Composition is used over inheritance when different roles are to be played by a single entity. The 'is a' relation comes in this case.这里就是java所提倡的当有is a关系的时候,一般采用接口而不是继承。当采用接口实现的时候,一般采用的设计模式就是compostion.
      

  7.   

    太费时间了,我只帮你回答第一个问题吧
    回答:
    1> JVM is an java runing environment , it is a set of java-runing standard,
    different company has different products to implement it ,like IBM's jrocket,Sun's JDK and so on...
    (JVM是一种java运行环境,它是一套Java运行标准,不同的公司会有不同的,实现JVM的产品
      比如IBM的jrocket,SUM公司的JDK等等)
      

  8.   

    虽然都是基础 但是万恶的English呀
      

  9.   

    Composite设计模式是子类包含父类对象,以便形成嵌套结构。
    接口使用的目的是为了实现多继承(依然是继承)。
    楼上这么说还是有点牵强。
      

  10.   

    1.what is the meaning of JVM ?  
    JVM的意思是什么? ----- JAVA虚拟机
    2.please explain about Reflection concisely. 
    请简略解释一下反射。 -----我理解不深刻,还解释不了
    3.please explain about web.xml
    请谈谈web.xml文件 ---- 好像是容器首先加载这个东东吧
    4.please explian about mainifest.mf
    请谈谈 manmifest.mf 文件 ---- 打包时需要的描述文件
    5.what technology are used in J2EE platfrom.please list and explain concisely.
    J2EE平台运用些什么技术,请举例并简单阐述 ---- 不知从何说起
    6.please explain the relationship between classpath and package,and the relationship between them and java files.
    请解释一下classpath与package的关系,java文件和它们的关系。 ---- 望高人指点
    7.what is the differense session Bean and Entity Bean ?
    会话Bean与实体Bean有什么不同? ---- 
    8.please write out the meaning of Aggregation and compesite within UML Relationship,and show their figures
    请使用UML说明聚合与复合的意思,表现他们的特点----