Skip to main content

Posts

Showing posts from 2016

TOPICS OF CORE AND ADVANCED JAVA

CORE JAVA Syllabus: 1. Core Java Programming Introduction of Java Introduction to Java; features of Java Comparison with C and C++ Download and install JDK/JRE (Environment variables set up) The JDK Directory Structure First Java Program through command prompt First Java Program through Eclipse 2. Data types and Operators Primitive Datatypes, Declarations, Ranges Variable Names Conventions Numeric Literals, Character Literals String Literals Arrays(One dimensional; two- dimensional) Array of Object References Accessing arrays, manipulating arrays Enumerated Data Types Non-Primitive Datatypes Defining a class, variable and method in Java Method Signature; method calls Expressions in Java; introduction to various operators Assignment Operator Arithmetic Operators Relational Operators Logical Operators Conditional Operators Operator Precedence Implicit Type Conversions Upcasting and downcasting Strict typing Type conversion ...

ANNOTATIONS FOR JUNIT TESTING

JUnit  Annotations  : The Junit 4.x framework is annotation based, so let's see the annotations that can be used while writing the test cases. @Test annotation specifies that method is the test method. @Test(timeout=1000) annotation specifies that method will be failed if it takes longer than 1000 milliseconds (1 second). @BeforeClass annotation specifies that method will be invoked only once, before starting all the tests. @Before annotation specifies that method will be invoked before each test. @After annotation specifies that method will be invoked after each test. @AfterClass annotation specifies that method will be invoked only once, after finishing all the tests. @Test:             The Test annotation tells JUnit that the public void method to which it is attached can be run as a test case. To run the method, JUnit first constructs a fresh ...