MyBatis Examples and Tutorials Coreservlets.com: Java, JSF 2.0, Ajax, jQuery, Spring, Hibernate, REST, Hadoop, and GWT Training, Tutorials, Consulting, Books, & Resources Differentiate JVM JRE JDK JIT Java Virtual Machine (JVM) is an abstract computing machine. Java Runtime Environment (JRE) is an implementation of the JVM. Java Development Kit (JDK) contains JRE along with various development tools like Java libraries, Java source compilers, Java debuggers, bundling and deployment tools. JVM becomes an instance of JRE at runtime of a java program. Diagram to show the relations between JVM JRE JDK JVM Internals Like a real computing machine, JVM has an instruction set and manipulates various memory areas at run time. A Java virtual machine instruction consists of an opcode specifying the operation to be performed, followed by zero or more operands embodying values to be operated upon. Sun’s JVM Sun’s implementations of the Java virtual machine (JVM) is itself called as JRE. JVM for other languages A JVM can also be used to implement programming languages other than Java. Just-in-time Compiler (JIT)
Java Blog Java le soir « insomniaque ? Spring Framework Introduction The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments. Features Dependency InjectionAspect-Oriented Programming including Spring's declarative transaction managementSpring MVC web application and RESTful web service frameworkFoundational support for JDBC, JPA, JMSMuch more... Quick Start Spring Framework includes a number of different modules, here we are showing spring-context which provides core functionality. Once you've set up your build with the spring-context dependency, you'll be able to do the following: hello/MessageService.java package hello; public interface MessageService { String getMessage();}
Using Print Setup Dialogs (The Java™ Tutorials > 2D Graphics > Printing) Traditionally, the user wants to see the page setup and print dialog boxes. From the print dialog you can select a printer, specify pages to print, and set the number of copies. An application displays a print dialog when the user presses a button related to the print command, or chooses an item from the print menu. To display this dialog, call the printDialog method of the PrinterJob class: PrinterJob pj = PrinterJob.getPrinterJob(); ... if (pj.printDialog()) { try {pj.print();} catch (PrinterException exc) { System.out.println(exc); } } ... This method returns true if the user clicked OK to leave the dialog, and false otherwise. The printDialog method in the above code snippet opens a native print dialog. You can change the page setup information contained in the PageFormat object by using the page setup dialog. To display the page setup dialog, call the pageDialog method of the PrinterJob class. PrinterJob pj = PrinterJob.getPrinterJob(); PageFormat pf = pj.pageDialog(pj.defaultPage());
Vageesh Hoskere | My blog on anything and everything related to Technology and Life Spring Tutorial iBatis Tutorial Spring FAQs JSF Tag Reference JavaServer Faces Interview Questions JSF FAQs Spring Interview Questions FAQs Hibernate Struts iBatis FAQs Narisa.com | Software Society