Total Pageviews

Thursday, May 29, 2014

J2EE - JSP - Interview Questions


J2EE - JSP - Interview Questions


What is a JSP and what is it used for?
Java Server Pages (JSP) is a platform independent presentation layer technology that comes with SUN s J2EE platform. JSPs are normal HTML pages with Java code pieces embedded in them. JSP pages are saved to *.jsp files. A JSP compiler is used in the background to generate a Servlet from the JSP page.
What is difference between custom JSP tags and beans?
Custom JSP tag is a tag you defined. You define how a tag, its attributes and its body are interpreted, and then group your tags into collections called tag libraries that can be used in any number of JSP files. To use custom JSP tags, you need to define three separate components:
1. the tag handler class that defines the tag\'s behavior
2. the tag library descriptor file that maps the XML element names to the tag implementations
3. the JSP file that uses the tag library
When the first two components are done, you can use the tag by using taglib directive:
<%@ taglib uri="xxx.tld" prefix="..." %>
Then you are ready to use the tags you defined. Let's say the tag prefix is test:
MyJSPTag or
JavaBeans are Java utility classes you defined. Beans have a standard format for Java classes. You use tags to declare a bean and use to set value of the bean class and use to get value of the bean class.

<%=identifier.getclassField() %>
Custom tags and beans accomplish the same goals -- encapsulating complex behavior into simple and accessible forms. There are several differences:
Custom tags can manipulate JSP content; beans cannot.
Complex operations can be reduced to a significantly simpler form with custom tags than with beans. Custom tags require quite a bit more work to set up than do beans.
Custom tags usually define relatively self-contained behavior, whereas beans are often defined in one servlet and used in a different servlet or JSP page.
Custom tags are available only in JSP 1.1 and later, but beans can be used in all JSP 1.x versions.
What are the two kinds of comments in JSP and what's the difference between them ?
<%-- JSP Comment --%>
<!-- HTML Comment -->
What is JSP technology?
Java Server Page is a standard Java extension that is defined on top of the servlet Extensions. The goal of JSP is the simplified creation and management of dynamic Web pages. JSPs are secure, platform-independent, and best of all, make use of Java as a server-side scripting language.
What is JSP page?
A JSP page is a text-based document that contains two types of text: static template data, which can be expressed in any text-based format such as HTML, SVG, WML, and XML, and JSP elements, which construct dynamic content.


For further details of JAVA Training / OCJP Certification contact:

Placement opportunities are given for successful student who passes OCJP Certification in JAVA Software Development in Software companies

SUGA JAVA Training Institute,
SUGA Employment Services (providing placement opportunities for those who finish OCJP Certification through our JAVA Training)
(A division of SUGA Consulting Services)
Office No.26, TNHB Complex,
180, Luz Church Road, Mylapore, Chennai - 600004

N.Sugavanam, M.A., F.I.I.I, MBA,  
CEO, SUGA Consulting Services

Phone: Vodafone: 91762-44989, Landline: 044-2498-4149

Landmark: Near Luz Signal, Luz Pillaiyar Koil, behind 'MAX' Show Room

Sunday, May 25, 2014

JAVA SCJP / OCPJP Study Materials



For JAVA SCJP / OCPJP Study Materials

Visit the following blog:

http://javascjpdumps.blogspot.in/


For further details of JAVA Training / OCJP Certification contact:

Placement opportunities are given for successful student who passes OCJP Certification in JAVA Software Development in Software companies

SUGA JAVA Training Institute,
SUGA Employment Services (providing placement opportunities for those who finish OCJP Certification through our JAVA Training)
(A division of SUGA Consulting Services)
Office No.26, TNHB Complex,
180, Luz Church Road, Mylapore, Chennai - 600004

N.Sugavanam, M.A., F.I.I.I, MBA,  
CEO, SUGA Consulting Services

Phone: Vodafone: 91762-44989, Landline: 044-2498-4149

Landmark: Near Luz Signal, Luz Pillaiyar Koil, behind 'MAX' Show Room

OCJP - Oracle Certified Java Professional - Java Questions - 1


OCJP - Java Questions - 1

What is the output for the below code ?

1. public class A {
2. int add(int i, int j){
3. return i+j;
4. }
5.}
6.public class B extends A{
7. public static void main(String argv[]){
8. short s = 9;
9. System.out.println(add(s,6));
10. }
11.}
Options are
A.Compile fail due to error on line no 2
B.Compile fail due to error on line no 9
C.Compile fail due to error on line no 8
D.15
Answer :
B is the correct answer.
Cannot make a static reference to the non-static method add(int, int) from the type A. The
short s is autoboxed correctly, but the add() method cannot be invoked from a static
method because add() method is not static

For further details of JAVA Training / OCJP Certification contact:

Placement opportunities are given for successful student who passes OCJP Certification in JAVA Software Development in Software companies

SUGA JAVA Training Institute,
SUGA Employment Services (providing placement opportunities for those who finish OCJP Certification through our JAVA Training)
(A division of SUGA Consulting Services)
Office No.26, TNHB Complex,
180, Luz Church Road, Mylapore, Chennai - 600004

N.Sugavanam, M.A., F.I.I.I, MBA,  
CEO, SUGA Consulting Services

Phone: Vodafone: 91762-44989, Landline: 044-2498-4149

Landmark: Near Luz Signal, Luz Pillaiyar Koil, behind 'MAX' Show Room

Tuesday, May 20, 2014

Why is Java Architectural Neutral?



Q: What do you know about Java?
A: Java is a high-level programming language originally developed by Sun Microsystems and released in 1995. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.
Q: What are the supported platforms by Java Programming Language?
A: Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX/Linux like HP-Unix, Sun Solaris, Redhat Linux, Ubuntu, CentOS, etc.
Q: List any five features of Java?
A: Some features include Object Oriented, Platform Independent, Robust, Interpreted, Multi-threaded
Q: Why is Java Architectural Neutral?
A: It’s compiler generates an architecture-neutral object file format, which makes the compiled code to be executable on many processors, with the presence of Java runtime system.
Q: How Java enabled High Performance?
A: Java uses Just-In-Time compiler to enable high performance. Just-In-Time compiler is a program that turns Java bytecode, which is a program that contains instructions that must be interpreted into instructions that can be sent directly to the processor.
Q: Why Java is considered dynamic?
A: It is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time.
Q: What is Java Virtual Machine and how it is considered in context of Java’s platform independent feature?
A: When Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code. This byte code is distributed over the web and interpreted by virtual Machine (JVM) on whichever platform it is being run.

For further details contact:

N.Sugavanam, M.A., F.I.I.I, MBA,  
CEO, SUGA Consulting Services

Phone: Vodafone: 91762-44989, Landline: 044-2498-4149

SUGA JAVA Training Institute,
SUGA Employment Services,
(A division of SUGA Consulting Services)
Office No.26, TNHB Complex,
180, Luz Church Road, Mylapore, Chennai - 600004

Landmark: Near Luz Signal, Luz Pillaiyar Koil, behind 'MAX' Show Room

Thursday, May 1, 2014

OCJP at SUGA - (Oracle Certified Java Professional) Certification Training - by SUGA Consulting Services / SUGA Training Services




SUGA Consulting Services / SUGA Training Services conducting OCJP (Oracle Certified JAVA Professional) Training @ a very nominal coaching fee.

People who want to join big software companies in software industry should definitely get this OCJP Certification......

Get Certfied Now....!!!!!!!!!

Java SE 7 Programming Training - Syllabus

This Java Programming training covers the core Application Programming Interfaces (API) you'll use to design
object-oriented applications with Java. Instructors will teach you how to write database programs with JDBC.
Learn To:
Create Java technology applications with the latest JDK 7 Technology and the NetBeans Integrated Development
Environment (IDE).
Enhance object-oriented thinking skills using design patterns and best practices.
Identify good practices in the use of the language to create robust Java applications.
Manipulate files, directories and file systems.
Write database applications using standard SQL queries through JDBC.
Create high-performance, multi-threaded applications.
Create classes that subclass other classes, extend abstract classes and program with interfaces.
Properly use exceptions and the Collections framework.
Develop applications that manipulate files, directories and file systems.

Benefits to You:
Boost the productivity, communication and collaboration of your organization. At the same time, reduce the cost of
application ownership through more efficient development and deployment techniques. Maintain your edge by staying
current with the global standard for developing networked applications. 
 Java Certification:You can use this course to further develop your skills with the Java language and prepare for the
Oracle Certified Professional, Java SE 7 Programmer Exam.
A Live Virtual Class (LVC) is exclusively for registered students; unregistered individuals may not view an LVC at any
time. Registered students must view the class from the country listed in the registration form. Unauthorized recording,
copying, or transmission of LVC content may not be made

Audience
Developer
J2EE Developer
Java Developer
Java EE Developer

Required Prerequisites
Experience with at least one programming language
Understand object-oriented principles
Basic understanding of database concepts and SQL syntax
Have completed the Java SE 7 Fundamentals course, or experience with the Java language - can create, compile and
execute programs
Java SE7 Fundamentals

Course Objectives
Process strings using a variety of regular expressions
Create high-performing multi-threaded applications that avoid deadlock
Localize Java applications
Create applications that use the Java Collections framework
Implement error-handling techniques using exception handling
Implement input/output (I/O) functionality to read from and write to data and text files and understand advanced I/O
streams
Manipulate files, directories and file systems using the JDK7 NIO.2 specification
Apply common design patterns and best practices
Create Java technology applications that leverage the object-oriented features of the Java language, such as
encapsulation, inheritance, and polymorphism
Execute a Java technology application from the command line
Perform multiple operations on database tables, including creating, reading, updating and deleting using JDBC
technology

Course Topics
Java Platform Overview
Introductions
Course Schedule
Java Overview
Java Platforms
OpenJDK

Licensing
Java in Server Environments
The Java Community Process
Java Syntax and Class Review
Simple Java classes
Java fields, constructors and methods
Model objects using Java classes
Package and import statements
Encapsulation and Polymorphism
Encapsulation in Java class design
Model business problems with Java classes
Immutability
Subclassing
Overloading methods
Variable argument methods
Java Class Design
Access modifiers: private, protected and public
Method overriding
Constructor overloading
The instanceof operator
Virtual method invocation
Polymorphism
Casting object references
Overriding Object methods
Advanced Class Design
Abstract classes and type generalization
The static and final modifiers
Field modifier best practices
The Singleton design pattern
Designing abstract classes
Nested classes
Enumerated types
Inheritance with Java Interfaces
Java Interfaces
Types of Inheritance
Object composition and method delegation
Implementing multiple interfaces
The DAO design pattern
Generics and Collections
Generic classes and type parameters
Type inference (diamond)
Collections and generics
List, set and Map
Stack and Deque

String processing
String manipulation with StringBuilder and StringBuffer
Essential String methods
Text parsing in Java
Input processing with Scanner
Text output and formatting
Regular expressions with the Pattern and Matcher classes
Exceptions and Assertions
Exceptions categories
Standard Java Exception classes
Creating your own Exception classes
Using try-catch and the finally clause
Using try-with-resources and the AutoCloseable interface
The multi-catch feature
Best practices using exceptions
Assertions


I/O Fundamentals
I/O using Java
Reading the console input stream
Writing to the console
Using I/O Streams
Chaining I/O Streams
Channel I/O
Reading and writing objects using Serialization
File I/O with NIO 2
The Path interface
The Files class
Directory and File operations
Managing file system attributes
Reading, writing, and creating files
Watching for file system changes
Threading
Operating system task scheduling
Recognizing multithreaded environments
Creating multi-threaded solutions
Sharing data across threads
Synchronization and Deadlock
Immutable objects

Concurrency
Creating Atomic variables
Using Read-Write Locks
Thread-safe collections
Concurrenct synchronizers (Semaphore, Phaser, and others)
Executors and ThreadPools to concurrently schedule tasks
Parallelism and the Fork-Join framework
Database Application with JDBC
Layout of the JDBC API

Queries and results
PreparedStatement and CallableStatement
Transactions
RowSet 1.1 RowSetProvider and RowSetFactory
The DAO Pattern and JDBC
Localization
Advantages of localization
Defining locale
Read and set locale using the Locale object
Resource bundles
Format messages, dates and numbers

Java SE 7 Programming Training



Java SE 7 Programming Training

This Java Programming training covers the core Application Programming Interfaces (API) you'll use to design
object-oriented applications with Java. Instructors will teach you how to write database programs with JDBC.
Learn To:
Create Java technology applications with the latest JDK 7 Technology and the NetBeans Integrated Development
Environment (IDE).
Enhance object-oriented thinking skills using design patterns and best practices.
Identify good practices in the use of the language to create robust Java applications.
Manipulate files, directories and file systems.
Write database applications using standard SQL queries through JDBC.
Create high-performance, multi-threaded applications.
Create classes that subclass other classes, extend abstract classes and program with interfaces.
Properly use exceptions and the Collections framework.
Develop applications that manipulate files, directories and file systems.

Benefits to You:
Boost the productivity, communication and collaboration of your organization. At the same time, reduce the cost of
application ownership through more efficient development and deployment techniques. Maintain your edge by staying
current with the global standard for developing networked applications. 
 Java Certification:You can use this course to further develop your skills with the Java language and prepare for the
Oracle Certified Professional, Java SE 7 Programmer Exam.
A Live Virtual Class (LVC) is exclusively for registered students; unregistered individuals may not view an LVC at any
time. Registered students must view the class from the country listed in the registration form. Unauthorized recording,
copying, or transmission of LVC content may not be made

Audience
Developer
J2EE Developer
Java Developer
Java EE Developer

Required Prerequisites
Experience with at least one programming language
Understand object-oriented principles
Basic understanding of database concepts and SQL syntax
Have completed the Java SE 7 Fundamentals course, or experience with the Java language - can create, compile and
execute programs
Java SE7 Fundamentals

Course Objectives
Process strings using a variety of regular expressions
Create high-performing multi-threaded applications that avoid deadlock
Localize Java applications
Create applications that use the Java Collections framework
Implement error-handling techniques using exception handling
Implement input/output (I/O) functionality to read from and write to data and text files and understand advanced I/O
streams
Manipulate files, directories and file systems using the JDK7 NIO.2 specification
Apply common design patterns and best practices
Create Java technology applications that leverage the object-oriented features of the Java language, such as
encapsulation, inheritance, and polymorphism
Execute a Java technology application from the command line
Perform multiple operations on database tables, including creating, reading, updating and deleting using JDBC
technology

Course Topics
Java Platform Overview
Introductions
Course Schedule
Java Overview
Java Platforms
OpenJDK

Licensing
Java in Server Environments
The Java Community Process
Java Syntax and Class Review
Simple Java classes
Java fields, constructors and methods
Model objects using Java classes
Package and import statements
Encapsulation and Polymorphism
Encapsulation in Java class design
Model business problems with Java classes
Immutability
Subclassing
Overloading methods
Variable argument methods
Java Class Design
Access modifiers: private, protected and public
Method overriding
Constructor overloading
The instanceof operator
Virtual method invocation
Polymorphism
Casting object references
Overriding Object methods
Advanced Class Design
Abstract classes and type generalization
The static and final modifiers
Field modifier best practices
The Singleton design pattern
Designing abstract classes
Nested classes
Enumerated types
Inheritance with Java Interfaces
Java Interfaces
Types of Inheritance
Object composition and method delegation
Implementing multiple interfaces
The DAO design pattern
Generics and Collections
Generic classes and type parameters
Type inference (diamond)
Collections and generics
List, set and Map
Stack and Deque

String processing
String manipulation with StringBuilder and StringBuffer
Essential String methods
Text parsing in Java
Input processing with Scanner
Text output and formatting
Regular expressions with the Pattern and Matcher classes
Exceptions and Assertions
Exceptions categories
Standard Java Exception classes
Creating your own Exception classes
Using try-catch and the finally clause
Using try-with-resources and the AutoCloseable interface
The multi-catch feature
Best practices using exceptions
Assertions


I/O Fundamentals
I/O using Java
Reading the console input stream
Writing to the console
Using I/O Streams
Chaining I/O Streams
Channel I/O
Reading and writing objects using Serialization
File I/O with NIO 2
The Path interface
The Files class
Directory and File operations
Managing file system attributes
Reading, writing, and creating files
Watching for file system changes
Threading
Operating system task scheduling
Recognizing multithreaded environments
Creating multi-threaded solutions
Sharing data across threads
Synchronization and Deadlock
Immutable objects

Concurrency
Creating Atomic variables
Using Read-Write Locks
Thread-safe collections
Concurrenct synchronizers (Semaphore, Phaser, and others)
Executors and ThreadPools to concurrently schedule tasks
Parallelism and the Fork-Join framework
Database Application with JDBC
Layout of the JDBC API

Queries and results
PreparedStatement and CallableStatement
Transactions
RowSet 1.1 RowSetProvider and RowSetFactory
The DAO Pattern and JDBC
Localization
Advantages of localization
Defining locale
Read and set locale using the Locale object
Resource bundles
Format messages, dates and numbers