Posts

Showing posts from July, 2018

Java Fundamentals

Image
Allow nothing  or  no one  to  slow your pace  or affect  your  energy;  stay consistently flowing , forever growing. Subject: Java Fundamentals Topics: Arithmetic Operators Basic Operators: + - * / % Prefix/Post fix Operators:  ++  -- Compound/Assignment Operators:  +=  -=   /=   *=   %= Basic Operators Example: public class BasicOperators { public static void main(String[] args) { /** * Floating Point Examples */ //Addition of two variables float valAddA = 1.0f; float valAddB = 2.0f; System.out.println("valAddA + valAddB: " + (valAddA + valAddB)); //Subtraction of two variables float valSubA = 5.0f; float valSubB = 4.0f; System.out.println("valSubA - valSubB: " + (valSubA - valSubB)); //Multiplication of two...

Web Testing 101

Image
An investment in knowledge pays the best  interest. Subject: Web Testing 101 - How to test World Wide Web Topics: HTML <input> readonly Attribute The readonly attribute is a boolean attribute. When present, it specifies that an input field is read-only. A read-only input field cannot be modified (however, a user can tab to it, highlight it, and copy the text from it). The readonly attribute can be set to keep a user from changing the value until some other conditions have been met (like selecting a checkbox, etc.). Then, a JavaScript can remove the readonly value, and make the input field editable. <!DOCTYPE html> <html> <body> <form action="/action_page.php"> Email: <input type="text" name="email"><br> Country: <input type="text" name="country" value="Norway" readonly="readönly"><br> <input type="s...

Java Fundamentals

Image
“When we compare ourselves to others, we reject ourselves. In the moment, we’re defined by that breadth of comparison rather than the extraordinary uniqueness that makes us who we are.” . Subject: Java Fundamentals Topics: Primitive Data Types for Variables Integer Floating Character Boolean Data Types - Size in Bits - Min Value - Max Value - Literal Format Integer Types: long type: uses literal formal 'L' Floating Types: float type: uses literal format 'f' double type: uses literal format 'd' Character Types: Literal values are stored in single quotes. Also stores unicode characters. Boolean Types: Stores either True or False Primitive Data Types are stored by Value.

Java Fundamentals

Image
" It always seems impossible until it's done ." Subject: Java Fundamentals Topics: Variables Declaration of Variables Assignment of Values to Variables Variables = Ability to store and manipulate values (Named Data Storage) Declaration and Assignment of Values in a single statement Naming Variables Combination of Rules and Conventions. Rules: Allows use of letters, numbers, $ and underscore Convention: Only letters and numbers are used. Rules: First character is not a number Convention: First character is always a letter Convention: Follow "Camel Casing" First letter is lowerCase Start of each word after first is UpperCase All other letters are lower case. We can assign a value to variable and later modify it to other. Local Variables:  Variables declared inside the main method public class Variables { public static void main(String[] args) { /** * Declaring only the local variable an...

Web Application Security

Image
"Be more consistent than everyone around you and you will win "  Subject: Web Application Security Topics: OWASP - #1: Broken Authentication and Session Management What is HTTP How web server communicates with web application What is meant by Stateless protocol. What is Session Identifier (ID) Why do web applications use Session ID Identify the pattern of Session ID's in your application. Is your session ID displaying in the URL of the web aplication? Can anyone use the same URL and impersonate the session

Web Application Security

Image
" You learn more from losing than winning . You learn how to keep going. Think Beyond Winning and Losing"  Subject: Web Application Security Topics: OWASP - #1: Injection What is Injection How attacker injects the code into web application Different types of Injection Attacks SQL Injection XPATH/XQuery Injection LDAP Injection Command Injection OWASP - #2: Cross - Site Scripting (XSS) What is Cross-Site Scripting How attacker injects the code into web application What happens when attacker injects the code

Java Fundamentals

Image
"Move out of your comfort zone.  You can only grow if you are willing to feel awkward and uncomfortable  when you try something new." Subject: Java Fundamentals Topics: Statements Structure Statements ends with semicolon. Comments  Usage of Comments in code Types of Comments Line Comments Block Comments Java Doc Comments What is package Package Naming Conventions Example: package com.strls.testing.learnjava Correlation between package names and Source file structure. Before adding package name to the java file. Structure of Folders in IDE. src -> main.java After adding package name to java file. Structure of Folders in IDE. src -> com -> strls -> testing -> learnjava -> HelloWorldOrganized -> main.java package com.strls.testing.learnjava; public class HelloOrganized { public static void main(String[] args) { System.out.println("Hello Get Organized"); } }

Java Fundamentals

Image
If you  learn something new every day , you can teach  something new every day . Subject: Java Fundamentals Topics: Verifying Java JDK installation is correct or not from command line. Installation of Eclipse IDE Creating a Simple Java Application. (Hello World Program) /** * This class implements the HelloWorld program * @author srinivas.kadiyala * @version 1.0 * */ public class HelloWorld { /* * Using comments in HelloWorld */ public static void main(String[] args) { //Hello World Program System.out.println("Hello World Again"); //Hello World Output - Spaces within the braces System.out.println( "Hello World before Space in braces"); //Hello World Output - Spaces outside the spaces System.out.println("Hello world before space outside braces") ; //Hello World Output - New Line a...

Java Fundamentals

Image
Learn Something New Every Day (And Actually Do Something With It) Subject: Java Fundamentals Topics: What is Java JRE vs JDK  Installation of Java How Java code converts to Class File What is IDE Popular IDE's available NetBeans Eclipse IntelliJ Idea