The main thing you should keep in mind is that the if-else statement should be used for program flow control and the assert keyword should only be used for testing purposes. You should never use asserts to actually perform any operation required for your application to work properly. According to Sun's official Java documentation: "Each assertion contains a boolean expression that you believe will be true when the assertion executes." For example, if you have a method which is supposed to return a double value in the range [-1.0,1.0], you can use the following two statements to test this: assert value = -1.0; If either of these assertions returns false, an error will be thrown to let you know there's a problem.
The main difference between ASP and JSP is that JSP is more script like and includes Java, whereas ASP does not. Both of these are server side languages.
When most computer users think of Java, what they are really thinking of is Java core, which is the standard edition that is used in most basic computer applications. The term Java in and of itself is a more broad term that can cover both the standard edition and more advanced applications.
A JavaBean is nothing but a regular Java Class and hence it can be instantiated using the new keyword and invoking the bean constructor
The Difference between JSTL and JSP is that, JSP lets the person add embedded Java code into HTML pages. Also JSP allows the person to define their own tags. JSTL is just a standard tag library provided by Sun to carry out common tasks.
JavaServer Pages (JSP) is a Java technology that allows software developers to dynamically generate HTML, XML or other types of documents in response to a Web client request. JavaServer Faces (JSF) is a Java-based Web application framework that simplifies the development of user interfaces for Java EE applications. Out of the box, JSF uses JavaServer Pages for its display technology, but JSF can also accommodate other display technologies, such as XUL, for example.
The keyword super is used to explicitly call methods/values from the parent class The keyword this is used to explicitly call methods/values from the current class
No, 'check' is not a keyword in java language.
"throw" is the keyword to raise an exception. "throws" is a Java keyword that indicates a specific method can potentially raise a named exception. There is no analog in VB.Net or C#. Perhaps there is a "throws" keyword in J#?
yes, float is keyword and data type in java
"verify" is not a Java keyword. I believe the link, in related links, has the complete list of Java keywords.
There is no "foreign" keyword in Java, however, there is a native keyword that declares native methods in a native language, such as C or C++.For full list of keywords in Java see related question.
Literal in java are L, F, null, true, false These act as keyword(have special meaning in java) but these does'nt comes under the category of Java Keyword.
"int" is the keyword for integer
They are different versions. Java 5 is newer than Java 2. Think of it like the difference between the Playstation 1 and the Playstation 3.
In Java, the final keyword specifies that the object created cannot be further redefined or derived.
"this" is a Java keyword that references the current object. Any part of the object(instance variables, methods, constructors) can be accessed by calling this.[member].
sizeof is not a keyword in Java but many classes have size() or length() methods, which can mean the number of elements, characters, etc. depending on the class.