web form
Web Forms are pages that users request using their browser. These pages can be written using a
combination of HTML, client-script, server controls, and server code. When users request a
page, it is compiled and executed on the server by the framework, and then the framework
generates the HTML markup that the browser can render
Web forms can be used for several purposes, including:
• Collecting data
• Evaluating your product or service
• Starting a conversation
• Selling your products
• Getting information in order to a service
Write a program to demonstrate provide the concept of collection and generics.
the uses of cookies.
• Identify users
• Prepare customized web pages
• Save site login information
• Improve your web browsing experience
• Remember your device, browser preferences, and associated online activity
What does dependency injection and IOC container means? Explain.
Spring IoC (Inversion of Control) Container is the core of Spring Framework. It creates the
objects, configures and assembles their dependencies, manages their entire life cycle. The
Container uses Dependency Injection (DI) to manage the components that make up the
application. It gets the information about the objects from a configuration file(XML) or Java
Code or Java Annotations and Java POJO class
The types of problems lead to SQL injection attack?
Common Causes of SQL Injection
• Old, Legacy, or Lazy Code Sometimes code was secure enough or adequate when it was
written, but as time passed and technology changed, what was secure 10 years ago is no
longer acceptable.
• Outdated/Unpatched Applications
• Security Assumptions
• Failure to Layer Security
Java Lambda Expressions
Lambda expression is a new and important feature of Java which was included in Java SE 8. It
provides a clear and concise way to represent one method interface using an expression. It is
very useful in collection library. It helps to iterate, filter and extract data from collection. The
Lambda expression is used to provide the implementation of an interface which has functional
interface. It saves a lot of code. In case of lambda expression, we don't need to define the method
again for providing the implementation. Here, we just write the implementation code.
Why use Lambda Expression
To provide the implementation of Functional interface.
Less coding.
Java lambda expression is consisted of three components.
1) Argument-list: It can be empty or non-empty as well.
2) Arrow-token: It is used to link arguments-list and body of expression.
3) Body: It contains expressions and statements for lambda expression.
Java lambda expression is treated as a function, so compiler does not create .class file.