<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-2981436578666077634</atom:id><lastBuildDate>Sat, 23 Feb 2019 08:37:22 +0000</lastBuildDate><category>java</category><category>QTP</category><category>Exam Help on ISTQB-Basic</category><category>Interface</category><category>Exception</category><category>QTP Related</category><category>UFT</category><category>Selenium</category><category>Exception in java</category><category>Selenium Tutorial</category><category>AWT</category><category>Error</category><category>Error in Java</category><category>ISTQB</category><category>ISTQB Mock Questions</category><category>Question Paper on ISTQB</category><category>VB Scripting</category><category>Travel</category><category>Oracle Open Script Related(OATS)</category><category>Tech News</category><category>servlet</category><category>ADF</category><category>JavaScript</category><category>Practice of Code</category><category>Collection Framework</category><category>Excel Macro</category><category>General QA Concept</category><category>OCJP</category><category>Thread</category><category>hot</category><category>Advanced QA Concept</category><category>Exam Help on OCJP</category><category>OCJP Mock Questions</category><category>OCJP interview Question</category><category>Question Paper on OCJP</category><category>Idea of Framework</category><category>SOA</category><category>VBscript</category><category>java interview Question</category><category>Interview Preparation</category><category>JDeveloper</category><category>Management Concept</category><category>Reader&#39;s Desk</category><category>Test Automation Advanced Concept</category><category>Framework</category><category>Layout Manager</category><category>enum</category><category>HTML5</category><category>Image</category><category>New Tools</category><category>Testing</category><category>Weekend gateway</category><category>enum concept</category><category>Array</category><category>Class</category><category>OATS</category><category>Quality Center</category><category>SOAP</category><category>Web Services</category><category>Weekend gateway from Hyderabad</category><category>Assert</category><category>Assertion</category><category>Constructor</category><category>Decimal</category><category>Event</category><category>Excel</category><category>File</category><category>Hacking-Tips And Tricks</category><category>Inheritance</category><category>InputStream</category><category>Lifestyle</category><category>Management Tools</category><category>Practise Test in Quick Test Professional</category><category>QTP Interview Question</category><category>Quality Related Concept</category><category>Set</category><category>Srisailam</category><category>Srisailam dam</category><category>Stack</category><category>String Class in Java</category><category>Test Automation</category><category>Test Automation General Concept</category><category>Web Testing</category><category>AOM</category><category>AOM with QTP</category><category>ATG</category><category>ArrayList</category><category>Arrays in Java</category><category>Automation</category><category>BDD</category><category>Bean</category><category>Boolean</category><category>Character Class</category><category>Class Long</category><category>Classpath</category><category>Compiler</category><category>Cookie</category><category>Cross Browser Testing</category><category>Cross Browser Testing tools</category><category>Database Concept</category><category>Date</category><category>Decimal to Binary conversion</category><category>Double</category><category>Double Class</category><category>Encapsulation</category><category>Enumeration</category><category>Exam Help on QTP</category><category>Exception Handling</category><category>Exception Handling in Java</category><category>Float</category><category>Float Class</category><category>Font</category><category>Friends</category><category>Garbage Collector</category><category>Groovy</category><category>Groovy Testing</category><category>HTML</category><category>Hexadecimal</category><category>IP</category><category>ImageObserver</category><category>Inner class in java</category><category>Innerclass</category><category>Instance variable</category><category>Integer</category><category>Integer Class</category><category>JSON</category><category>JSOUP</category><category>Java and Images</category><category>Jenkins</category><category>Keyboard</category><category>Layout</category><category>Layout Manager in Java</category><category>Lean</category><category>List</category><category>Long</category><category>Menu</category><category>Multiple Inheritance</category><category>Object</category><category>Object repository</category><category>Octal</category><category>Operators</category><category>Operators in java</category><category>OutputStream</category><category>Quick Mathematics</category><category>Runtime Exception in java</category><category>RuntimeException</category><category>Sharepoint</category><category>Shell Scripting</category><category>Static</category><category>Stream</category><category>String</category><category>Switch case</category><category>TCP</category><category>TDD</category><category>This</category><category>This keyword</category><category>Thread Class</category><category>Throw</category><category>Throws</category><category>Variable</category><category>Vector</category><category>Wrapper class</category><category>abstract</category><category>abstract class in java</category><category>binary</category><category>bufferedimage</category><category>constant</category><category>finally</category><category>java draw bufferedimage</category><category>java drawimage example</category><category>javadoc</category><category>local variable</category><category>public</category><category>static Inner Class</category><category>super</category><category>void</category><category>10 Steps to perform after fresh ATG installation</category><category>7 deadly waste</category><category>@tag</category><category>A Message Box That Closes Automatically</category><category>ALM Mock Test</category><category>ANT</category><category>AOM with UFT</category><category>ATG Installation</category><category>AWTError</category><category>AWTError in Java</category><category>AWTEvent</category><category>AWTEvent in Java</category><category>AWTEventMulticaster</category><category>AWTException</category><category>AWTException in java</category><category>About Me:Animesh Chatterjee</category><category>About techtravelhub</category><category>Abstract method</category><category>AbstractMethodError</category><category>Access Specifier</category><category>Action builder</category><category>Action class</category><category>ActionListener</category><category>ActionListener in java</category><category>Activate Mail2Blogger</category><category>ActiveX Component Can&#39;t Create Object</category><category>Adapter</category><category>AdjusmentEvent</category><category>Adjustable interface</category><category>Adjustable interface in Java</category><category>AdjustmentEvent in Java</category><category>Advantages of HTML5</category><category>Ajax</category><category>Ajax call</category><category>Andaman</category><category>Annotation</category><category>Annotation guidelines</category><category>Antivirus</category><category>Applet</category><category>Application</category><category>AreaAveragingScaleFilter</category><category>AreaAveragingScaleFilter in Java</category><category>Arithmetic Operator</category><category>Arithmetic exception in java</category><category>ArithmeticException</category><category>Array Class in Java</category><category>Array class</category><category>ArrayIndexOutOfBound</category><category>ArrayIndexOutOfBound Exception</category><category>ArrayStoreException</category><category>Audio</category><category>Audio.AudioClip</category><category>AudioClip</category><category>AutoBoxing</category><category>AutoUnboxing</category><category>Automate JNLP</category><category>Automatic Compilation</category><category>Automation Object Model</category><category>BPT Framework</category><category>Backwards Compatibility and Upgrading Scripts in OATS</category><category>Batch to Find Java.exe</category><category>Bean Customizer</category><category>Bean Customizer in Java</category><category>Bean Visibility</category><category>Bean Visibility in Java</category><category>Benefits of HTML5</category><category>Benefits of parallel testing</category><category>Best Home Color</category><category>Bhadrakali Temple</category><category>Bidar</category><category>BigDecimal</category><category>BigDecimal Class in Java</category><category>BigInteger</category><category>BigInteger Class In Java</category><category>Bike travel to Vijayawada</category><category>BindException</category><category>BindException in java</category><category>BitSet</category><category>Blogger</category><category>Blogger Widget</category><category>Blueball</category><category>Booming Automation</category><category>BorderLayout</category><category>BorderLayout in Java.Layout Manager</category><category>BufferedInputStream</category><category>BufferedInputStream in java</category><category>BufferedOutputStream</category><category>BufferedOutputStream in java</category><category>Bugzilla</category><category>Business Process</category><category>Button</category><category>Button class</category><category>Button class in AWT</category><category>ButtonPeer</category><category>ButtonPeer interface in java</category><category>ByPass SSO</category><category>Byte</category><category>Byte class</category><category>ByteArrayInputStream</category><category>ByteArrayOutputStream</category><category>ByteArrayOutputStream in java</category><category>C</category><category>CAST</category><category>CAST tools</category><category>CRS</category><category>CSI</category><category>Calendar</category><category>Calendar class</category><category>Calendar class in java</category><category>Call Reusable API script</category><category>Canvas</category><category>Canvas Class in AWT</category><category>CanvasPeer</category><category>CanvasPeer interface</category><category>CanvasPeer interface in AWT</category><category>CanvasPeer interface in java</category><category>Capture tool tips</category><category>Car</category><category>CardLayout</category><category>CardLayout in Java</category><category>Certification</category><category>Challenges in Testing</category><category>Character</category><category>Character printing</category><category>Checkbox</category><category>Checkbox class</category><category>Checkbox class in AWT</category><category>CheckboxGroup</category><category>CheckboxGroup class in awt</category><category>CheckboxGroup class in java</category><category>CheckboxMenuItem</category><category>CheckboxMenuItem  class in AWT</category><category>CheckboxMenuItem class in java</category><category>CheckboxMenuPeer</category><category>CheckboxMenuPeer in AWT</category><category>CheckboxMenuPeer interface in java</category><category>CheckboxPeer</category><category>CheckboxPeer in AWT</category><category>CheckboxPeer interface in java</category><category>Checkpoints in QTP</category><category>Checkpoints in UFT</category><category>Choice class</category><category>Choice class in AWT</category><category>ChoicePeer</category><category>ChoicePeer  interface</category><category>ChoicePeer interface in awt</category><category>ChoicePeer interface in java</category><category>Class AWTError</category><category>Class AWTError in java</category><category>Class AWTException</category><category>Class AWTException in Java</category><category>Class BigInteger</category><category>Class Boolean</category><category>Class BufferedOutputStream</category><category>Class ByteArrayOutputStream</category><category>Class Canvas</category><category>Class Canvas in Java</category><category>Class CheckboxGroup</category><category>Class DataInputStream</category><category>Class DatagramPacket in Java</category><category>Class DatagramSocket</category><category>Class DatagramSocket in java</category><category>Class Date</category><category>Class Dimension</category><category>Class File in java</category><category>Class FileDescriptor</category><category>Class FileDialog in Java</category><category>Class FileOutputStream</category><category>Class FontMetrics</category><category>Class FontMetrics in Java</category><category>Class Frame</category><category>Class Frame in AWT</category><category>Class Frame in java</category><category>Class Image in AWT</category><category>Class InputStream</category><category>Class Insets</category><category>Class Insets in AWT</category><category>Class Insets in java</category><category>Class Label</category><category>Class List</category><category>Class Long in Java</category><category>Class Math</category><category>Class MediaTracker</category><category>Class Menu</category><category>Class Menu in AWT</category><category>Class Menu in Java</category><category>Class Observable</category><category>Class OutputStream</category><category>Class Polygon</category><category>Class SecurityManager</category><category>Class Socket</category><category>Class SocketImpl</category><category>Class StringBuffer</category><category>Class System in Java</category><category>Class TextField</category><category>Class URL</category><category>Class URL in Java</category><category>Class URLConnection</category><category>Class URLEncoder</category><category>Class Window</category><category>Class Window in Java</category><category>Class concept</category><category>Class image in java in AWT</category><category>Class variable</category><category>Class-Class</category><category>ClassCastException</category><category>ClassCircularityError</category><category>ClassFormatError</category><category>ClassLoader</category><category>ClassNotFoundException</category><category>CloneNotSupportedException</category><category>Cloneable</category><category>Cloud App</category><category>Code Practice on QTP</category><category>Code Practice on UFT</category><category>Code review</category><category>CommandLine</category><category>CommandLine Argument</category><category>Communication in java</category><category>Compiler class</category><category>Component</category><category>ComponentAdapter</category><category>ComponentAdapter in Java</category><category>ComponentPeer interface</category><category>ComponentPeer interface in AWT</category><category>ComponentPeer interface in java</category><category>Concepts of Quality</category><category>Connection Oriented Protocol</category><category>Connection less Protocol</category><category>Consistency</category><category>Constants in VBScript</category><category>Constructor overloading</category><category>Contact Details</category><category>Container</category><category>Container Class In Java</category><category>Container class</category><category>ContainerAdapter</category><category>ContainerAdapter in Java</category><category>ContainerEvent</category><category>ContainerListener</category><category>ContainerPeer</category><category>ContainerPeer interface</category><category>ContainerPeer interface in AWT</category><category>ContainerPeer interface in java</category><category>ContentHandler</category><category>ContentHandler class in java</category><category>ContentHandlerFactory</category><category>ContentHandlerFactory interface in java</category><category>Conversion from data types to wrapper classes</category><category>Cookie delete in UFT</category><category>Coverage</category><category>Create Servlet</category><category>Create Servlet in JDeveloper</category><category>Crucible</category><category>Cucumber</category><category>Customizer</category><category>Customizer in java</category><category>Cyclic Inheritance</category><category>Daemon Thread</category><category>Dangling else</category><category>Dangling else problem in Java</category><category>Dapoli</category><category>DataInputStream</category><category>DataInputStream class</category><category>DataInputStream class in java</category><category>DataOutput Interface in Java</category><category>DataOutputStream</category><category>DataOutputStream class in java</category><category>DatagramPacket</category><category>DatagramSocket</category><category>Datahiding</category><category>Datatable in UFT</category><category>Datatypes in QTP</category><category>Datatypes in UFT</category><category>Datatypes in Vbscript</category><category>Date class in java</category><category>Deadlock</category><category>Decimal to Binary in java Without Using Library Function</category><category>Decimal to Hex Conversion</category><category>Decimal to Octal conversion</category><category>DecimalFormat</category><category>DecimalFormat in Java</category><category>Declaring Variables in VbScript</category><category>Descriptive</category><category>Descriptive Programming</category><category>Desired Capabilities</category><category>Desktop Path</category><category>Dialog</category><category>DialogPeer</category><category>Dictionary</category><category>Dictionary Object</category><category>Dictionary class</category><category>Difference between Applet and Application in java</category><category>Difference between enum</category><category>Different type of testing</category><category>Dim</category><category>Dimension</category><category>Doctype</category><category>Doctype testing</category><category>Doubletone</category><category>Doubtful steps</category><category>Dynamic Method Dispatch</category><category>Dynamic Method Dispatch in java</category><category>Dynamic linking</category><category>EOFException</category><category>Early Binding</category><category>Easy Refactoring</category><category>Empty Statement</category><category>Empty Statements in Java</category><category>EmptyStackException</category><category>Enum and Enumeration</category><category>Enumerated types</category><category>Enumerator</category><category>Environment Variable</category><category>Environment Variable in UFT</category><category>Event handling</category><category>Evil Number</category><category>Evil Number calculation</category><category>Execute tests in parallel</category><category>Execution control</category><category>Existing Tools</category><category>FSO</category><category>Facebook</category><category>Features of automation testing</category><category>Features of good Information System</category><category>File Class</category><category>File Creation date in UFT</category><category>File Operations in UFT or QTP</category><category>File System</category><category>FileDescriptor</category><category>FileDescriptor class in java</category><category>FileDialog</category><category>FileDialogPeer</category><category>FileDialogPeer interface</category><category>FileDialogPeer interface in AWT</category><category>FileDialogPeer interface in java</category><category>FileInputStream</category><category>FileInputStream class in java</category><category>FileNotFoundException</category><category>FileOutputStream</category><category>FileOutputStream class in java</category><category>FilenameFilter</category><category>FilenameFilter interface in java</category><category>FilterInputStream</category><category>FilterInputStream  class in java</category><category>FilterOutputStream</category><category>FilterOutputStream class in java</category><category>Finalize</category><category>Finalizer</category><category>Firefox</category><category>Fitness</category><category>Fixture</category><category>Fixtures in Fitnesse</category><category>FlowLayout</category><category>FlowLayout Manager in Java</category><category>FocusAdapter</category><category>FocusAdapter in Java</category><category>Folder structure</category><category>Font class</category><category>Font class in java</category><category>Format</category><category>Frame</category><category>FramePeer</category><category>FramePeer interface</category><category>FramePeer interface in AWT</category><category>FramePeer interface in java</category><category>Free Cross Browser Testing tools</category><category>GEB and Spock</category><category>GOA</category><category>Geoffrey A Moore vision Template</category><category>Get File creation Date and time</category><category>GetTOProperties and SetTOProperty in QTP?</category><category>GetTOProperty</category><category>Global variable in UFT</category><category>Glue code</category><category>Good Information Technology System</category><category>Google</category><category>Google Script</category><category>Google bloger</category><category>Great Books to Read</category><category>Greenball</category><category>GridBagConstraints</category><category>GridBagLayout</category><category>GridBagLayout in java</category><category>GridLayout</category><category>GridLayout in java</category><category>HAS-A</category><category>HAS-A relationship</category><category>HTML report in OATS</category><category>Handling Ajax application</category><category>Handling Event</category><category>Happy Number</category><category>HashMap</category><category>HashMap in Java</category><category>HashSet</category><category>Hashtable</category><category>Hashtable in java</category><category>Hex</category><category>Hide the implementation</category><category>Homneymoon at andaman</category><category>Honeymoon Plan</category><category>How Facebook is an important tool</category><category>How To Retrieve Value from Webelement</category><category>How To Retrieve Value from Webelement  in QTP/UFT?</category><category>How to Create your own Widget?</category><category>How to Treat Facebook as a Necessary Tool?</category><category>How to Use a Parentheses in QTP or UFT?</category><category>How to Work with FSO in QTP</category><category>How to Work with FSO in UFT</category><category>How to Work with FSO in VBScript</category><category>How to Write methods in java</category><category>How to add Multiple Libraries</category><category>How to calculate ArmStrong Number</category><category>How to calculate Evil Number in Java</category><category>How to calculate Factorial of a number</category><category>How to calculate Factorial of a number in Java</category><category>How to calculate Happy number</category><category>How to calculate Vulger fraction</category><category>How to calculate Vulger fraction in java</category><category>How to calculate perfect number</category><category>How to calculate perfect number in java</category><category>How to code in TSL</category><category>How to create package</category><category>How to delete cookie</category><category>How to read webElement</category><category>How to read webElement in QTP/UFT?</category><category>How to test cookies?</category><category>How to work with AOM</category><category>How to work with Environment Variable in UFT</category><category>How to work with Image</category><category>How to write Regular Expression in UFT</category><category>How to write Vision</category><category>How to write Vision in BDD</category><category>Hp Sprinter</category><category>Hyderabad to Rajahmundry</category><category>Hyderabad to kolkata</category><category>IOException</category><category>IS-A Relationship</category><category>ISTQB Sample Question Paper</category><category>Identifier</category><category>IllegalAccessError</category><category>IllegalAccessException</category><category>IllegalArgumentException</category><category>IllegalMonitorStateException</category><category>IllegalStateException</category><category>IllegalStateException in Java</category><category>IllegalThreadStateException</category><category>ImageProducer</category><category>ImageProducer interface</category><category>ImageProducer interface in Java</category><category>IncompatibleClassChangeError</category><category>IndexOutOfboundException</category><category>InetAddress</category><category>InetAddress class in java</category><category>Infinite loop</category><category>Initialization</category><category>InputStream class in Java</category><category>InstantiationError</category><category>InstantiationException</category><category>Inteface URLStreamHandlerFactory</category><category>Integer Class in Java</category><category>Inter thread.inter thread communication</category><category>Interface ButtonPeer</category><category>Interface CheckboxMenuPeer</category><category>Interface DataInput</category><category>Interface DataInput in java</category><category>Interface DialogPeer</category><category>Interface DialogPeer in AWT</category><category>Interface Enumeration</category><category>Interface LabelPeer</category><category>Interface LabelPeer in AWT</category><category>Interface LabelPeer in java</category><category>Interface LayoutManager</category><category>Interface ListPeer in Java</category><category>Interface MenuBarPeer</category><category>Interface MenuBarPeer in Java</category><category>Interface MenuContainer</category><category>Interface MenuContainer in AWT</category><category>Interface MenuContainer in Java</category><category>Interface MenuPeer in java</category><category>Interface Observer</category><category>Interface PanelPeer in Java</category><category>Interface SocketImplFactory</category><category>Interface SocketImplFactory in java</category><category>Interface TextAreaPeer</category><category>Interface TextAreaPeer in java</category><category>Interface TextComponentPeer in Java</category><category>Interface WindowPeer</category><category>Interface concept in Java</category><category>InternalError</category><category>Internationalization</category><category>Interpreted language</category><category>Interpreter</category><category>InterruptedException</category><category>InterruptedIOException</category><category>Introduction of DevOps</category><category>Issues</category><category>Issues in Firefox</category><category>Issues in Selenium</category><category>Issues in UFT</category><category>ItemSelectable</category><category>ItemSelectable interface</category><category>ItemSelectable interface in Java</category><category>Iterator</category><category>Iterator Interface in collection</category><category>Iterator Interface in java</category><category>Iterator interface</category><category>JNLP</category><category>JSF Tutorials</category><category>JSON to XML</category><category>JSP</category><category>JUnit</category><category>JVM</category><category>Java Array</category><category>Java Process</category><category>Java Zip File</category><category>Java code</category><category>Java code to calculate perfect number</category><category>Java coding</category><category>Java documentation</category><category>Java source file</category><category>Java tools</category><category>Java.exe</category><category>Job Building</category><category>Kakatiya Musical Garden</category><category>Kerala trip</category><category>KeyAdapter</category><category>KeyAdapter in Java</category><category>KeyPress</category><category>Keydown</category><category>Keyup</category><category>Known problem of OATS</category><category>Koil sagar Dam</category><category>KoilKonda Fort</category><category>Kolkata</category><category>Kottayam</category><category>Label</category><category>Label class in AWT</category><category>Label class in Java</category><category>LabelPeer</category><category>Laknavaram Cheruvu</category><category>Late Binding</category><category>Lean thinking</category><category>Learn UFT or QTP Step By Step</category><category>Lifecycle of Thread</category><category>Limitations of OATS</category><category>LineNumberInputStream</category><category>LineNumberInputStream class in java</category><category>LinkageError</category><category>LinkedList</category><category>List class in AWT</category><category>List class in Java</category><category>ListPeer</category><category>Literals in java</category><category>Load OR</category><category>Load OR dynamically</category><category>Load OR dynamically using code</category><category>Local variable Initialization</category><category>Long drive</category><category>Loose Exception information</category><category>Loosely Encapsulated Class</category><category>Love Java</category><category>MalformedURLException</category><category>ManuPeer</category><category>Map</category><category>Map Interface</category><category>Map interface in collection</category><category>Map interface in java</category><category>Math</category><category>Math Class</category><category>Medak</category><category>Medak church</category><category>Medak fort</category><category>MediaTracker</category><category>MediaTracker class</category><category>MediaTracker class in AWT</category><category>MediaTracker class in java</category><category>Memory Allocation in Java</category><category>MenuBar</category><category>MenuBar in Java</category><category>MenuBarPeer</category><category>MenuComponent</category><category>MenuComponent in java</category><category>MenuComponentPeer</category><category>MenuComponentPeer in Java</category><category>MenuContainer</category><category>MenuItemPeer</category><category>MenuItemPeer in Java</category><category>Method Signature</category><category>Methods</category><category>Mindset</category><category>Mock Question paper ISTQB</category><category>Mock Test on Quality center</category><category>Modelling tools</category><category>Modular Approach</category><category>Mouse</category><category>Muda</category><category>MultiMedia in Java</category><category>Multimedia</category><category>Multiple Inheritance in java</category><category>Multiple Libraries</category><category>Naming Convention</category><category>NegativeArraySizeException</category><category>Network</category><category>Networking in Java</category><category>NoClassDefFoundError</category><category>NoRouteToHostException</category><category>NoRouteToHostException in java</category><category>NoSuchElementException</category><category>NoSuchFieldError</category><category>NoSuchMethodError</category><category>NoSuchMethodException</category><category>NoSuchSessionException</category><category>NoSuchSessionException in selenium</category><category>Non static Inner class</category><category>NotActiveException</category><category>NotActiveException in java</category><category>NotSerializableException</category><category>NotSerializableException in java</category><category>NullPointerException</category><category>Number</category><category>Number in Java</category><category>NumberFormat</category><category>NumberFormatException</category><category>Object Class</category><category>Object Class in Java</category><category>Object Concept</category><category>Object Initialization</category><category>Observable</category><category>Observer</category><category>OpenScript</category><category>Operator</category><category>Operator precedence</category><category>Operator precedence in java</category><category>Optional Step</category><category>Optional Step in QTP</category><category>Optional Step in UFT</category><category>Orkut</category><category>OutOfMemoryError</category><category>OutputStream class in java</category><category>OutputStreamWriter</category><category>OutputStreamWriter in java</category><category>Package</category><category>Pakhal Lake</category><category>Pakhal Wildlife Sanctuary</category><category>PanelPeer</category><category>PanelPeer in Java</category><category>Papikondalu</category><category>Papikondalu trip</category><category>Parallel Testing</category><category>Parallel running</category><category>Pareto Analysis</category><category>Pareto Principals</category><category>ParseInt</category><category>Pass by Reference</category><category>Perfect number</category><category>Permission issue</category><category>Permute String in Java Using Recursion</category><category>Persistent Properties</category><category>Pilot</category><category>PipedInputStream</category><category>PipedInputStream class in java</category><category>PipedOutputStream</category><category>PipedOutputStream  class in java</category><category>Plugin issue in Firefox</category><category>Plugins</category><category>Pocharam dam</category><category>Polygon</category><category>Polygon in AWT</category><category>Polygon in java</category><category>Polymorphism</category><category>Popup</category><category>PopupMenu</category><category>PopupMenu in Java</category><category>PopupMenuPeer</category><category>PopupMenuPeer in AWT</category><category>PopupMenuPeer in java</category><category>Precondition checks</category><category>Preparation for long drive</category><category>Prime Number</category><category>Primitive Datatypes</category><category>PrintStream</category><category>PrintStream class in java</category><category>Priority of Thread</category><category>Process</category><category>Properties</category><category>ProtocolException</category><category>PushbackInputStream</category><category>PushbackInputStream class in java</category><category>Quality</category><category>Queue</category><category>Queue interface</category><category>Queue interface in collection</category><category>Queue interface in java</category><category>ROI</category><category>Ramappa Lake</category><category>Random</category><category>Random Class</category><category>Random Number</category><category>Random Number generator</category><category>RandomAccessFile</category><category>RandomAccessFile class in java</category><category>Re usability</category><category>Read Excel in QTP</category><category>Read Excel in UFT</category><category>Read HTML</category><category>Recoveries in QTP</category><category>Recovery</category><category>Recursion</category><category>Redim</category><category>Regular Expression</category><category>Regular Expression in UFT</category><category>Resolve Popup</category><category>Review tools</category><category>Run time Interpreter</category><category>Runnable</category><category>Runtime</category><category>SOAPUI</category><category>SSO</category><category>Sample Test on UFT</category><category>ScrollBarPeer</category><category>ScrollBarPeer in Java</category><category>SecurityException</category><category>SecurityManager</category><category>SecurityManager in Java</category><category>Sele</category><category>SequenceInputStream</category><category>SequenceInputStream class in java</category><category>SequentialInputStream</category><category>SequentialInputStream in Java</category><category>Serialization</category><category>ServerSocket</category><category>ServerSocket class in java</category><category>SetText</category><category>Shape</category><category>Shape interface</category><category>Shape interface in java</category><category>Short</category><category>Short class</category><category>SimpleDateFormat</category><category>SimpleDateFormat class</category><category>SimpleDateFormat in Java</category><category>Singletone</category><category>Socket</category><category>Socket class in java</category><category>SocketException</category><category>SocketImpl</category><category>SocketImpl class in Java</category><category>SocketImplFactory</category><category>SortedMap</category><category>SortedMap Interface</category><category>SortedMap Interface in Collection</category><category>SortedMap Interface in Collection in Java</category><category>SortedMap Interface in java</category><category>SortedSet Interface</category><category>SortedSet interface in collection</category><category>Space reclaim</category><category>Speed of automation.</category><category>Stack implementation in java</category><category>StackOverFlowError</category><category>Statement in Java</category><category>Static Keyword</category><category>Static analysis tool</category><category>Static tools</category><category>Step by Step guide to learn UFT</category><category>Steps to perform after fresh ATG installation</category><category>Stop Screenlock</category><category>Stop Screensaver</category><category>Stop Test Process</category><category>Storage in Java</category><category>Storage in computer</category><category>Store objects</category><category>Store variables</category><category>Stream Concept in Java</category><category>StreamTokenizer</category><category>StreamTokenizer  class in java</category><category>String Comparison</category><category>StringBuffer</category><category>StringBufferInputStream</category><category>StringBufferInputStream  class in java</category><category>StringOutOfBoundsException</category><category>StringTokenizer</category><category>Super keyword</category><category>Super keyword in java</category><category>Switch case in Java</category><category>Synchronization</category><category>Synchronization in QTP</category><category>Synchronization in UFT</category><category>Synchronized</category><category>System</category><category>System Class</category><category>System Configuration</category><category>System Properties</category><category>SystemUtil in UFT</category><category>TSL</category><category>Test Process</category><category>Test Script Language</category><category>Test batch runner</category><category>Testing Challenges</category><category>Testing Process</category><category>Testing tools</category><category>TextArea class in AWT</category><category>TextArea class in java</category><category>TextAreaPeer</category><category>TextComponent</category><category>TextComponent  class in java</category><category>TextComponent class in AWT</category><category>TextComponentPeer</category><category>TextField class in AWT</category><category>TextField class in java</category><category>Textarea</category><category>Thousand Pillar Temple</category><category>Thread Priority</category><category>ThreadDeath</category><category>ThreadGroup</category><category>Throwable</category><category>Throws Keyword</category><category>Tightly Encapsulated Class</category><category>Tools</category><category>Top 15 Important concepts of Quality</category><category>Top UFT issues</category><category>Transfer Electricity Connection</category><category>Transfer Electricity Connection in our name</category><category>Transfer Electricity Connection in our name in Hyderabad</category><category>Travel to Medak</category><category>Travel to Vijayawada</category><category>Trip to Medak</category><category>Type casting</category><category>UDP</category><category>UDP in java</category><category>UFT Related</category><category>UFTDataFormatException</category><category>UFTDataFormatException  class in java</category><category>URL</category><category>URLConnection</category><category>URLConnection class in java</category><category>URLEncode</category><category>URLEncoder</category><category>URLStreamHandler</category><category>URLStreamHandler class in java</category><category>URLStreamHandlerFactory</category><category>Unicode characters</category><category>UnknownError</category><category>UnknownHostException</category><category>UnknownServiceException</category><category>UnsatisfiedLinkError</category><category>Upcasting</category><category>VBScript runtime error</category><category>VBScript runtime error -ActiveX Component Can&#39;t Create Object</category><category>VBscript To Convert JSON to XML</category><category>Values from enum</category><category>Varargs</category><category>Variable Initialization</category><category>Variable argument</category><category>Variable arguments in java</category><category>Variables in Vbscript</category><category>Vector Class in Java</category><category>VerifyError</category><category>Vijayawada</category><category>VirtualMachineError</category><category>Visibility</category><category>Visibility Interface</category><category>Visibility in Java</category><category>Vision Statement</category><category>Visit to Bidar</category><category>Vulger Fraction</category><category>WSDL</category><category>Warangal</category><category>Warangal Fort</category><category>WebDriver</category><category>WebServices</category><category>Webtable</category><category>What are GetROProperty</category><category>What is Cookie Testing</category><category>What is Doctype in web testing?</category><category>What is Pareto Analysis In Information Technology Specially in Testing?</category><category>Why we should love java</category><category>Widget</category><category>Window Class in AWT</category><category>WindowAdapter</category><category>WindowAdapter Class in Java</category><category>WindowPeer</category><category>WindowPeer interface in java</category><category>Windows Script Host (WSH)</category><category>Workarounds of OATS</category><category>WriteAbortedException</category><category>WriteAbortedException in java</category><category>XML</category><category>Zip file</category><category>abstract class</category><category>advantages of bugzilla</category><category>appletviewer</category><category>audioclip java</category><category>audioplayer java</category><category>automatic msgbox</category><category>best Look for your Home</category><category>bugzilla features</category><category>bugzilla mozilla</category><category>calculate Vulger fraction in java</category><category>capture tool tips in QTP</category><category>class ByteArrayInputStream</category><category>class ByteArrayInputStream in java</category><category>class CheckboxMenuItem</category><category>class DataOutputStream</category><category>class DatagramPacket</category><category>class FileInputStream</category><category>class FilterInputStream</category><category>class FilterOutputStream</category><category>class InetAddress</category><category>class LineNumberInputStream</category><category>class PipedInputStream</category><category>class PipedOutputStream</category><category>class PopupMenu</category><category>class PrintStream</category><category>class PushbackInputStream</category><category>class RandomAccessFile</category><category>class SequenceInputStream</category><category>class ServerSocket</category><category>class StreamTokenizer</category><category>class StringBufferInputStream</category><category>class TextArea</category><category>class TextComponent</category><category>class UFTDataFormatException</category><category>class URLStreamHandler</category><category>class and object in java</category><category>combobox in UFT</category><category>control structures in java with examples</category><category>decrypt</category><category>decrypt string</category><category>decrypt url</category><category>decrypt url in UFT</category><category>delete cookie in VbScript</category><category>difference between Action and Function</category><category>difference between throw and throws</category><category>downcasting</category><category>ear</category><category>else</category><category>factorial</category><category>final</category><category>fonts in AWT</category><category>global variable in java</category><category>how to add background music in java</category><category>how to get tool tips in QTP</category><category>how to pilot</category><category>hpi</category><category>hyderabad</category><category>if</category><category>if else</category><category>infinity</category><category>initialize java</category><category>interface ActionListener</category><category>interface CheckboxPeer</category><category>interface ContentHandlerFactory</category><category>interface DataOutput</category><category>interface FilenameFilter</category><category>interface FocusAdapter</category><category>interface ListPeer</category><category>interface ListPeer in AWT</category><category>interface MenuPeer</category><category>interface ScrollBarPeer</category><category>interface TextComponentPeer</category><category>jar</category><category>java architecture</category><category>java clip</category><category>java sound example</category><category>javac</category><category>javah</category><category>javap</category><category>jdb</category><category>keyword</category><category>leisure Vacation In Kerala</category><category>long drive from Hyderabad</category><category>loose encapsulation</category><category>main</category><category>main method</category><category>method</category><category>method overload</category><category>method overload in java</category><category>method overloading</category><category>method overloading in java</category><category>ntone</category><category>one day trip</category><category>parameters</category><category>path</category><category>path not found error</category><category>pilot project</category><category>platform independent</category><category>private</category><category>protected</category><category>scope of variables in java</category><category>sendKeys</category><category>statements</category><category>sun audio java</category><category>test</category><category>testpilot project</category><category>thread controlling in java</category><category>tight encapsulation</category><category>timed message box</category><category>tool tips</category><category>types of control structures in java</category><category>vba countdown timer msgbox</category><category>vba to close message box</category><category>war</category><title>TechTravelHub</title><description>A technical site for sharing my learning and experiences.</description><link>http://www.techtravelhub.com/</link><managingEditor>noreply@blogger.com (Animesh)</managingEditor><generator>Blogger</generator><openSearch:totalResults>784</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-4336947713275182930</guid><pubDate>Fri, 22 Feb 2019 16:09:00 +0000</pubDate><atom:updated>2019-02-22T21:41:58.416+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">NoSuchSessionException</category><category domain="http://www.blogger.com/atom/ns#">NoSuchSessionException in selenium</category><category domain="http://www.blogger.com/atom/ns#">Selenium</category><title>How to Resolve NoSuchSessionException in selenium?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838858/photosp/d2ae7cd3-56cb-4f2b-87bd-bbe84a54cad6/d2ae7cd3-56cb-4f2b-87bd-bbe84a54cad6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;How to Resolve NoSuchSessionException in selenium?&quot; border=&quot;0&quot; data-original-height=&quot;800&quot; data-original-width=&quot;640&quot; height=&quot;400&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838858/photosp/d2ae7cd3-56cb-4f2b-87bd-bbe84a54cad6/d2ae7cd3-56cb-4f2b-87bd-bbe84a54cad6.jpg&quot; title=&quot;How to Resolve NoSuchSessionException in selenium?&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;How to Resolve NoSuchSessionException in selenium?&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to Resolve NoSuchSessionException in selenium?&lt;/h3&gt;&lt;div&gt;&lt;div&gt;org.openqa.selenium.NoSuchSessionException: No active session with ID.&lt;/div&gt;&lt;div&gt;It means that the driver we are using is not able to connect or initiate an active session with underlying browser.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;The class Structure of NoSuchSessionException is as follows:&lt;/h4&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public class public class org.openqa.selenium.NoSuchSessionException extends org.openqa.selenium.WebDriverException&lt;br /&gt;{&lt;br /&gt;//field Information:&lt;br /&gt;public BASE_SUPPORT_URL;&lt;br /&gt;public DRIVER_INFO;&lt;br /&gt;public SESSION_ID;&lt;br /&gt;//constructors:&lt;br /&gt;NoSuchSessionException() &lt;br /&gt;NoSuchSessionException(java.lang.String reason) &lt;br /&gt;NoSuchSessionException(java.lang.String reason,java.lang.Throwable cause) &lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Possible Cause and Solve:&lt;/h4&gt;&lt;br /&gt;Step-1:&lt;br /&gt;Possibily the ChromeDriver/FireFoxDriver/IEDriver is not compatible the Chrome,FireFox,IE we are using along with Selenium Client.Check for JDK version compatibility.We need to downgarde or upgrade the versions to check for a solution.Ideally all latest versions should resolve our issue.&lt;br /&gt;Step-2:&lt;br /&gt;Are we using driver.close()? Check if there are some steps left after driver is closed.If so, driver.close() closes the browser and as there is no active browser, the driver quits. If we code hapazardly, this issue may appear. We need to define a teardown method after the test to call driver.quit().&lt;br /&gt;This issue may also arises when we try to run parallel execution on selenium grid. Just in case we are calling driver.quit() before any other test,the driver is set to null and the subsequent test does not get the proper driver information to work on it.&lt;br /&gt;We need to implement @AfterTest or @AfterGroup annotation and define the tear down method there.&lt;br /&gt;We need to look for driver.close() or driver.quit() method of our code.&lt;br /&gt;&lt;br /&gt;Step-3:&lt;br /&gt;This issue can arises,when we try to open new Window instead of Tab under a driver. Make sure the Tab is opened under the driver not a new Window. New Window may need new Session.We need make sure we are not opening multiple browsers during testing.&lt;br /&gt;&lt;br /&gt;Step-4:&lt;br /&gt;This issue can also appear if we have started testing i.e @Test before even browser launches properly. If the test starts running before a successful handshake between browser and driver,the session info is invalid.We need to give enough sync time between browser launch in the @before annotation or whereever we are trying to open a browser.&lt;br /&gt;&lt;br /&gt;Step-5:&lt;br /&gt;If we are using docker,we need to configure the docker-compose.yml file.The bydefault size is 64MM and the recommanded size is 256MB. We need to increase it.We need to check for conatainer priviledge as well. We need to execute docker with docker run --priviledged mode.This flag enables all capabilities for a container.&lt;br /&gt;&lt;br /&gt;Step-6:&lt;br /&gt;Very surprisingly there could be an exception due to the way we are identifying the elemnt. If there is any error in Xpath,id or CSS or the way,we are identifying the element , this exception can occur. We need to double check the element finding starategy.&lt;br /&gt;&lt;br /&gt;Step-7:&lt;br /&gt;Is our dependency file(POM.xml) correct? and is it righly pointing to the correct artifacts like jars.We need to check this one also while working with jenkins.&lt;br /&gt;&lt;br /&gt;Step-8:&lt;br /&gt;are we poiniting correct driver? It may so happen that instead of pointing to the local driver we are pointing to Remote driver&lt;br /&gt;We need to use:&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Driver driver=new ChromeDriver();&lt;br /&gt;//instead of &lt;br /&gt;Driver driver=new RemoteChromeDriver();&lt;br /&gt;Driver driver=new RemoteWebDriver();&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Step-9:&lt;br /&gt;Incase of Katalon, incorect proxy configuration can break the code and throw this exception.The default proxy option for Katalon studio is No Proxy.Either we need to chage the proxy to our desired one by navigating Run-&amp;gt;Katalon Studio Preferences-&amp;gt;Katalon-&amp;gt;Proxy and change to your desired one. or  we can select Use System Configuration. This will enable the browser and driver to have a proper handshake.&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/02/how-to-resolve-nosuchsessionexception.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-1667435545135607846</guid><pubDate>Tue, 19 Feb 2019 16:40:00 +0000</pubDate><atom:updated>2019-02-19T22:59:10.576+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Best Home Color</category><category domain="http://www.blogger.com/atom/ns#">best Look for your Home</category><category domain="http://www.blogger.com/atom/ns#">Lifestyle</category><title>Best Color For Your Home</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838969/photosp/6d8b0f26-1edf-4493-aa15-6e3151751ed9/6d8b0f26-1edf-4493-aa15-6e3151751ed9.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Best Home Color&quot; border=&quot;0&quot; data-original-height=&quot;426&quot; data-original-width=&quot;640&quot; height=&quot;266&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838969/photosp/6d8b0f26-1edf-4493-aa15-6e3151751ed9/6d8b0f26-1edf-4493-aa15-6e3151751ed9.jpg&quot; title=&quot;Best Home Color&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Best Home Color&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Best Color For Your Home:&lt;/h3&gt;&lt;div&gt;Dupioni Faux bois Intaglio Pulmonaria. Rare tropics diseases? European politicians? Expensive appetizers? Nope, they are paint colors. If you&#39;re thinking of painting the exterior of your home you might be wondering whatever happened to blue, green, and red. The array of their names and color selections are sufficient to provide a homeowner a situation of Chromophobia - colors fear. How do you decide what color to use when there are plenty of alternatives? At more for quality latex or a gallon, you cannot afford to make a mistake. And should you not like the colors, your neighbors won&#39;t either have impact - you are not.&lt;br /&gt;&lt;br /&gt;However preparation and a small research might help you to get started that the paint job is one which you - and your neighbors will be pleased with. An existing house is not a canvas - after all, you aren&#39;t altering the colour of the brick the roof or stone, and perhaps not even the windows. Masonry walls and roofs are regions of starting points and color for developing a palette. A exterior paint scheme should be composed of a minimum of three colors! The area - big areas like roofs or walls, the - corner boards, window trim, fascias, rakes, etc.; and - particular components including doors, shutters, together with other architectural capabilities. &lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Lighter shed:&lt;/h4&gt;Field colours make up the majority of what you will see on the home and will lead you to the choice of trimming and accent. Are you attempting to make your house look a small more prominent on the street? A lighter field colour will make it look larger, just a darker colour will visually shrink it. Unattractive elements - gutters, downspouts, etcto help them disappear in the background.to help them disappear in the background colour to allow them disappear into the background. But it is the trim colour that may make or break the program. Painting the trim the same colour as the field could work in several cases, however it may also give the home an unfinished or wedding cake look. &lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Darker Shed:&lt;/h4&gt;Darker trim - Particularly around the windows - may cause a frame effect, where the windows look like pictures hung on a wall. Keeping the trimming lighter than the field is nearly always a safe bet. The accent colour scheme and draws attention to the important. Once you have scheme and draws attention to the important. It is scheme and draws attention to the important colour scheme and draws attention to the important characteristics of the home. The front door, shutters, and the chimney frames colors.&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Electrifying color:&lt;/h4&gt;Greens, pinks, and blues could be used to make a fashionable look. Custom home paint color matching can be made to make the best look for you. The way is dependent upon the substance that your home is made from. While others adhere to stone or brick, paints are made for wood. It is important to select the best outside house paint colors since could make or break the appearance of your home. The paint brands and surrounding neighborhood and types for your exterior house ideas will vary dependent upon your style in addition to the look of your yard.&lt;br /&gt;&lt;br /&gt;Color schemes should emphasize architecture and the details of your house. While softer, more neutral colors are more common for exterior paint colors, brighter colorful hues may be utilized as well so long as it&#39;s done carefully. You can change the mood of exterior or the interior of with a change. Does the overall look of your house increase, but painting your home is easy. There are various home paint color ideas that you may usage to spruce up the exterior and interior of your house. The way to do is adding the walls and a paint coat. Painting the exterior of your house create an appealing look that friends and neighbors will be envious of and can enhance its curb appeal. When selecting the best interior paint colors, it&#39;s important since the exterior is first thing that individuals will see when visiting your house. The walls of your own house act as a blank canvas for you to produce artwork with endless color palettes to select from. Here you can find many do-it-yourself painting and decorating styles to help spark a few notions and provide you inspiration to turn your house into an enchanting, colorful place.&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/02/best-color-for-your-home.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-4845389784769113526</guid><pubDate>Wed, 13 Feb 2019 16:24:00 +0000</pubDate><atom:updated>2019-02-22T03:29:52.374+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Code Practice on QTP</category><category domain="http://www.blogger.com/atom/ns#">Code Practice on UFT</category><category domain="http://www.blogger.com/atom/ns#">Sample Test on UFT</category><category domain="http://www.blogger.com/atom/ns#">UFT</category><category domain="http://www.blogger.com/atom/ns#">VBscript</category><title>Frequently Asked Coding Questions During Interview on UFT</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838939/photosp/cf2741a0-ea1e-4b7d-8dfe-01267af65d5f/cf2741a0-ea1e-4b7d-8dfe-01267af65d5f.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Frequently Asked Coding Questions During Interview on UFT&quot; border=&quot;0&quot; data-original-height=&quot;427&quot; data-original-width=&quot;640&quot; height=&quot;266&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838939/photosp/cf2741a0-ea1e-4b7d-8dfe-01267af65d5f/cf2741a0-ea1e-4b7d-8dfe-01267af65d5f.jpg&quot; title=&quot;Frequently Asked Coding Questions During Interview on UFT&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Frequently Asked Coding Questions During Interview on UFT&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Frequently Asked Coding Questions During Interview on UFT&lt;/h3&gt;&lt;div&gt;Read &lt;a href=&quot;https://www.techtravelhub.com/2010/09/replace-function-without-using-inbuilt.html&quot; target=&quot;_blank&quot;&gt;here &lt;/a&gt;also for one more interview question.&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to Add digits of a given number?&lt;/h3&gt;&lt;div&gt;Here the trick to check if we are following mod logic to get the number. However, we can use for loop to get the numbers one by one and add them.&lt;/div&gt;&lt;div&gt;I have explained the mod logic as below&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim num, sum&lt;br /&gt;num=inputbox (&quot;Enter a Four digit number&quot;)&lt;br /&gt;If Len(num) = 4 Then&lt;br /&gt;sum=0&lt;br /&gt;sum=sum+num mod 10&lt;br /&gt;num=num/10&lt;br /&gt;num= left (num, 3)&lt;br /&gt;sum=sum+num mod 10&lt;br /&gt;num=num/10&lt;br /&gt;num= left (num, 2)&lt;br /&gt;sum=sum+num mod 10&lt;br /&gt;num=num/10&lt;br /&gt;num= left (num, 1)&lt;br /&gt;sum=sum+num mod 10&lt;br /&gt;msgbox (&quot;Sum is &quot; &amp;amp;sum)&lt;br /&gt;else&lt;br /&gt;msgbox &quot;Number, you entered is not a 4 digit number&quot;&lt;br /&gt;End If&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to read any Four-digit number and display the number in reverse order?&lt;/h3&gt;off course we can convert the given digit to String and use the inbuilt String reverse function.We can use recursion to solve the issue.&amp;nbsp; Here is an approach to use the aabove-writtenmod logic to reverse the same.&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim num,rev&lt;br /&gt;num= inputbox(&quot;Enter a number&quot;)&lt;br /&gt;If len(num)=4 Then&lt;br /&gt;rev=rev*10 + num mod 10&lt;br /&gt;num=num/10&lt;br /&gt;num= left(num,3)&lt;br /&gt;rev=rev*10 + num mod 10&lt;br /&gt;num=num/10&lt;br /&gt;num= left(num,2)&lt;br /&gt;rev=rev*10 + num mod 10&lt;br /&gt;num=num/10&lt;br /&gt;num= left(num,1)&lt;br /&gt;rev=rev*10 + num mod 10&lt;br /&gt;msgbox &quot;Reverse Order of the number is &quot;&amp;amp;rev&lt;br /&gt;Else&lt;br /&gt;msgbox &quot;Number, you entered is not a 4 digit number&quot;&lt;br /&gt;End If&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;one more approach to reverse the number:&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim num,n&lt;br /&gt;n=Inputbox (&quot;Enter a Vaule&quot;)&lt;br /&gt;For num=n to 1 step -1&lt;br /&gt;msgbox num&lt;br /&gt;Next &lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to calculate the grade for an examination and display the grade obtained?&lt;/h3&gt;&lt;/div&gt;The conditions are:&lt;br /&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;If average marks Greater than or equal to 75, the grade is Distinction&lt;/li&gt;&lt;li&gt;If average marks Greater than or equal to 60 and less than 75 , then the grade is First&lt;/li&gt;&lt;li&gt;If average marks Greater than or equal to 50 and less than 60, then the grade is Second&lt;/li&gt;&lt;li&gt;If average marks Greater than or equal to 40 and less than 50 , then the grade is Third&lt;/li&gt;&lt;li&gt;Minimum marks 35 for any subject, otherwise &#39;no grade fail&#39;)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div&gt;There are several ways to solve this. The most efficient code is to use the Switch statement. I have coded with if else&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;&lt;br /&gt;Dim e,m,p,c, tot&lt;br /&gt;e=inputbox (&quot;Enter english Marks&quot;)&lt;br /&gt;m=inputbox (&quot;Enter maths Marks&quot;)&lt;br /&gt;p=inputbox (&quot;Enter physics Marks&quot;)&lt;br /&gt;c=inputbox (&quot;Enter chemistry Marks&quot;)&lt;br /&gt;&lt;br /&gt;tot= cdbl(e) + cdbl(m) + cdbl(p) + cdbl(c)&lt;br /&gt;msgbox tot&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If cdbl(e) &amp;gt;=35 and cdbl(m) &amp;gt;=35 and cdbl(p) &amp;gt;=35 and cdbl(c) &amp;gt;=35 and tot &amp;gt;=300 Then&lt;br /&gt;msgbox &quot;Grade is Distinction&quot;&lt;br /&gt;&lt;br /&gt;else If  cdbl(e) &amp;gt;=35 and cdbl(m) &amp;gt;=35 and cdbl(p) &amp;gt;=35 and cdbl(c) &amp;gt;=35 and tot &amp;gt;=240 and tot&lt;300 cdbl=&quot;&quot; e=&quot;&quot; else=&quot;&quot; first=&quot;&quot; if=&quot;&quot; is=&quot;&quot; msgbox=&quot;&quot; rade=&quot;&quot; then=&quot;&quot;&gt;=35 and cdbl(m) &amp;gt;=35 and cdbl(p) &amp;gt;=35 and cdbl(c) &amp;gt;=35 and tot &amp;gt;=200 and tot&lt;240 cdbl=&quot;&quot; e=&quot;&quot; else=&quot;&quot; if=&quot;&quot; is=&quot;&quot; msgbox=&quot;&quot; rade=&quot;&quot; second=&quot;&quot; then=&quot;&quot;&gt;=35 and cdbl(m) &amp;gt;=35 and cdbl(p) &amp;gt;=35 and cdbl(c) &amp;gt;=35 and tot &amp;gt;=160 and tot&lt;200 code=&quot;&quot; else=&quot;&quot; end=&quot;&quot; fail=&quot;&quot; grade=&quot;&quot; if=&quot;&quot; is=&quot;&quot; msgbox=&quot;&quot; o=&quot;&quot; rade=&quot;&quot; then=&quot;&quot; third=&quot;&quot;&gt;&lt;/200&gt;&lt;/240&gt;&lt;/300&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to calculate Even or odd calculation till n(any given number)&lt;/h3&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;text-align: left;&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim num,n&lt;br /&gt;n=Inputbox (&quot;Enter a Vaule&quot;)&lt;br /&gt;For num= 1 to n step 2&lt;br /&gt;msgbox num&lt;br /&gt;Next&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Write a program for finding out whether the given year is a leap year or not?&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;text-align: left;&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim xyear&lt;br /&gt;xyear=inputbox (&quot;Enter Year&quot;)&lt;br /&gt;If xyear mod 4=0 Then&lt;br /&gt;msgbox &quot;This is a Leap year&quot;&lt;br /&gt;Else &lt;br /&gt;msgbox &quot;This is NOT&quot;&lt;br /&gt;End If&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Read two numbers and display the sum?&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim num1,num2, sum&lt;br /&gt;num1=inputbox (&quot;Enter num1&quot;)&lt;br /&gt;num2=inputbox (&quot;Enter num2&quot;)&lt;br /&gt;sum= Cdbl (num1) + Cdbl (num2) &#39;if we want add two strings conversion require&lt;br /&gt;msgbox (&quot;Sum is &quot; &amp;amp;sum)&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to Calculate the odd even number in UFT?&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim num&lt;br /&gt;num=inputbox (&quot;Enter a number&quot;)&lt;br /&gt;If num mod 2=0 Then&lt;br /&gt;msgbox &quot;This is a Even Number&quot;&lt;br /&gt;Else &lt;br /&gt;msgbox &quot;This is a Odd Number&quot;&lt;br /&gt;End If&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to Calculate the Simple Interest?&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim p,t, r, si&lt;br /&gt;p=inputbox (&quot;Enter Principle&quot;)&lt;br /&gt;t=inputbox (&quot;Enter Time&quot;)&lt;br /&gt;r=inputbox (&quot;Enter Rate of Interest&quot;)&lt;br /&gt;si= (p*t*r)/100 &#39; p= principle amount, t=time in years, r= rate of interest&lt;br /&gt;msgbox (&quot;Simple Interest is &quot; &amp;amp;si)&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to display natural numbers up to n and write in a text file?&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;text-align: left;&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim num, n, fso, myfile&lt;br /&gt;n= inputbox (&quot;Enter any Value&quot;)&lt;br /&gt;num=1&lt;br /&gt;For num= 1 to n step 1&lt;br /&gt;Set fso= createobject (&quot;scripting.filesystemobject&quot;)&lt;br /&gt;set myfile=fso.opentextfile (&quot;D:\test.txt&quot;, 8, true)&lt;br /&gt;myfile.writeline num&lt;br /&gt;myfile.close&lt;br /&gt;Next&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to display Natural numbers sum up to n? (Using For...Next Loop)&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim num, n, sum&lt;br /&gt;n= inputbox (&quot;Enter a Value&quot;)&lt;br /&gt;sum=0&lt;br /&gt;For num= 1 to n step 1&lt;br /&gt;sum= sum+num&lt;br /&gt;Next&lt;br /&gt;msgbox sum&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to display Natural numbers sum up to n? (using While...Wend Loop)&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim num, n, sum&lt;br /&gt;n= inputbox (&quot;Enter a Value&quot;)&lt;br /&gt;While num &amp;lt;=cdbl (n)&lt;br /&gt;sum= sum+num&lt;br /&gt;num=num+1&lt;br /&gt;Wend&lt;br /&gt;msgbox sum&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Display Natural numbers sum up to n? (Using Do...Until...Loop)&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;text-align: left;&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim num, n, sum&lt;br /&gt;n= inputbox (&quot;Enter a Value&quot;)&lt;br /&gt;sum=0&lt;br /&gt;num=1&lt;br /&gt;Do &lt;br /&gt;sum= sum+num&lt;br /&gt;num=num+1&lt;br /&gt;Loop Until num =cdbl (n+1)&lt;br /&gt;msgbox sum&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Write a Function for Natural Numbers sum up to n&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;text-align: left;&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Function NNumCou (n)&lt;br /&gt;Dim num, sum&lt;br /&gt;sum=0&lt;br /&gt;For num= 1 to n step 1&lt;br /&gt;sum= sum+num&lt;br /&gt;Next&lt;br /&gt;msgbox sum&lt;br /&gt;End Function&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Verify weather the entered 10 digit value is a numeric value or not&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;text-align: left;&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim a,x,y,z,num&lt;br /&gt;num=Inputbox (&quot;Enter a Phone Number&quot;)&lt;br /&gt;&lt;br /&gt;d1= left (num,1)&lt;br /&gt;d10=Right (num,1)&lt;br /&gt;d2=mid (num, 2, len (1))&lt;br /&gt;d3=mid (num, 3, len (1))&lt;br /&gt;d4=mid (num, 4, len (1))&lt;br /&gt;d5=mid (num, 5, len (1))&lt;br /&gt;d6=mid (num, 6, len (1))&lt;br /&gt;d7=mid (num, 7, len (1))&lt;br /&gt;d8=mid (num, 8, len (1))&lt;br /&gt;d9=mid (num, 9, len (1))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If isnumeric (d1) = &quot;True&quot; and isnumeric (d2) = &quot;True&quot; and isnumeric (d3) = &quot;True&quot; and isnumeric (d4) = &quot;True&quot;and isnumeric (d5) = &quot;True&quot;and isnumeric (d6) = &quot;True&quot;and isnumeric (d7) = &quot;True&quot;and isnumeric (d8) = &quot;True&quot;and isnumeric (d9) = &quot;True&quot;and isnumeric (d10) = &quot;True&quot; Then&lt;br /&gt;msgbox &quot;It is a Numeric Value&quot;&lt;br /&gt;else&lt;br /&gt;Msgbox &quot;It is NOT Numeric&quot;&lt;br /&gt;End If&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Slightly upgraded logic&lt;/h4&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim a,x,y,z,num&lt;br /&gt;num=Inputbox (&quot;Enter a Phone Number&quot;)&lt;br /&gt;&lt;br /&gt;d1= left (num,1)&lt;br /&gt;d10=Right (num,1)&lt;br /&gt;d2=mid (num, 2, len (1))&lt;br /&gt;d3=mid (num, 3, len (1))&lt;br /&gt;d4=mid (num, 4, len (1))&lt;br /&gt;d5=mid (num, 5, len (1))&lt;br /&gt;d6=mid (num, 6, len (1))&lt;br /&gt;d7=mid (num, 7, len (1))&lt;br /&gt;d8=mid (num, 8, len (1))&lt;br /&gt;d9=mid (num, 9, len (1))&lt;br /&gt;&lt;br /&gt;If len (num) =10 Then&lt;br /&gt;&lt;br /&gt;If isnumeric (d1) = &quot;True&quot; and isnumeric (d2) = &quot;True&quot; and isnumeric (d3) = &quot;True&quot; and isnumeric (d4) = &quot;True&quot;and isnumeric (d5) = &quot;True&quot;and isnumeric (d6) = &quot;True&quot;and isnumeric (d7) = &quot;True&quot;and isnumeric (d8) = &quot;True&quot;and isnumeric (d9) = &quot;True&quot;and isnumeric (d10) = &quot;True&quot; Then&lt;br /&gt;msgbox &quot;It is a Numeric Value&quot;&lt;br /&gt;End If&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;If len (num) &amp;lt;&amp;gt; 10 Then&lt;br /&gt;Msgbox &quot;It is NOT valid Number &quot;&lt;br /&gt;End If&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to read a number and verify that number Range weather in between 1 to 100 or 101 to 1000?&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;text-align: left;&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Option explicit&lt;br /&gt;Dim a,x&lt;br /&gt;a=Inputbox (&quot;Enter a Vaule&quot;)&lt;br /&gt;a=cdbl(a)&lt;br /&gt;If a&amp;lt;= 100 Then&lt;br /&gt;For x= 1 to 100&lt;br /&gt;If a=x Then&lt;br /&gt;msgbox &quot;a is in between 1 to 100 range&quot;&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;else&lt;br /&gt;For x= 101 to 1000&lt;br /&gt;If a=x Then&lt;br /&gt;msgbox &quot;a is in between 101 to 1000 range&quot;&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;End If&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to check if a given letter is present in the given String ?&lt;/h3&gt;Yes, the interviewer wanted to know if I knew how to use the various Vbscript functions. That is why I needed to code in this way. It is not very efficient though but showed that I knew the VBscript inbuilt functions and how to use them.&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim x&lt;br /&gt;x=Inputbox (&quot;Enter your String&quot;)&lt;br /&gt;y=Inputbox (&quot;Enter your search character&quot;)&lt;br /&gt;x1=Right(x,1)&lt;br /&gt;x2=Left (x,1)&lt;br /&gt;x3=mid (x,2,Len(1))&lt;br /&gt;x4=mid (x,3,Len(1))&lt;br /&gt;y=len(x)&lt;br /&gt;If y=4 Then&lt;br /&gt;If x1=y or x2=y or x3=y or x4=y Then&lt;br /&gt;msgbox y &amp;amp;&quot; is there&quot;&lt;br /&gt;else&lt;br /&gt;msgbox y &amp;amp;&quot; is Not there&quot;&lt;br /&gt;End If&lt;br /&gt;else&lt;br /&gt;msgbox &quot;Invalid Data&quot;&lt;br /&gt;End If&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to work with MSWORD in UFT?&lt;/h3&gt;The below snippet will open a word document and write something and save it as test.doc&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim MyobjWD&lt;br /&gt;Set MyobjWD = CreateObject(&quot;Word.Application&quot;)&lt;br /&gt;MyobjWD.Documents.Add&lt;br /&gt;MyobjWD.Selection.TypeText &quot;This is some text.&quot; &amp;amp; Chr(13) &amp;amp; &quot;This is some more text&quot;&lt;br /&gt;MyobjWD.ActiveDocument.SaveAs &quot;D:\test.doc&quot;&lt;br /&gt;MyobjWD.Quit&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to count the number of occurance of a word in a given file?&lt;/h3&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;text-align: left;&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;sMyFileName=&quot;E:\test.txt&quot;&lt;br /&gt;sMyString=&quot;hello world&quot;&lt;br /&gt;Const FOR_READING = 1&lt;br /&gt;Dim oFso, oTxtFile, sReadTxt, oRegEx, oMatches&lt;br /&gt;Set oFso = CreateObject(&quot;Scripting.FileSystemObject&quot;)&lt;br /&gt;Set oTxtFile = oFso.OpenTextFile(sMyFileName, FOR_READING)&lt;br /&gt;sReadTxt = oTxtFile.ReadAll&lt;br /&gt;Set oRegEx = New RegExp&lt;br /&gt;oRegEx.Pattern = sMyString&lt;br /&gt;oRegEx.IgnoreCase = bIgnoreCase&lt;br /&gt;oRegEx.Global = True&lt;br /&gt;Set oMatches = oRegEx.Execute(sReadTxt)&lt;br /&gt;MatchesFound = oMatches.Count&lt;br /&gt;Set oTxtFile = Nothing : Set oFso = Nothing : Set oRegEx = Nothing&lt;br /&gt;msgbox MatchesFound&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to Compare two test files in UFT?&lt;/h3&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim f1, f2&lt;br /&gt;f1=&quot;e:\test1.txt&quot;&lt;br /&gt;f2=&quot;e:\test2.txt&quot;&lt;br /&gt;Public Function CompareFiles (FilePath1, FilePath2)&lt;br /&gt;Dim FS, File1, File2&lt;br /&gt;Set FS = CreateObject(&quot;Scripting.FileSystemObject&quot;)&lt;br /&gt;&lt;br /&gt;If FS.GetFile(FilePath1).Size &amp;lt;&amp;gt; FS.GetFile(FilePath2).Size Then&lt;br /&gt;CompareFiles = True&lt;br /&gt;Exit Function&lt;br /&gt;End If&lt;br /&gt;Set File1 = FS.GetFile(FilePath1).OpenAsTextStream(1, 0)&lt;br /&gt;Set File2 = FS.GetFile(FilePath2).OpenAsTextStream(1, 0)&lt;br /&gt;&lt;br /&gt;CompareFiles = False&lt;br /&gt;Do While File1.AtEndOfStream = False&lt;br /&gt;Str1 = File1.Read&lt;br /&gt;Str2 = File2.Read&lt;br /&gt;&lt;br /&gt;CompareFiles = StrComp(Str1, Str2, 0)&lt;br /&gt;&lt;br /&gt;If CompareFiles &amp;lt;&amp;gt; 0 Then&lt;br /&gt;CompareFiles = True&lt;br /&gt;Exit Do&lt;br /&gt;End If&lt;br /&gt;Loop&lt;br /&gt;&lt;br /&gt;File1.Close()&lt;br /&gt;File2.Close()&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Call Comparefiles(f1,f2)&lt;br /&gt;&lt;br /&gt;If CompareFiles(f1, f2) = False Then&lt;br /&gt;MsgBox &quot;Files are identical.&quot;&lt;br /&gt;Else&lt;br /&gt;MsgBox &quot;Files are different.&quot;&lt;br /&gt;End If&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to implement Mid Function Without Using String Functions?&lt;/h3&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-ggBIauDYiBQ/UTOA_reasFI/AAAAAAAARGg/RixmlghbDjE/s1600/mid.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://2.bp.blogspot.com/-ggBIauDYiBQ/UTOA_reasFI/AAAAAAAARGg/RixmlghbDjE/s1600/mid.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;I tried to implement the mid function here. What I have done is&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;1.transfer the string to Array&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;2.then take the size of the array&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;3.k is the counter to check if it is equal to strtcut that is which position i need to cut and the length is the variable to understand till how much i need to cut.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Sub Macro1()&lt;br /&gt;Call midexplained(&quot;Animesh&quot;, 2, 2)&lt;br /&gt;&#39;same as mid(&quot;Animesh&quot;,2,2)&lt;br /&gt;End Sub&lt;br /&gt;Function midexplained(inputq, strtcut, length)&lt;br /&gt;Dim bText() As Byte&lt;br /&gt;Dim j As Integer&lt;br /&gt;j = 0&lt;br /&gt;Dim k As Integer&lt;br /&gt;k = 0&lt;br /&gt;Dim a(999)&lt;br /&gt;Dim n As String&lt;br /&gt;Dim MyString As String: MyString = inputq&lt;br /&gt;bText = MyString&lt;br /&gt;For i = 0 To UBound(bText) - 1&lt;br /&gt;If (bText(i) = 0) Then&lt;br /&gt;Else&lt;br /&gt;a(j) = Chr(bText(i))&lt;br /&gt;j = j + 1&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;For k = 0 To UBound(a) - 1&lt;br /&gt;If a(k) = &quot;&quot; Then&lt;br /&gt;ElseIf k + 1 &amp;gt;= strtcut And k &amp;lt; ((strtcut + length) - 1) Then&lt;br /&gt;n = n &amp;amp; a(k)&lt;br /&gt;Else&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;MsgBox &quot;value of n is &quot; &amp;amp; trim(n)&lt;br /&gt;End Function&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;The output for both the variable is the same.&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to Swap two number or two input strings?&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;sinp1=Inputbox(&quot;Enter the First string:&quot;)&lt;br /&gt;sinp2=Inputbox(&quot;Enter the second string:&quot;)&lt;br /&gt;scon=sinp1&amp;amp;sinp2&lt;br /&gt;msgbox scon&lt;br /&gt;lensinp1=len(sinp1)&lt;br /&gt;lensinp2=len(sinp2)&lt;br /&gt;lenscon=len(scon)&lt;br /&gt;msgbox lensinp1&lt;br /&gt;msgbox lensinp2&lt;br /&gt;msgbox lenscon&lt;br /&gt;&#39;For i=1 to lenscon&lt;br /&gt;&#39;smid1=mid(scon,i,lensinp1)&lt;br /&gt;&#39;Next&lt;br /&gt;&#39;msgbox smid1&lt;br /&gt;srght=right(scon, lensinp2)&lt;br /&gt;msgbox &quot;The swapped last name: &quot; &amp;amp;srght&lt;br /&gt;sleft=left(scon, lensinp1)&lt;br /&gt;msgbox &quot;The swapped first name: &quot; &amp;amp;sleft&lt;br /&gt;scon2=srght&amp;amp;sleft&lt;br /&gt;msgbox &quot;The swapped string:&quot; &amp;amp; scon2&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to find the Dedcimal value of a given hexadecimal and vice varsa?&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;text-align: left;&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;sinp=Inputbox(&quot;Enter the Hexadecimal number::&quot;)&lt;br /&gt;&lt;br /&gt;slen=len(sinp)&lt;br /&gt;c=0&lt;br /&gt;For i=1 to slen&lt;br /&gt;smid=mid(sinp,i,1)&lt;br /&gt;If isnumeric(smid)=False Then&lt;br /&gt;Select Case smid&lt;br /&gt;Case &quot;A&quot; n=10&lt;br /&gt;Case &quot;B&quot; n=11&lt;br /&gt;Case &quot;C&quot; n=12&lt;br /&gt;Case &quot;D&quot; n=13&lt;br /&gt;Case &quot;E&quot; n=14&lt;br /&gt;Case &quot;F&quot; n=15&lt;br /&gt;End Select&lt;br /&gt;c=c+cInt(n)*(16^(slen-i))&lt;br /&gt;Else&lt;br /&gt;c=c+cInt(smid)*(16^(slen-i))&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;msgbox (&quot;The Decimal Equivalentof the Hex number:: &quot;&amp;amp;sinp&amp;amp;&quot;=&quot; &amp;amp;c)&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to find out if a string is having numeric values or not?&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;sinp=Inputbox(&quot;Enter the String::&quot;)&lt;br /&gt;slen=len(sinp)&lt;br /&gt;For i=1 to slen&lt;br /&gt;smid=mid(sinp,i,1)&lt;br /&gt;If isnumeric(smid) Then&lt;br /&gt;snum=snum &amp;amp; smid&lt;br /&gt;tfchk=True&lt;br /&gt;else&lt;br /&gt;tfchk=false&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;If tfchk=True Then&lt;br /&gt;msgbox snum&lt;br /&gt;End If&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Design a basic calculator that takes two input and and an operation as input and provide us the result.&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Option explicit&lt;br /&gt;Dim x,y, Operation, Result&lt;br /&gt;x= Inputbox (&quot; Enter x value&quot;)&lt;br /&gt;y= Inputbox (&quot;Enter y value&quot;)&lt;br /&gt;Operation= Inputbox (&quot;Enter an Operation&quot;)&lt;br /&gt;Select Case Operation&lt;br /&gt;  Case &quot;add&quot;&lt;br /&gt;      Result= cdbl (x)+cdbl (y)&lt;br /&gt;      Msgbox &quot;Addition of x,y values is &quot;&amp;amp;Result&lt;br /&gt;  Case &quot;sub&quot;&lt;br /&gt;      Result= x-y&lt;br /&gt;      Msgbox &quot;Substraction of x,y values is &quot;&amp;amp;Result&lt;br /&gt;  Case &quot;mul&quot;&lt;br /&gt;    Result= x*y&lt;br /&gt;      Msgbox &quot;Multiplication of x,y values is &quot;&amp;amp;Result&lt;br /&gt;  Case &quot;div&quot;&lt;br /&gt;      Result= x/y&lt;br /&gt;      Msgbox &quot;Division of x,y values is &quot;&amp;amp;Result&lt;br /&gt;  Case &quot;mod&quot;&lt;br /&gt;      Result= x mod y&lt;br /&gt;      Msgbox &quot;Mod of x,y values is &quot;&amp;amp;Result&lt;br /&gt;  Case &quot;expo&quot;&lt;br /&gt;      Result= x^y&lt;br /&gt;      Msgbox&quot;Exponentation of x,y values is &quot;&amp;amp;Result&lt;br /&gt;  Case Else&lt;br /&gt;      msgbox &quot;Wrong Operation&quot;&lt;br /&gt;End Select&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;How to Resize a window in QTP/UFT?&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Syntax:&lt;br /&gt;Max:&lt;br /&gt;Objectname.maximize&lt;br /&gt;min&lt;br /&gt;Objectname.minimize&lt;br /&gt;Restore:&lt;br /&gt;Objectname.Restore&lt;br /&gt;Move: This is not exactly a resizing command&lt;br /&gt;Objectname.move x,y&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to extract numbers from String?&lt;/h3&gt;&lt;br /&gt;For example :&lt;br /&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;If we pass &quot;There are 40 boys &quot;, the function should return us 40.&lt;/li&gt;&lt;li&gt;Similarly, if we pass &quot;Ticket is confirmed and the no is 56477&quot; to the function , it should return me 56777.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Function extract_number(msg)&lt;br /&gt;Dim re, matches, item, result&lt;br /&gt;Set re = New RegExp&lt;br /&gt;re.pattern = &quot;[A-Za-z -.]*(\d+).*&quot;&lt;br /&gt;Set matches = re.Execute(msg)&lt;br /&gt;If matches.Count &amp;gt; 0 Then&lt;br /&gt;Set item = matches(0)&lt;br /&gt;If item.SubMatches.Count &amp;gt; 0 Then&lt;br /&gt;result = item.SubMatches(0)&lt;br /&gt;Else&lt;br /&gt;result = -1&lt;br /&gt;End If&lt;br /&gt;Else&lt;br /&gt;result = -1&lt;br /&gt;End If&lt;br /&gt;extract_number = result&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;MsgBox extract_number(&quot;There are 40 boys&quot;)&lt;br /&gt;MsgBox extract_number(&quot;Ticket is confirmed and the no is 56477&quot;)&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Another way:&lt;/h4&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;mystring = &quot;The order is confirmed and its no is 567&quot;&lt;br /&gt;myLength = Len(mystring)&lt;br /&gt;&lt;br /&gt;For i = 1 To myLength&lt;br /&gt;&lt;br /&gt;If Asc(Mid(mystring, i, 1)) &amp;lt;&amp;gt; 32 Then&lt;br /&gt;If Asc(Mid(mystring, i, 1)) &amp;gt;= 48 And Asc(Mid(mystring, i, 1)) &amp;lt;= 57 Then&lt;br /&gt;myNumber = myNumber &amp;amp; Mid(mystring, i, 1)&lt;br /&gt;End If&lt;br /&gt;Else&lt;br /&gt;msgbox(&quot;no numeric&quot;)&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;msgbox(myNumber)&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to Ping Other computer using VBScript?&lt;/h3&gt;This is a sample code on how to network with another computer. This will automatically open up the command prompt and ping to the particular machine. For combating the Network latency and delay I have used some delay in the programming too.&lt;br /&gt;This is mostly applicable to the networking team and those who use com/dcom.&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot; style=&quot;text-align: left;&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Set oWshShell = CreateObject(&quot;wscript.Shell&quot;)&lt;br /&gt;Cmd = &quot;ping 58.2.122.76&quot;&lt;br /&gt;Set oExec = oWshShell.Exec(Cmd)&lt;br /&gt;Do While oExec.Status = 0&lt;br /&gt;WScript.Sleep 60&lt;br /&gt;Loop&lt;br /&gt;0utput= oExec.StdOut.ReadAll&lt;br /&gt;error_code = oExec.StdErr.ReadAll&lt;br /&gt;MsgBox &quot;Output: &quot; &amp;amp; output &amp;amp; vbNewLine &amp;amp; vbNewLine &amp;amp; &quot;Errors: &quot; &amp;amp; error_code&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Find out a number of occurrence of Substring within a string?&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Syntax--&lt;br /&gt;Call OSS(str,substring)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Function OSS(str,sbstring)&lt;br /&gt;occ=split(str,sbstring)&lt;br /&gt;oss=ubound(occ)&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Exp--msgbox OSS(&quot;anianianianiani&quot;,&quot;ani&quot;)&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;how we can measure the time required for each component to execute in QTP?&lt;/h3&gt;&lt;br /&gt;This &quot;TimeIt&quot; will give us the time required to execute the particular component.This is applicable to any script along with components.&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;&#39;//In the head of the script...&lt;br /&gt;Dim StartTime, EndTime&lt;br /&gt;StartTime = Timer&lt;br /&gt;&lt;br /&gt;....your code &lt;br /&gt;&lt;br /&gt;EndTime = Timer&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&#39;//In the last line of the script component...&lt;br /&gt;&lt;br /&gt;TimeIt = EndTime - StartTime&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Write a code in QTP which will close a particular opened window in Desktop. Say I said only opened Notepads needs to be closed.&lt;/h3&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;&lt;br /&gt;Set winobj=description.Create()&lt;br /&gt;Set objdesk=desktop.ChildObjects(winobj)&lt;br /&gt;cntobj=objdesk.count()&lt;br /&gt;msgbox cntobj&lt;br /&gt;sdt=Datatable.GetSheet(&quot;Global&quot;).GetParameter(&quot;OpenedApp&quot;)&lt;br /&gt;cntrow=DataTable.GetSheet(&quot;Global&quot;).GetRowcount()&lt;br /&gt;msgbox cntrow&lt;br /&gt;For i=1 to cntobj&lt;br /&gt;winapp1=objdesk(i).GetROProperty(&quot;text&quot;)&lt;br /&gt;If Winapp1=sdt Then&lt;br /&gt;.....&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;code class=&quot;language-java&quot;&gt; &lt;/code&gt;Write code on calling an action say the first action will take some input and will do some operation. Now the output of Action 1 will pass to Action 2. The output of Action-2 will go to Action-3. After finishing it will come back to Action1 and give the final output.&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;&lt;br /&gt;Action-1&lt;br /&gt;a=inputbox(&quot;Enter a number:&quot;)&lt;br /&gt;&lt;br /&gt;b=inputbox(&quot;Enter a number:&quot;)&lt;br /&gt;isum=cint(a)+cint(b)&lt;br /&gt;RunAction &quot;Action2&quot;, oneIteration,isum,output&lt;br /&gt;msgbox output&lt;br /&gt;Action-2&lt;br /&gt;imul=Inputbox(&quot;Enter a number to multiply:&quot;)&lt;br /&gt;&lt;br /&gt;pmul=Parameter(&quot;C&quot;)*imul&lt;br /&gt;Parameter(&quot;OUT&quot;)=pmul&lt;br /&gt;RunAction &quot;Action3&quot;, oneIteration, pmul, out&lt;br /&gt;Parameter(&quot;OUT&quot;)=out&lt;br /&gt;Action-3&lt;br /&gt;Parameter(&quot;LAST&quot;)=Parameter(&quot;IN3&quot;)+5&lt;br /&gt;&lt;br /&gt;Split a string and find the length&lt;br /&gt;&lt;br /&gt;sinp=inputbox(&quot;Enter the Path:&quot;)&lt;br /&gt;&lt;br /&gt;strsplit=split(sinp,&quot;\&quot;)&lt;br /&gt;slen=len(sinp)&lt;br /&gt;cnt=0&lt;br /&gt;For i=1 to slen&lt;br /&gt;sms=mid(sinp,i,1)&lt;br /&gt;If sms=&quot;\&quot; Then&lt;br /&gt;cnt=cnt+1&lt;br /&gt;End If&lt;br /&gt;Next&lt;br /&gt;msgbox strsplit(cnt)&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Sample Scenarios to Automate in QTP -Application: Mercury tours&lt;/h3&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Application: Mercury tours&lt;/h4&gt;&lt;br /&gt;1. Book a ticket in Mercury tours by logging with jojo and bean&lt;br /&gt;2. Book ticket with credit card number expiry date as 2003, 2007, 2008 (total three test iterations)&lt;br /&gt;3. Go to Itinerary and check recently booked itinerary is there with correct source and destination, date and time of booking&lt;br /&gt;3. Check the functionality of cancel checked reservations with selecting a specific itinerary and without selecting. Report results accordingly.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Settings to be performed in Mercury tours application before creating the script:-&lt;/h4&gt;&lt;br /&gt;1. start server (start-&amp;gt;programs-&amp;gt;mercury tours-&amp;gt;start server)&lt;br /&gt;2. open mercury tours application&lt;br /&gt;3. login as admin and mercury as password&lt;br /&gt;4. Select Data driven popup error&lt;br /&gt;5. Submit&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to get Test Path in QTP/UFT?&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Set qtApp = CreateObject(&quot;QuickTest.Application&quot;) &#39; Create the Application objectqtpApp.Test.Location&lt;br /&gt;TestLoc = qtApp.Test.Location&lt;br /&gt;MsgBox TestLoc&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;Another way..&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;msgbox Environment(&quot;TestDir&quot;)&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;However, you need to save the test before the run. Else will give&lt;br /&gt;1.not save&lt;br /&gt;2.temp directory as output.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How to Send Email via VBScript?&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Function SendMail(SendFrom, SendTo, Subject, Body)&lt;br /&gt;Set objMail=CreateObject(&quot;CDONTS.Newmail&quot;)&lt;br /&gt;ObjMail.From = SendFrom&lt;br /&gt;ObjMail.To = SendTo&lt;br /&gt;ObjMail.Subject = Subject&lt;br /&gt;ObjMail.Body = Body&lt;br /&gt;ObjMail.Send&lt;br /&gt;Set objMail = Nothing&lt;br /&gt;End Function&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Function SendMail(SendTo, Subject, Body, Attachment)&lt;br /&gt;Set ol=CreateObject(&quot;Outlook.Application&quot;)&lt;br /&gt;Set Mail=ol.CreateItem(0)&lt;br /&gt;Mail.to=SendTo&lt;br /&gt;Mail.Subject=Subject&lt;br /&gt;Mail.Body=Body&lt;br /&gt;If (Attachment &amp;lt;&amp;gt; &quot;&quot;) Then&lt;br /&gt;Mail.Attachments.Add(Attachment)&lt;br /&gt;End If&lt;br /&gt;Mail.Send&lt;br /&gt;ol.Quit&lt;br /&gt;Set Mail = Nothing&lt;br /&gt;Set ol = Nothing&lt;br /&gt;End Function&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;How to add Defects to Quality Center from UFT/QTP/Vbscript?&lt;br /&gt;Here is a sample code to Connects to Quality Center (TestDirector) from a QuickTest test and adds a bug to the database. This code was taken from &lt;a href=&quot;http://qtp9.blogspot.com/2007/11/adding-defects-to-quality-center.html&quot;&gt;here&lt;/a&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;Dim TDConnection&lt;br /&gt;Set TDConnection = CreateObject(&quot;TDApiOle.TDConnection&quot;)&lt;br /&gt;TDConnection.InitConnection &quot;http://hpqc/tdbin&quot; &#39; URL for the DB&lt;br /&gt;TDConnection.ConnectProject &quot;TD76&quot;,&quot;abc&quot;,&quot;xyz&quot; &#39; Valid login information&lt;br /&gt;If TDConnection.Connected Then&lt;br /&gt;MsgBox(&quot;Connected to &quot; + chr (13) + &quot;Server &quot; + TDConnection.ServerName _&lt;br /&gt;+ chr (13) +&quot;Project &quot; + TDConnection.ProjectName )&lt;br /&gt;Else&lt;br /&gt;MsgBox(&quot;Not Connected&quot;)&lt;br /&gt;End If&lt;br /&gt;&#39;Get the IBugFactory&lt;br /&gt;Set BugFactory = TDConnection.BugFactory&lt;br /&gt;&#39;Add a new empty bug&lt;br /&gt;Set Bug = BugFactory.AddItem (Nothing)&lt;br /&gt;&#39;Fill the bug with relevant parameters&lt;br /&gt;Bug.Status = &quot;New&quot;&lt;br /&gt;Bug.Summary = &quot;Connecting to TD&quot;&lt;br /&gt;Bug.Priority = &quot;4-Very High&quot; &#39; depends on the DB&lt;br /&gt;Bug.AssignedTo = &quot;admin&quot; &#39; user that must exist in the DB&#39;s users list&lt;br /&gt;Bug.DetectedBy = &quot;admin&quot; &#39; user that must exist in the DB&#39;s users list&lt;br /&gt;&#39;Post the bug to database (commit)&lt;br /&gt;Bug.Post&lt;br /&gt;&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/02/frequently-asked-coding-questions.html</link><author>noreply@blogger.com (Animesh)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://2.bp.blogspot.com/-ggBIauDYiBQ/UTOA_reasFI/AAAAAAAARGg/RixmlghbDjE/s72-c/mid.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-1124321842318876459</guid><pubDate>Wed, 06 Feb 2019 10:10:00 +0000</pubDate><atom:updated>2019-02-22T01:30:46.016+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">InputStream</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">SequentialInputStream</category><category domain="http://www.blogger.com/atom/ns#">SequentialInputStream in Java</category><title>SequentialInputStream in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838689/photosp/9a66957a-dc43-4dac-8919-81b9812003c6/9a66957a-dc43-4dac-8919-81b9812003c6.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;SequentialInputStream in Java&quot; border=&quot;0&quot; data-original-height=&quot;356&quot; data-original-width=&quot;640&quot; height=&quot;177&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838689/photosp/9a66957a-dc43-4dac-8919-81b9812003c6/9a66957a-dc43-4dac-8919-81b9812003c6.jpg&quot; title=&quot;SequentialInputStream in Java&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;SequentialInputStream in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;SequentialInputStream in Java:&lt;/h2&gt;&lt;div&gt;SequentialInputStream converts two or more InputStream objects into one single InputStream. The constructor of&amp;nbsp;SequentialInputStream takes two InputStream objects or an &lt;a href=&quot;https://https://www.techtravelhub.com/2018/09/all-about-interface-enumeration-in-java.html&quot; target=&quot;_blank&quot;&gt;Enumeration &lt;/a&gt;for container of InputStream objects and produces one single Stream.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As a source of data,we need to connect it to a FilterInputStream object to provide an useful interface.&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/02/sequentialinputstream-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-7572857056204807716</guid><pubDate>Tue, 22 Jan 2019 14:14:00 +0000</pubDate><atom:updated>2019-02-05T18:19:54.241+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interface</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">Shape</category><category domain="http://www.blogger.com/atom/ns#">Shape interface</category><category domain="http://www.blogger.com/atom/ns#">Shape interface in java</category><title>Interface Shape in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838834/photosp/d21ae1db-261f-4b69-91a2-e83141704c4f/d21ae1db-261f-4b69-91a2-e83141704c4f.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Interface Shape in Java&quot; border=&quot;0&quot; data-original-height=&quot;360&quot; data-original-width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838834/photosp/d21ae1db-261f-4b69-91a2-e83141704c4f/d21ae1db-261f-4b69-91a2-e83141704c4f.jpg&quot; title=&quot;Interface Shape in Java&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Interface Shape in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Interface Shape in Java:&lt;/h2&gt;&lt;div&gt;Shape interface provides a generic information about all geometrical shapes in AWT. Shape provides a bounding box-a rectangle in which the shape is enclosed.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The interface structure of Shape is given as:&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public abstract interface java.awt.Shape{&lt;br /&gt;//method&lt;br /&gt;public abstract Rectangle getBounds();&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/interface-shape-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-241827633887574</guid><pubDate>Tue, 22 Jan 2019 13:55:00 +0000</pubDate><atom:updated>2019-02-05T18:20:28.510+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">AWTEvent</category><category domain="http://www.blogger.com/atom/ns#">AWTEvent in Java</category><category domain="http://www.blogger.com/atom/ns#">Event</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>AWTEvent in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1545569953/photosp/259b5263-4247-405d-bf7c-9b6003e46731/259b5263-4247-405d-bf7c-9b6003e46731.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;AWTEvent in Java&quot; border=&quot;0&quot; data-original-height=&quot;360&quot; data-original-width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1545569953/photosp/259b5263-4247-405d-bf7c-9b6003e46731/259b5263-4247-405d-bf7c-9b6003e46731.jpg&quot; title=&quot;AWTEvent in Java&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;AWTEvent in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;AWTEvent in Java:&lt;/h2&gt;&lt;div&gt;AWTEvent is an abstract class that acts as a super class of all AWT events. As&amp;nbsp;AWTEvent deals with Events, it has a source object which can be fetched using getSource() method. It also provides a id for every event which can be fetched by getID() method.&lt;/div&gt;&lt;div&gt;Subclasses of&amp;nbsp;AWTEvent class defines various constants available in this class as a field type.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The abstract class&amp;nbsp;AWTEvent is defined as:&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public abstract class java.awt.AWTEvent extends &lt;br /&gt;                      java.util.EventObject{&lt;br /&gt;//Constructors&lt;br /&gt;public AWTEvent(Event event);&lt;br /&gt;public AWTEvent(Object source, int id);&lt;br /&gt;// Constants&lt;br /&gt;public static final long ACTION_EVENT_MASK;&lt;br /&gt;public static final long ADJUSTMENT_EVENT_MASK;&lt;br /&gt;public static final long COMPONENT_EVENT_MASK;&lt;br /&gt;public static final long CONTAINER_EVENT_MASK;&lt;br /&gt;public static final long FOCUS_EVENT_MASK;&lt;br /&gt;public static final long ITEM_EVENT_MASK;&lt;br /&gt;public static final long KEY_EVENT_MASK;&lt;br /&gt;public static final long MOUSE_EVENT_MASK;&lt;br /&gt;public static final long MOUSE_MOTION_EVENT_MASK;&lt;br /&gt;public static final int RESERVED_ID_MAX;&lt;br /&gt;public static final long TEXT_EVENT_MASK;&lt;br /&gt;public static final long WINDOW_EVENT_MASK;&lt;br /&gt;//member variables&lt;br /&gt;protected boolean consumed;&lt;br /&gt;protected int id;&lt;br /&gt;//methods&lt;br /&gt;public int getID();&lt;br /&gt;public String paramString();&lt;br /&gt;public String toString();&lt;br /&gt;protected void consume();&lt;br /&gt;protected boolean isConsumed();&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/awtevent-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-6419561735183044804</guid><pubDate>Tue, 22 Jan 2019 13:44:00 +0000</pubDate><atom:updated>2019-02-05T18:21:06.692+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Bean</category><category domain="http://www.blogger.com/atom/ns#">Bean Customizer</category><category domain="http://www.blogger.com/atom/ns#">Bean Customizer in Java</category><category domain="http://www.blogger.com/atom/ns#">Customizer</category><category domain="http://www.blogger.com/atom/ns#">Customizer in java</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>Bean Customizer in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838934/photosp/88518248-f1af-40c9-9341-978933cd545a/88518248-f1af-40c9-9341-978933cd545a.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Bean Customizer in Java&quot; border=&quot;0&quot; data-original-height=&quot;424&quot; data-original-width=&quot;640&quot; height=&quot;424&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838934/photosp/88518248-f1af-40c9-9341-978933cd545a/88518248-f1af-40c9-9341-978933cd545a.jpg&quot; title=&quot;Bean Customizer in Java&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Bean Customizer in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Bean Customizer in Java:&lt;/h2&gt;&lt;div&gt;If a class (always a subclass of java.awt.Component ) want to customize a java bean , then it must implement Customizer interface and must define all the methods of the Customizer interface.&lt;/div&gt;&lt;div&gt;The class should have no argument &lt;a href=&quot;https://www.mydigitalvoice.in/2018/09/constructor-concept-simplified-in-java.html&quot; target=&quot;_blank&quot;&gt;constructor &lt;/a&gt;so that an application builder can invoke the same.&lt;/div&gt;&lt;div&gt;It is useful when we allow an user to easily configure the bean.(Configuration is like providing simply properties like keys and values).&lt;/div&gt;&lt;div&gt;The customizer class if present inside a java Bean,we need to associate it via BeanDescriptor object which it turn returned by BenaInfo class.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The interface of the Customizer is given as below:&lt;/h3&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public abstract interface java.bean.Customizer {&lt;br /&gt;//Methods&lt;br /&gt;public abstract void addPropertyChangeListener(PropertyChangeListener listener);&lt;br /&gt;//this method is used to register PropertyChangedListener object.&lt;br /&gt;public abstract void removePropertyChangeListener(PropertyChangeListener listener);&lt;br /&gt;//this method is used to de-register PropertyChangedListener object.&lt;br /&gt;public abstract void setObject(Object bean);&lt;br /&gt;//If the Customizer class is created by none but the coder of the same bean class,&lt;br /&gt;//it needs to be instantiated and used by application builder.Once it is instantiated,&lt;br /&gt;// we need to call setObject() method to specify the bean object.&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/bean-customizer-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-2565606245129440627</guid><pubDate>Tue, 22 Jan 2019 11:09:00 +0000</pubDate><atom:updated>2019-02-05T18:21:19.377+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Bean</category><category domain="http://www.blogger.com/atom/ns#">Bean Visibility</category><category domain="http://www.blogger.com/atom/ns#">Bean Visibility in Java</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">Visibility</category><category domain="http://www.blogger.com/atom/ns#">Visibility in Java</category><category domain="http://www.blogger.com/atom/ns#">Visibility Interface</category><title>Bean Visibility in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838718/photosp/2ed1c03f-6968-451e-8eda-1db1a697cb55/2ed1c03f-6968-451e-8eda-1db1a697cb55.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Bean Visibility in Java&quot; border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;640&quot; height=&quot;480&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838718/photosp/2ed1c03f-6968-451e-8eda-1db1a697cb55/2ed1c03f-6968-451e-8eda-1db1a697cb55.jpg&quot; title=&quot;Bean Visibility in Java&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Bean Visibility in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Bean Visibility in Java:&lt;/h2&gt;&lt;div&gt;The interface Visibility needs to be implemented by an advanced bean irrespective of a GUI. This interface defines methods that allow the bean to specify if it requires a GUI and it also allows the environment to notify the bean about the availability of a GUI.&lt;/div&gt;&lt;div&gt;So there might be two cases:&lt;/div&gt;&lt;div&gt;&lt;h3&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;If a Bean need GUI:&lt;/li&gt;&lt;/ul&gt;&lt;/h3&gt;the method needsGui() returns true. If a bean is executing without a GUI,avoidingGui() should return true&lt;/div&gt;&lt;/div&gt;&lt;h3&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;If a Bean does not need GUI:&lt;/li&gt;&lt;/ul&gt;&lt;/h3&gt;&lt;/div&gt;the method needsGui() returns false. So if no GUI is available the bean is notified with dontUseGui() and if a GUI is available the bean is notified with okToUseGui() The Structure of Visibility interface is given as: &lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public abstract interface java.beans.Visibility {&lt;br /&gt;//Methods&lt;br /&gt;public abstract boolean avoidingGui();&lt;br /&gt;public abstract void dontUseGui();&lt;br /&gt;public abstract boolean needsGui();&lt;br /&gt;public abstract void okToUseGui();&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/bean-visibility-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-3953561585261528275</guid><pubDate>Tue, 22 Jan 2019 09:10:00 +0000</pubDate><atom:updated>2019-02-05T18:21:39.323+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">AdjusmentEvent</category><category domain="http://www.blogger.com/atom/ns#">AdjustmentEvent in Java</category><category domain="http://www.blogger.com/atom/ns#">Event</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>AdjustmentEvent in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838660/photosp/4248e1a1-9d9c-4398-a27c-2946e4a6557c/4248e1a1-9d9c-4398-a27c-2946e4a6557c.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;AdjustmentEvent in Java&quot; border=&quot;0&quot; data-original-height=&quot;800&quot; data-original-width=&quot;534&quot; height=&quot;640&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838660/photosp/4248e1a1-9d9c-4398-a27c-2946e4a6557c/4248e1a1-9d9c-4398-a27c-2946e4a6557c.jpg&quot; title=&quot;AdjustmentEvent in Java&quot; width=&quot;426&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;AdjustmentEvent in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;AdjustmentEvent in Java:&lt;/h2&gt;&lt;div&gt;Subclass of&amp;nbsp;AdjustmentEvent class indicates that an &lt;a href=&quot;https://www.mydigitalvoice.in/2019/01/adjustable-interface-in-java.html&quot; target=&quot;_blank&quot;&gt;adjustment &lt;/a&gt;has been made to an Adjustable object like ScrollBar.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The getID() method returns the type of an AdjustmentEvent (in general AWT components generate adjustment events of type AdjusmentEvent.ADJUSTMENT_VALUE_CHANGED).we can perform different types of adjustment to the Adjustable object that can be classified in the one of the five constants (when we call getAdjustmentType() method).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;getValue() method returns the new value of Adjustable object. getAdjustable() returns the Adjustable object which is the source of the event.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The structure of the class&amp;nbsp;AdjustmentEvent in Java is as follows:&lt;/h3&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public class java.awt.event.AdjustmentEvent extends&lt;br /&gt;             java.awt.AWTEvent {&lt;br /&gt;//Constructor&lt;br /&gt;public AdjustmentEvent(Adjustable source, int id, int type, int value);&lt;br /&gt;// Constants&lt;br /&gt;public static final int ADJUSTMENT_FIRST;&lt;br /&gt;public static final int ADJUSTMENT_LAST;&lt;br /&gt;public static final int ADJUSTMENT_VALUE_CHANGED;&lt;br /&gt;public static final int BLOCK_DECREMENT;//it indicates that the Adjustable &lt;br /&gt;//value has been decremented by multiple units.&lt;br /&gt;public static final int BLOCK_INCREMENT;//it indicates that the Adjustable &lt;br /&gt;//value has been incremented by multiple units.&lt;br /&gt;public static final int TRACK;// It indicates that that the Adjustable value&lt;br /&gt;// has been set to an absolute value.&lt;br /&gt;public static final int UNIT_DECREMENT;//it indicates that the Adjustable&lt;br /&gt;//value has been decremented by one unit.&lt;br /&gt;public static final int UNIT_INCREMENT;//it indicates that the Adjustable&lt;br /&gt;//value has been incremented by one unit.&lt;br /&gt;public Adjustable getAdjustable();&lt;br /&gt;public int getAdjustmentType();&lt;br /&gt;public int getValue();&lt;br /&gt;public String paramString(); &lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/adjustmentevent-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-4242565111345064802</guid><pubDate>Mon, 21 Jan 2019 11:45:00 +0000</pubDate><atom:updated>2019-02-18T18:00:16.702+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Exam Help on ISTQB-Basic</category><category domain="http://www.blogger.com/atom/ns#">ISTQB</category><category domain="http://www.blogger.com/atom/ns#">ISTQB Mock Questions</category><category domain="http://www.blogger.com/atom/ns#">Question Paper on ISTQB</category><title>Mock Questions on ISTQB With Certification Guide </title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-t9C-Zl8bT44/UK94qCIDyEI/AAAAAAAAHLI/F2GBkl1HTrU/s1600/istqb.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Question Papers for ISTQB&quot; border=&quot;0&quot; data-original-height=&quot;199&quot; data-original-width=&quot;253&quot; height=&quot;314&quot; src=&quot;https://1.bp.blogspot.com/-t9C-Zl8bT44/UK94qCIDyEI/AAAAAAAAHLI/F2GBkl1HTrU/s400/istqb.jpg&quot; title=&quot;Question Papers for ISTQB&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Question Papers for ISTQB&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Question Papers for ISTQB:&lt;/h2&gt;When I was preparing for ISTQB certification, I was going through the study materials provided by our guide and several other sites which was providing me the questions. Here are the set of questions that we can practice before we sit for the ISTQB certification.&lt;br /&gt;In 1998-in britain the first approach of developping multi level qualififying programme was developed.&lt;br /&gt;Indian Testing board:2005(foundation level)&lt;br /&gt;Indian Testing board:2004(advanced level)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Different Testing boards:&lt;/h3&gt;The spanish Testing board:SSTQB&lt;br /&gt;The German Testing Borard:GTB&lt;br /&gt;International Software Quality institute-iSQI&lt;br /&gt;Global association for software quality-gasq&lt;br /&gt;ISTQB News letter&lt;br /&gt;&lt;a href=&quot;http://eepurl.com/cSXQ&quot;&gt;http://eepurl.com/cSXQ&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This post will help to clear istqb foundation exam as well help you to answer the istqb questions for interview.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Few Terminologies for ISTQB Guide:&lt;/h3&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Test Scenario :&lt;/h4&gt;It can be a single test case or collection of test cases or test script.It is a particular situation that is verified by set of test cases.&lt;br /&gt;Test Condition:&lt;br /&gt;It can be a condition under which the test is performed. The pre-condition that is specified as a part of the test case is also a test condition.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Test Strategy :&lt;/h4&gt;It is the high level description of the testing activities that will be performed in the programme or the organization.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Test Plan :&lt;/h4&gt;A product venture test plan is a record that portrays the destinations, extension, approach and focal point of a product testing exertion. The way toward setting up a test plan is a helpful method to thoroughly consider the endeavors expected to approve the worthiness of a product item. The finished archive will help individuals outside the test amass comprehend the why and how of item approval. It ought to be intensive enough to be helpful, however not all that exhaustive that none outside the test gathering will most likely perused it.&lt;br /&gt;&lt;br /&gt;It is the document that describes the&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Scope&lt;/li&gt;&lt;li&gt;Approach of testing&lt;/li&gt;&lt;li&gt;Resource requirements&lt;/li&gt;&lt;li&gt;Entry criteria and Exit Criteria&lt;/li&gt;&lt;li&gt;Features that will be tested&lt;/li&gt;&lt;li&gt;Features that will not be tested&lt;/li&gt;&lt;li&gt;Cycles of testing (System, regression, adhoc..etc..)&lt;/li&gt;&lt;li&gt;Test environment.&lt;/li&gt;&lt;li&gt;Risks and the Contingency plan.&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;System Requirement Specification:&lt;/h4&gt;A structured collection of information that specifies the requirement of the system.&lt;br /&gt;This is generally done by the Business Analyst. The information that is provided is generally a high level requirement. It is generally from an end user perspective.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Functional Requirement Specification&lt;/h4&gt;This is a much detailed list of the functions that the System is supposed to perform. It will be a good to design this document by the Business owner, Developer and QA .&lt;br /&gt;It will consist of :Work Flow diagrams, Functions performed in each screen, Compliance requirement, operation of each screen.. etc.This will be usually for a particular release ( in case of iterative development) or Project.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Testing models&lt;/h4&gt;I suppose this is referring to the SDLC&#39;s. In that case, it depends on the product that is being developed.&lt;br /&gt;It can be a Iterative Development.&lt;br /&gt;It can be a W or V model.&lt;br /&gt;Now a days it is agile or extreme development.&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Error:&lt;/b&gt;&lt;/h3&gt;This is a human action that produces an incorrect result.E.g-Programming error.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Defect:&lt;/b&gt;&lt;/h3&gt;A incorrect flow in the system which does not give the actual output is called Defect.&lt;br /&gt;E.g-Incorrect Statement&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Failure:&lt;/b&gt;&lt;/h3&gt;A defect caught during execution may cause failure.Rather deviation from its original outcome.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Causes of software failure:&lt;/b&gt;&lt;/h3&gt;&lt;br /&gt;Human Error:&lt;br /&gt;It may be introduced into a code to a system.&lt;br /&gt;&lt;br /&gt;Reasons for it:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Time pressure&lt;/li&gt;&lt;li&gt;Complexity&lt;/li&gt;&lt;li&gt;Excessive demands&lt;/li&gt;&lt;li&gt;Wrong Understanding&lt;/li&gt;&lt;li&gt;Wrong Requirement&lt;/li&gt;&lt;li&gt;Distraction&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Environmental Condition&lt;br /&gt;Changes in the system Environment&lt;br /&gt;Reason for it:&lt;br /&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Magnetism&lt;/li&gt;&lt;li&gt;Radiation&lt;/li&gt;&lt;li&gt;Hard disk Crashes&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Debugging and Software Testing:&lt;/h3&gt;Debugging is done by Developers and Software Testing is done by Testers&lt;br /&gt;The objective of testing is to identify the defect. The objective of debugging is to rectify the identified defect.&lt;br /&gt;A tester identifies the defect in Software Testing phase and sends to Development team to fix it. Developer then re-runs the code, identifies the cause of the defect and fixes the same. This is debugging.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Features of Software Testing and who performs it?&lt;/h3&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Test early and test often.&lt;/li&gt;&lt;li&gt;Integrate the application development and testing life cycles. You’ll get better results and you won’t have to mediate between two armed camps in your IT shop.&lt;/li&gt;&lt;li&gt;Formalize a testing methodology; you’ll test everything the same way and you’ll get uniform results.&lt;/li&gt;&lt;li&gt;Develop a comprehensive test plan; it forms the basis for the testing methodology.&lt;/li&gt;&lt;li&gt;Use both static and dynamic testing.&lt;/li&gt;&lt;li&gt;Define your expected results.&lt;/li&gt;&lt;li&gt;Understand the business reason behind the application. You’ll write a better application and better testing scripts.&lt;/li&gt;&lt;li&gt;Use multiple levels and types of testing (regression, systems, integration, stress and load).&lt;/li&gt;&lt;li&gt;Review and inspect the work, it will lower costs.&lt;/li&gt;&lt;li&gt;Don’t let your programmers check their own work; they’ll miss their own errors.&lt;/li&gt;&lt;li&gt;Software Testing is performed by Software Testers.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Limitations of Software Testing:&lt;/h3&gt;&lt;br /&gt;Software Testing can show the presence of errors; it cannot show the absence of errors&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Suspension Criteria&lt;/h3&gt;&lt;br /&gt;If at any point during planned test execution the test entry criteria are found to be not satisfied, test execution will terminate until such time that the unsatisfactory condition is removed, at which point test execution shall resume.&lt;br /&gt;Testing may be suspended for the following reasons:&lt;br /&gt;1. Test Environment is unavailable or cannot be efficiently utilized due to performance or other issues.&lt;br /&gt;2. Bug tracking tool is unavailable or cannot be efficiently utilized due to performance or other issues.&lt;br /&gt;3. Smoke Test failure.&lt;br /&gt;4. Production test data is unavailable.&lt;br /&gt;5. Test data is invalid and causes component failure.&lt;br /&gt;6. Insufficient knowledge transfer and no clarification for queries&lt;br /&gt;7. Unscheduled outage&lt;br /&gt;This will be all those point due to which testing can not happen&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Resumption Criteria&lt;/h3&gt;&lt;br /&gt;Testing will be resumed when the cause of test suspension has been resolved and the testing team has been notified in accordance with the communication plan.&lt;br /&gt;&lt;br /&gt;This is not entry and exit criteria.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The links for ISTQB Mock Tests are as follows:&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/few-interesting-questions.html&quot; target=&quot;_blank&quot;&gt;Interesting Questions for ISTQB:&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/static-testing-tools.html&quot; target=&quot;_blank&quot;&gt;Static Analysis Tools&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-1&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-paper-2.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-2&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-3.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-3&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-4.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-4&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-5.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-5&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-6.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-6&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-7.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-7&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-8.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-8&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-9.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-9&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-10.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-10&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-11.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-11&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-12.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-12&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-13.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-13&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-14.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-14&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-15.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-15&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-16.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-16&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/07/istqb-sample-question-paper-17.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-17&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/09/istqb-sample-question-paper-18.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-18&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;https://www.techtravelhub.com/2009/09/istqb-sample-question-paper-19.html&quot; target=&quot;_blank&quot;&gt;ISTQB Question Set-19&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Types of testing:&lt;/h3&gt;&lt;div&gt;A Endurance Test is a typically a subset of Load test which talks about workload and load volumes anticipated during production operation. This is called as Soak testing as well.&lt;br /&gt;As per Wiki..&lt;br /&gt;This test is usually done to determine if the application can sustain the continuous expected load. During endurance tests, memory utilization is monitored to detect potential leaks. Also important, but often overlooked is performance degradation. That is, to ensure that the throughput and/or response times after some long period of sustained activity are as good or better than at the beginning of the test.&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Smoke Vs Sanity Testing:&lt;/h4&gt;&lt;/div&gt;&lt;div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Smoke Test:&lt;/h4&gt;&lt;div&gt;When a build is received, a smoke test is run to ascertain if the build is stable and it can be considered for further testing.Smoke testing can be done for testing the stability of any interim build.Smoke testing can be executed for platform qualification tests.&lt;br /&gt;&lt;div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Sanity testing:&lt;/h4&gt;&lt;div&gt;Once a new build is obtained with minor revisions, instead of doing a through regression, sanity is performed so as to ascertain the build has indeed rectified the issues and no further issue has been introduced by the fixes. It’s generally a subset of regression testing and a group of test cases are executed that are related with the changes made to the app.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Generally, when multiple cycles of testing are executed, sanity testing may be done during the later cycles after through regression cycles.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;row&quot;&gt;&lt;div class=&quot;col-md-12&quot;&gt;&lt;div class=&quot;panel panel-success&quot;&gt;&lt;div class=&quot;panel-heading &quot;&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Smoke Vs Sanity Testing:&lt;/h4&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; class=&quot;table table-striped table-bordered table-hover table-condensed&quot;&gt;&lt;thead&gt;&lt;tr&gt;&lt;th title=&quot;Field #1&quot;&gt;Smoke Testing&lt;/th&gt; &lt;th title=&quot;Field #2&quot;&gt;Sanity Testing&lt;/th&gt; &lt;/tr&gt;&lt;/thead&gt; &lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Smoke testing originated in the hardware testing practice of turning on a new piece of hardware for the first time and considering it a success if it does not catch fire and smoke.&lt;/td&gt; &lt;td&gt;In software industry, smoke testing is a shallow and wide approach whereby all areas of the application without getting into too deep, is tested.&lt;br /&gt;A sanity test is a narrow regression test that focuses on one or a few areas of functionality. Sanity testing is usually narrow and deep.&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;A smoke test is scripted--either using a written set of tests or an automated test.&lt;/td&gt; &lt;td&gt;A sanity test is usually unscripted.&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;A Smoke test is designed to touch every part of the application in a cursory way. It&#39;s is shallow and wide.&lt;/td&gt; &lt;td&gt;A Sanity test is used to determine a small section of the application is still working after a minor change.&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Smoke testing will be conducted to ensure whether the most crucial functions of a program work, but not bothering with finer details. (Such as build verification).&lt;/td&gt; &lt;td&gt;Sanity testing is a cursory testing; it is performed whenever a cursory testing is sufficient to prove the application is functioning according to specifications. This level of testing is a subset of regression testing.&lt;/td&gt; &lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Smoke testing is normal health check up to a build of an application before taking it to testing in depth.&lt;/td&gt; &lt;td&gt;Sanity testing is to verify whether requirements are met or not, checking all features breadth-first.&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h4&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Software Quality-ISO/IEC-9126:&lt;/h3&gt;&lt;div&gt;Functional Quality Attribute---&lt;br /&gt;The focusess are:&lt;br /&gt;1.Correctness: The functionality meets the required attributes.&lt;br /&gt;2.Completeness:The functionality meets all reqirements&lt;br /&gt;It includes--&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;1.Functionality&lt;/h4&gt;1.1. Suitability&lt;br /&gt;1.2. Accuracy&lt;br /&gt;1.3. Compliance&lt;br /&gt;1.4. Interoperability&lt;br /&gt;1.5. Security&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;2.Non -Functional Quality-Attributes&lt;/h4&gt;2.1. Reliability&lt;br /&gt;2.2. Usuability&lt;br /&gt;2.3. Efficiency&lt;br /&gt;2.4. Maintability:&lt;br /&gt;2.5. Portability&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Type of quality Assurance(QA):&lt;/h3&gt;Constructive:This process is to prevent defect.&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Objectives:&lt;/h4&gt;1.Defects need to be fixed&lt;br /&gt;2.Defects need not to be repeated&lt;br /&gt;It has two classifications:&lt;br /&gt;1. Organizational&lt;br /&gt;1.1.Guidelines&lt;br /&gt;1.2.Standards&lt;br /&gt;1.3.Checklist&lt;br /&gt;1.4.Process rules and regulation&lt;br /&gt;1.5.Legal requirements&lt;br /&gt;2.Technicals&lt;br /&gt;2.1.Methods&lt;br /&gt;2.2.Tools&lt;br /&gt;2.3.Languages&lt;br /&gt;2.4.Lists/Templates&lt;br /&gt;2.5.IDE(Integrated development environment)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Analytical:&lt;/h4&gt;This process for finding defect,leading to correcting defects and preventing failures.&lt;br /&gt;Objectives:&lt;br /&gt;1.Defects detected as early as possible.&lt;br /&gt;2.Examination without execution.&lt;br /&gt;3.defects finding executing the programme&lt;br /&gt;It has 2 classification&lt;br /&gt;1.Dynamic&lt;br /&gt;1.1. Blackbox Technique&lt;br /&gt;1.1.1. Equivalence Partitioning&lt;br /&gt;1.1.2. Boundary value analysis&lt;br /&gt;1.1.3. State Transition Testing&lt;br /&gt;1.1.4. Decision Table&lt;br /&gt;1.1.5. Use case based Testing&lt;br /&gt;1.2. Experienced Based Testing&lt;br /&gt;1.3. Whitebox based Teting&lt;br /&gt;1.3.1. Statement coverage&lt;br /&gt;1.3.2. Branch Coverage&lt;br /&gt;1.3.3. Condition Coverage&lt;br /&gt;1.3.4. Path Coverage&lt;br /&gt;2.Static&lt;br /&gt;2.1. Review/Walkthrough&lt;br /&gt;2.2. Control flow analysis&lt;br /&gt;2.3. Data Flow analysis&lt;br /&gt;2.4. Computer metric&lt;/div&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Bug Life cycle:&lt;/h3&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;br /&gt;The standard Bug life cycle which i have collected from Bugzilla....is given below &lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_6K7-YBYz6EM/So7yhqvJdcI/AAAAAAAAAJM/qhjZWRGQSpw/s1600-h/bzLifecycle.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5372498065721226690&quot; src=&quot;https://4.bp.blogspot.com/_6K7-YBYz6EM/So7yhqvJdcI/AAAAAAAAAJM/qhjZWRGQSpw/s400/bzLifecycle.png&quot; style=&quot;cursor: hand; cursor: pointer; display: block; height: 400px; margin: 0px auto 10px; text-align: center; width: 343px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Generally,what we use to follow...More simplified version of the above is ...&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_6K7-YBYz6EM/So7yhJwAwVI/AAAAAAAAAJE/ilObVtg_E48/s1600-h/bug-life-cycle.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5372498056866480466&quot; src=&quot;https://1.bp.blogspot.com/_6K7-YBYz6EM/So7yhJwAwVI/AAAAAAAAAJE/ilObVtg_E48/s400/bug-life-cycle.png&quot; style=&quot;display: block; height: 400px; margin: 0px auto 10px; text-align: center; width: 319px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Refused vs Could not Reproduce Vs Rejected bugs:&lt;/h3&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Refused:&lt;/h4&gt;I have heard about this term first time. After a lot of research i came a conclusion that few of the bug tracking tool uses that information.&lt;br /&gt;&lt;br /&gt;this can happen in two different manner&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;u&gt;Could not reproduce&lt;/u&gt;:&amp;nbsp;&lt;/h4&gt;If developer is not able to reproduce the bug by the steps given in bug report by QA then developer can mark the bug as ‘CNR’. QA needs action to check if bug is reproduced and can assign to developer with detailed reproducing steps.Generally most of the cases are environment issues.&lt;br /&gt;&lt;br /&gt;or might be developer Need more information: If developer is not clear about the bug reproduce steps provided by QA to reproduce the bug, then he/she can mark it as “Need more information’. In this case QA needs to add detailed reproducing steps and assign bug back to dev for fix.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;u&gt;Rejected:&lt;/u&gt;&lt;/h4&gt;Some times developer or team lead can mark the bug as Rejected or invalid if the system is working according to specifications and bug is just due to some misinterpretation.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;What is difference between Retesting and Regression Testing?&lt;/h3&gt;&lt;br /&gt;Well we generally get confused by this two terms Retesting and Regression Testing. Few of us think that both are same. By the term retesting they mean that we need to test the same application again and for regression again we need to test end to end.&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Retesting:&lt;/h4&gt;It is a type of testing after bug fix.Say testers raise few defects for a build.Now developers will fix those bugs and will give testers to test the application.This time testing team will evaluate the bug fixes. So they will go through all defects and check if these are really fixed or not.If the defect is fixed then tester should close this defect else it will be reopen state and assign back to the developers.&lt;br /&gt;This process is called Retesting.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Regression Testing:&lt;/h4&gt;&lt;br /&gt;Now think about this scenario, when developers are fixing any defects or modifying codes , Testers need to make sure that due this enhancement there is no harm impact happened on the application.Say changing code somewhere&amp;nbsp;impacts other location.So those test cases which are passed previously began to&amp;nbsp;fail and lead&amp;nbsp;application to a serious failure.To prevent this after modification&amp;nbsp;Testers suppose to test the entire application end to end to check the&amp;nbsp;integrity of the&amp;nbsp;application.&lt;br /&gt;This is called regression Testing.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;What is ECP(Equivalence partitioning)?&lt;/h4&gt;&lt;br /&gt;Equivalence partitioning is black-box testing method&lt;br /&gt;&lt;br /&gt;--Divide the input domain of a program into classes of data&lt;br /&gt;--Derive test cases based on these partitions&lt;br /&gt;An equivalence class represents a set of valid or invalid states for input condition.&lt;br /&gt;&lt;br /&gt;An input condition is:&lt;br /&gt;&lt;br /&gt;--A specific number value , a range of values&lt;br /&gt;--A set of related values, or a Boolean condition&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Types of Bugs:&lt;/h3&gt;&lt;div&gt;It is extremely important to understand the type &amp;amp; importance of every bug detected during the testing &amp;amp; its subsequent effect on the users of the subject software application being tested.&lt;br /&gt;&lt;br /&gt;Such information is helpful to the developers and the management in deciding the urgency or priority of fixing the bug during the product-testing phase.&lt;br /&gt;Following Severity Levels are assigned during the Testing Phase:&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Critical defects&lt;/h4&gt;Critical is the most dangerous level, which does not permit continuance of the testing effort beyond a particular point. Critical situation can arise due to popping up of some error message or crashing of the system leading to forced full closure or semi closure of the application. Criticality of the situation can be judged by the fact that any type of workaround is not feasible. A bug can fall into &quot;Critical&quot; category in case of some menu option being absent or needing special security permissions to gain access to the desired function being tested.Sometimes we call it stopper.Typically&lt;br /&gt;1. Wrong functionality&lt;br /&gt;2.&amp;nbsp; Fundamental problem comes under this.&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;High priority defects:&lt;/h4&gt;High impact bug is a level of major defect under which the product fails to behave according to the desired expectations or it can lead to malfunctioning of some other functions thereby causing failure to meet the customer requirements. Bugs under this category can be tackled through some sort of workaround. Examples of bugs of this type can be mistake in formulas for calculations or incorrect format of fields in the database causing failure in updating of records. Likewise there can be many instances.&lt;br /&gt;like..&lt;br /&gt;1.Calculation Defects&lt;br /&gt;2. Improper Service Levels (Control flow defects)&lt;br /&gt;3. Interpreting Data Defects&lt;br /&gt;4. Race Conditions (Compatibility and Intersystem defects)&lt;br /&gt;5. Load Conditions (Memory Leakages under load)&lt;br /&gt;6.Hardware Failures&lt;br /&gt;&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Medium priority defects:&lt;/h4&gt;Medium defects falling under this category of medium or average severity do not have performance effect on the application. But these defects are certainly not acceptable due to non-conformance to the standards or companies vide conventions. Medium level bugs are comparatively easier to tackle since simple workarounds are possible to achieve desired objectives for performance. Examples of bugs of this type can be mismatch between some visible link compared with its corresponding text link.&lt;br /&gt;exp:&lt;br /&gt;1.Boundary Related Defects&lt;br /&gt;2.Error Handling Defects&lt;br /&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Low-Priority defect:&lt;/h4&gt;&lt;br /&gt;Defects falling under low priority or minor defect category are the ones, which do not have effect on the functionality of the product. Low severity failures generally do not happen during normal usage of the application and have very less effect on the business. Such types of bugs are generally related to looks &amp;amp; feel of the user interface &amp;amp; are mainly cosmetic in nature.&lt;br /&gt;exp:&lt;br /&gt;1.User Interface Defects&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;What is the next step when we find a bug?&lt;/h3&gt;&lt;div&gt;When a bug is found, it needs to be communicated and assigned to developers that can fix it. After the problem is resolved, fixes should be re-tested. Additionally, determinations should be made regarding requirements, software, hardware, safety impact, etc., for regression testing to check the fixes didn&#39;t create other problems elsewhere. If a problem-tracking system is in place, it should encapsulate these determinations. A variety of commercial, problem-tracking/management software tools are available. These tools, with the detailed input of software test engineers, will give the team complete information so developers can understand the bug, get an idea of its severity, reproduce it and fix it.&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-CSw9QL4RPmg/W7ETi7KYl8I/AAAAAAAAUR4/7-5xfMmYPr8Z9L40B0dMDfiOLj-ht08xwCLcBGAs/s1600/alpha%2Bbeta.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;218&quot; data-original-width=&quot;231&quot; src=&quot;https://3.bp.blogspot.com/-CSw9QL4RPmg/W7ETi7KYl8I/AAAAAAAAUR4/7-5xfMmYPr8Z9L40B0dMDfiOLj-ht08xwCLcBGAs/s1600/alpha%2Bbeta.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Alpha Testing Vs Beta Testing&lt;/h2&gt;In today&#39;s system, the role of the customer while developing a system is very important.&amp;nbsp;Typically, software goes through two stages of testing before it is considered finished. The first stage, called alpha testing, is often performed only by users within the organization developing the software. The second stage, called beta testing, generally involves a limited number of external users.&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Alpha Testing:&lt;/h3&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;Alpha testing is simulated or actual operational testing by potential users/customers or an independent test team at the developers&#39; site. Alpha testing is often employed for off-the-shelf software as a form of internal acceptance testing, before the software goes to beta testing--wiki&lt;/span&gt;&lt;/blockquote&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Beta testing&amp;nbsp;&amp;nbsp;&lt;/h3&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;Beta testing comes after alpha testing and can be considered a form of external&amp;nbsp;&lt;a class=&quot;mw-redirect&quot; href=&quot;http://en.wikipedia.org/wiki/User_acceptance_testing&quot; style=&quot;background-image: none; color: #0b0080; text-decoration: none;&quot; title=&quot;User acceptance testing&quot;&gt;user acceptance testing&lt;/a&gt;. Versions of the software, known as&amp;nbsp;&lt;a class=&quot;mw-redirect&quot; href=&quot;http://en.wikipedia.org/wiki/Beta_version&quot; style=&quot;background-image: none; color: #0b0080; text-decoration: none;&quot; title=&quot;Beta version&quot;&gt;beta versions&lt;/a&gt;, are released to a limited audience outside of the programming team. The software is released to groups of people so that further testing can ensure the product has few faults or&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Computer_bug&quot; style=&quot;background-image: none; color: #0b0080; text-decoration: none;&quot; title=&quot;Computer bug&quot;&gt;bugs&lt;/a&gt;. Sometimes, beta versions are made available to the open public to increase the&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Feedback#In_organizations&quot; style=&quot;background-image: none; color: #0b0080; text-decoration: none;&quot; title=&quot;Feedback&quot;&gt;feedback&lt;/a&gt;&amp;nbsp;field to a maximal number of future users---wiki&lt;/blockquote&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;beta test&lt;/b&gt;&lt;/h3&gt;A test for a computer product prior to commercial release. Beta testing is the last stage of testing, and normally can involve sending the product to beta test sites outside the company for real-world exposure or offering the product for a free trial download over the Internet. Beta testing is often preceded by a round of testing called alpha testing&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Q: What does &quot;Beta&quot; mean?&lt;/h3&gt;A: Beta testing is the process of taking software which is in the process of development and giving it to a larger group of users to test. While the testing done in our laboratory is extensive, beta testing will expose many problems not found in our laboratory testing by exposing the software to a much broader range of uses and environments. We beta test software and services because no laboratory can possibly cover every use and set of conditions that will exist after the software has been released.&lt;br /&gt;The free version &lt;span style=&quot;font-size: small;&quot;&gt;software available to use from any company is Beta release.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;What is the difference between Verification and Validation?&lt;/h2&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Q:&amp;nbsp;&lt;strong&gt;What is verification?&lt;/strong&gt;&lt;/h3&gt;A: Verification ensures the product is designed to deliver all functionality to the customer; it typically involves reviews and meetings to evaluate documents, plans, code, requirements, and specifications; this can be done with checklists, issues lists, walkthroughs and inspection meetings.&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Q:&amp;nbsp;&lt;strong&gt;What is validation?&lt;/strong&gt;&lt;/h3&gt;A: Validation ensures that functionality, as defined in requirements, is the intended behavior of the product; validation typically involves actual testing and takes place after&amp;nbsp;verification&amp;nbsp;are completed.&lt;br /&gt;&lt;br /&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838653/photosp/d7c44a5e-4fc3-4d39-8a17-4d7806e45996/d7c44a5e-4fc3-4d39-8a17-4d7806e45996.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Traceability in Projects&quot; border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;640&quot; height=&quot;240&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838653/photosp/d7c44a5e-4fc3-4d39-8a17-4d7806e45996/d7c44a5e-4fc3-4d39-8a17-4d7806e45996.jpg&quot; title=&quot;Traceability in Projects&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Traceability in Projects&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;4 Different Types Of Traceability in Projects:&lt;/b&gt;&lt;/h2&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Vertical traceability:&lt;/b&gt;&amp;nbsp;&lt;/h3&gt;&lt;br /&gt;It identifies the origin of items (e.g., customer needs) and follows these same items as they travel through the hierarchy of the Work Breakdown Structure to the project teams and eventually to the customer. When the requirements are managed well, traceability can be established from the source requirement to its lower level requirements and from the lower level requirements back to their source. Such bidirectional traceability helps determine that all source requirements have been completely addressed and that all lower level requirements can be traced to a valid source. Horizontal traceability is also important and is mentioned in sub-practice 3, but it is not required to satisfy bidirectional traceability.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Horizontal traceability&lt;/b&gt;&amp;nbsp;:&lt;/h3&gt;It identifies the relationships among related items across workgroups or product components for the purpose of avoiding potential conflicts. It enables the project to anticipate potential problems (and mitigate or solve them) before integration testing. For example, horizontal traceability would follow related requirements across two work groups working on two associated components of a product. The traceability across these two work groups enables the work groups to see when and how a change in a requirement for one of the components may affect the other component. Thus, horizontal traceability enables the project to anticipate potential problems (and mitigate or solve them) before integration testing.&lt;br /&gt;In business terms:--&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Vertical traceability:&lt;/b&gt;&amp;nbsp;&lt;/h3&gt;This Traceability `from requirements through the associated life-cycle work products of architecture specifications, detailed designs, Code, unit test plans, integration test plans, system test plans, so forth and back&quot;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Horizontal traceability:&lt;/b&gt;&amp;nbsp;&lt;/h3&gt;It refers to the traceability from the requirements to the associated plans such as the project plan, quality assurance plan, configuration management plan, risk management plan, and so forth&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/mock-questions-on-istqb-with.html</link><author>noreply@blogger.com (Animesh)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-t9C-Zl8bT44/UK94qCIDyEI/AAAAAAAAHLI/F2GBkl1HTrU/s72-c/istqb.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-299462631840946643</guid><pubDate>Sun, 20 Jan 2019 13:31:00 +0000</pubDate><atom:updated>2019-02-06T15:35:27.967+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">BigDecimal</category><category domain="http://www.blogger.com/atom/ns#">BigDecimal Class in Java</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>BigDecimal Class in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838976/photosp/72915483-5136-4974-8a42-076ebb610c03/72915483-5136-4974-8a42-076ebb610c03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;BigDecimal Class in Java&quot; border=&quot;0&quot; data-original-height=&quot;798&quot; data-original-width=&quot;640&quot; height=&quot;400&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838976/photosp/72915483-5136-4974-8a42-076ebb610c03/72915483-5136-4974-8a42-076ebb610c03.jpg&quot; title=&quot;BigDecimal Class in Java&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;BigDecimal Class in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;BigDecimal Class in Java&lt;/h2&gt;BigDecimal supports arbitrary precision&amp;nbsp; floating point rational numbers.A BigDecimal object provides a great way to represent a real number that exceeds the range or precision that can be represented by double value or the rounding that is done on a double value is acceptable.We can use them for accurate calculations like monetary or financial application .&lt;br /&gt;BigDecimal representation consists of an unlimited precision integer value and an integer scale factor.The scale factor indicates a power of 10 that the integer value is implicitly divided by.&lt;br /&gt;BigDecimal objects are represented as an integer of arbitrary size and an scale that represents the number of decimal places in the given BigDecimal.&lt;br /&gt;BigDecimal is useful when we do comparisons and mathematical operations with other&amp;nbsp;BigDecimal objects.If during operation such a division needs a rounding method,the&amp;nbsp;BigDecimal defines constants to represent the different rounding method.&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;How BigDecimal is represented?&lt;/h3&gt;&lt;div&gt;If the&amp;nbsp;BigDecimal value is represented by 456.7892 then the integer value is 4567892 abd scale factor is 4.&lt;/div&gt;&lt;div&gt;Scale factor can not be negative and&amp;nbsp;BigDecimal number can not overflow.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The structure of the BigDecimal class is given as:&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public class java.math.BigDecimal extends&lt;br /&gt;             java.lang.Number {&lt;br /&gt;//Constructors&lt;br /&gt;public BigDecimal(String val) throws NumberFormatException;&lt;br /&gt;public BigDecimal(double val) throws NumberFormatException;&lt;br /&gt;public BigDecimal(BigInteger val);&lt;br /&gt;public BigDecimal(BigInteger val, int scale) throws NumberFormatException;&lt;br /&gt;// Constants&lt;br /&gt;public static final int ROUND_CEILING;&lt;br /&gt;//A rounding method towards positive infinity.The value is rounded to the least&lt;br /&gt;//integer greater than equal to its value.Example 3.5 is rounded to 4 and -3.5 &lt;br /&gt;//is rounded to -3&lt;br /&gt;public static final int ROUND_DOWN;&lt;br /&gt;//A rounding method towards zero.This is used during truncation.&lt;br /&gt;//Example 3.5 is rounded to 5 and -3.5 is rounded to -3&lt;br /&gt;public static final int ROUND_FLOOR;&lt;br /&gt;//A rounding method towards negative infinity.The value is rounded to the greater &lt;br /&gt;//integer less than equal to its value.Example 3.5 is rounded to 3 and -3.5 &lt;br /&gt;//is rounded to -4&lt;br /&gt;public static final int ROUND_HALF_DOWN;&lt;br /&gt;//A rounding method where the digit prior to a discarded fraction if the fraction&lt;br /&gt;//is greater than .5,otherwise the the digit remains same.&lt;br /&gt;//Example- 3.5 rouns to 3,3.51 rounds to 4&lt;br /&gt;// -3.5 rounds to -3 and -3.54 rounds to -4 &lt;br /&gt;public static final int ROUND_HALF_EVEN;&lt;br /&gt;public static final int ROUND_HALF_UP;&lt;br /&gt;public static final int ROUND_UNNECESSARY;&lt;br /&gt;public static final int ROUND_UP;&lt;br /&gt;//Methods&lt;br /&gt;public static BigDecimal valueOf(long val, int scale) throws NumberFormatException;&lt;br /&gt;public static BigDecimal valueOf(long val);&lt;br /&gt;public BigDecimal abs();&lt;br /&gt;public BigDecimal add(BigDecimal val);&lt;br /&gt;public int compareTo(BigDecimal val);&lt;br /&gt;public BigDecimal divide(BigDecimal val, int scale, int roundingMode) throws &lt;br /&gt;ArithmeticException, IllegalArgumentException;&lt;br /&gt;public BigDecimal divide(BigDecimal val, int roundingMode) throws &lt;br /&gt;ArithmeticException, IllegalArgumentException;&lt;br /&gt;public double doubleValue();&lt;br /&gt;public boolean equals(Object x);&lt;br /&gt;public float floatValue(); &lt;br /&gt;public int hashCode();&lt;br /&gt;public int intValue(); &lt;br /&gt;public long longValue(); &lt;br /&gt;public BigDecimal max(BigDecimal val);&lt;br /&gt;public BigDecimal min(BigDecimal val);&lt;br /&gt;public BigDecimal movePointLeft(int n);&lt;br /&gt;public BigDecimal movePointRight(int n);&lt;br /&gt;public BigDecimal multiply(BigDecimal val);&lt;br /&gt;public BigDecimal negate();&lt;br /&gt;public int scale();&lt;br /&gt;public BigDecimal setScale(int scale, int roundingMode) throws&lt;br /&gt;ArithmeticException, IllegalArgumentException;&lt;br /&gt;public BigDecimal setScale(int scale) throws ArithmeticException,&lt;br /&gt;IllegalArgumentException;&lt;br /&gt;public int signum();&lt;br /&gt;public BigDecimal subtract(BigDecimal val);&lt;br /&gt;public BigInteger toBigInteger();&lt;br /&gt;public String toString(); &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/bigdecimal-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-8562618087315200030</guid><pubDate>Sun, 20 Jan 2019 10:35:00 +0000</pubDate><atom:updated>2019-02-06T15:35:47.332+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">BigInteger</category><category domain="http://www.blogger.com/atom/ns#">BigInteger Class In Java</category><category domain="http://www.blogger.com/atom/ns#">Class BigInteger</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>BigInteger Class In Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838663/photosp/e7f59194-7a9b-4897-9dd6-8fb2c5dca8bc/e7f59194-7a9b-4897-9dd6-8fb2c5dca8bc.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;BigInteger Class In Java&quot; border=&quot;0&quot; data-original-height=&quot;640&quot; data-original-width=&quot;640&quot; height=&quot;400&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838663/photosp/e7f59194-7a9b-4897-9dd6-8fb2c5dca8bc/e7f59194-7a9b-4897-9dd6-8fb2c5dca8bc.jpg&quot; title=&quot;BigInteger Class In Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;BigInteger Class In Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;BigInteger Class In Java:&lt;/h2&gt;&lt;div&gt;BigInteger supports arbitrary precision integers.This means that we can accurately represent integral values of any size without loosing any information during operation. BigInteger is not limited to 64 bits (like long) . This class defines some methods that does the same thing as normal arithmetic operator or bit manipulation operators does.&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The structure of the BigInteger class defined as:&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;&lt;br /&gt;public class java.math.BigInteger extends&lt;br /&gt;             java.lang.Number {&lt;br /&gt;//Constructors&lt;br /&gt;public BigInteger(byte[] val) throws NumberFormatException;&lt;br /&gt;public BigInteger(int signum, byte[] magnitude) throws NumberFormatException;&lt;br /&gt;public BigInteger(String val, int radix) throws NumberFormatException;&lt;br /&gt;public BigInteger(String val) throws NumberFormatException;&lt;br /&gt;public BigInteger(int numBits, Random rndSrc) throws IllegalArgumentException;&lt;br /&gt;public BigInteger(int bitLength, int certainty, Random rnd);&lt;br /&gt;//Methods&lt;br /&gt;public static BigInteger valueOf(long val);&lt;br /&gt;public BigInteger abs();&lt;br /&gt;public BigInteger add(BigInteger val) throws ArithmeticException;&lt;br /&gt;public BigInteger and(BigInteger val);&lt;br /&gt;public BigInteger andNot(BigInteger val);&lt;br /&gt;public int bitCount();&lt;br /&gt;public int bitLength();&lt;br /&gt;public BigInteger clearBit(int n) throws ArithmeticException;&lt;br /&gt;public int compareTo(BigInteger val);&lt;br /&gt;public BigInteger divide(BigInteger val) throws ArithmeticException;&lt;br /&gt;public BigInteger[] divideAndRemainder(BigInteger val) throws ArithmeticException;&lt;br /&gt;public double doubleValue();&lt;br /&gt;public boolean equals(Object x);&lt;br /&gt;public BigInteger flipBit(int n) throws ArithmeticException;&lt;br /&gt;public float floatValue(); &lt;br /&gt;public BigInteger gcd(BigInteger val);&lt;br /&gt;public int getLowestSetBit();&lt;br /&gt;public int hashCode(); &lt;br /&gt;public int intValue();&lt;br /&gt;public boolean isProbablePrime(int certainty);&lt;br /&gt;public long longValue();&lt;br /&gt;public BigInteger max(BigInteger val);&lt;br /&gt;public BigInteger min(BigInteger val);&lt;br /&gt;public BigInteger mod(BigInteger m);&lt;br /&gt;public BigInteger modInverse(BigInteger m) throws ArithmeticException;&lt;br /&gt;public BigInteger modPow(BigInteger exponent, BigInteger m);&lt;br /&gt;public BigInteger multiply(BigInteger val);&lt;br /&gt;public BigInteger negate();&lt;br /&gt;public BigInteger not();&lt;br /&gt;public BigInteger or(BigInteger val);&lt;br /&gt;public BigInteger pow(int exponent) throws ArithmeticException;&lt;br /&gt;public BigInteger remainder(BigInteger val) throws ArithmeticException;&lt;br /&gt;public BigInteger setBit(int n) throws ArithmeticException;&lt;br /&gt;public BigInteger shiftLeft(int n);&lt;br /&gt;public BigInteger shiftRight(int n);&lt;br /&gt;public int signum();&lt;br /&gt;public BigInteger subtract(BigInteger val);&lt;br /&gt;public boolean testBit(int n) throws ArithmeticException;&lt;br /&gt;public byte[] toByteArray();&lt;br /&gt;public String toString(int radix);&lt;br /&gt;public String toString();&lt;br /&gt;public BigInteger xor(BigInteger val);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/biginteger-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-2007485286131458098</guid><pubDate>Wed, 16 Jan 2019 16:43:00 +0000</pubDate><atom:updated>2019-02-06T15:36:19.581+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interface</category><category domain="http://www.blogger.com/atom/ns#">ItemSelectable</category><category domain="http://www.blogger.com/atom/ns#">ItemSelectable interface</category><category domain="http://www.blogger.com/atom/ns#">ItemSelectable interface in Java</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>ItemSelectable interface in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838653/photosp/c1322352-313b-43d9-b7f1-61da3a8a4a4e/c1322352-313b-43d9-b7f1-61da3a8a4a4e.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;ItemSelectable interface in Java&quot; border=&quot;0&quot; data-original-height=&quot;626&quot; data-original-width=&quot;640&quot; height=&quot;391&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838653/photosp/c1322352-313b-43d9-b7f1-61da3a8a4a4e/c1322352-313b-43d9-b7f1-61da3a8a4a4e.jpg&quot; title=&quot;ItemSelectable interface in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;ItemSelectable interface in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;ItemSelectable interface in Java:&lt;/h2&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ItemSelectable is an abstract interface that represents one or more items to the user and allow users to select zero or more from them.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The structure of&amp;nbsp;ItemSelectable interface is given as:&lt;/h3&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public abstract interface java.awt.ItemSelectable {&lt;br /&gt;//Methods&lt;br /&gt;public abstract void addItemListener(ItemListener itl);&lt;br /&gt;//adds ItemListener objects to be notified when an item is selected.&lt;br /&gt;public abstract Object[] getSelectedObjects();&lt;br /&gt;//Returns an array of selected objects or null.&lt;br /&gt;public abstract void removeItemListener(ItemListener itl);&lt;br /&gt;//removes ItemListener objects to be notified when an item is selected.&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/itemselectable-interface-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-95671170574903079</guid><pubDate>Wed, 16 Jan 2019 11:14:00 +0000</pubDate><atom:updated>2019-02-06T15:36:24.474+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Adjustable interface</category><category domain="http://www.blogger.com/atom/ns#">Adjustable interface in Java</category><category domain="http://www.blogger.com/atom/ns#">Interface</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>Adjustable interface in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838954/photosp/1002d57a-2a0e-4d9d-9d8c-9a73014d6b41/1002d57a-2a0e-4d9d-9d8c-9a73014d6b41.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Adjustable interface in Java&quot; border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;640&quot; height=&quot;300&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838954/photosp/1002d57a-2a0e-4d9d-9d8c-9a73014d6b41/1002d57a-2a0e-4d9d-9d8c-9a73014d6b41.jpg&quot; title=&quot;Adjustable interface in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Adjustable interface in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Adjustable interface in Java:&lt;/h2&gt;&lt;div&gt;Adjustable interface are applicable to the application which maintain an user adjustable numeric value by implementing several methods defined here.&lt;/div&gt;&lt;div&gt;The user specific value should have a maximum&amp;nbsp; and a minimum value. These value can be incremented at a time or a block at a time. A simple example of&amp;nbsp;Adjustable interface is the ScrollBar of an application.&lt;/div&gt;&lt;div&gt;An&amp;nbsp;Adjustable object generates an&amp;nbsp;AdjustmentEvent that is adjusted and it maintains a list of adjustmentListener objects which may be notified when such an event occurs. Like Scollbar up and down and displays the values.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The interface&amp;nbsp;Adjustable is defined as:&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public abstract interface java.awt.Adjustable {&lt;br /&gt;// Constants&lt;br /&gt;public static final int HORIZONTAL;&lt;br /&gt;public static final int VERTICAL;&lt;br /&gt;//Methods&lt;br /&gt;public abstract void addAdjustmentListener(AdjustmentListener l);&lt;br /&gt;public abstract int getBlockIncrement();&lt;br /&gt;public abstract int getMaximum();&lt;br /&gt;public abstract int getMinimum();&lt;br /&gt;public abstract int getOrientation();&lt;br /&gt;public abstract int getUnitIncrement();&lt;br /&gt;public abstract int getValue();&lt;br /&gt;public abstract int getVisibleAmount();&lt;br /&gt;public abstract void removeAdjustmentListener(AdjustmentListener l);&lt;br /&gt;public abstract void setBlockIncrement(int b);&lt;br /&gt;public abstract void setMaximum(int max);&lt;br /&gt;public abstract void setMinimum(int min);&lt;br /&gt;public abstract void setUnitIncrement(int u);&lt;br /&gt;public abstract void setValue(int v);&lt;br /&gt;public abstract void setVisibleAmount(int v);&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/adjustable-interface-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-341416150310816568</guid><pubDate>Wed, 16 Jan 2019 11:00:00 +0000</pubDate><atom:updated>2019-02-06T15:36:31.006+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Decimal</category><category domain="http://www.blogger.com/atom/ns#">DecimalFormat</category><category domain="http://www.blogger.com/atom/ns#">DecimalFormat in Java</category><category domain="http://www.blogger.com/atom/ns#">Format</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">NumberFormat</category><title>DecimalFormat in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838682/photosp/d869a259-27ef-458b-af2f-88ef598aa936/d869a259-27ef-458b-af2f-88ef598aa936.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;DecimalFormat in Java&quot; border=&quot;0&quot; data-original-height=&quot;640&quot; data-original-width=&quot;640&quot; height=&quot;400&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838682/photosp/d869a259-27ef-458b-af2f-88ef598aa936/d869a259-27ef-458b-af2f-88ef598aa936.jpg&quot; title=&quot;DecimalFormat in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;DecimalFormat in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;DecimalFormat in Java:&lt;/h2&gt;&lt;div&gt;DecimalFormat class is subclass of Format class mostly used by NumberFormat class.&lt;/div&gt;&lt;div&gt;DecimalFormat works for all locales. It uses the base 10.&lt;/div&gt;&lt;div&gt;Most of the applications can use the static methods of NumberFormat to get the object for a desired locale and can perform minor locale independent customization on that object.&lt;/div&gt;&lt;div&gt;DecimalFormat uses pattern to format and parse the customized number.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The pattern of&amp;nbsp;DecimalFormat may be as follows:&lt;/h3&gt;&lt;div&gt;&lt;style type=&quot;text/css&quot;&gt;.tg  {border-collapse:collapse;border-spacing:0;border-color:#aaa;} .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#aaa;color:#333;background-color:#fff;} .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#aaa;color:#fff;background-color:#f38630;} .tg .tg-baqh{text-align:center;vertical-align:top} .tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top} .tg .tg-0pky{border-color:inherit;text-align:left;vertical-align:top} .tg .tg-0lax{text-align:left;vertical-align:top} &lt;/style&gt;&lt;br /&gt;&lt;table class=&quot;tg&quot;&gt;&lt;tbody&gt;&lt;tr&gt;     &lt;th class=&quot;tg-0pky&quot;&gt;Character&lt;/th&gt;     &lt;th class=&quot;tg-0pky&quot;&gt;Meaning&lt;/th&gt;   &lt;/tr&gt;&lt;tr&gt;     &lt;td class=&quot;tg-c3ow&quot;&gt;#&lt;/td&gt;     &lt;td class=&quot;tg-0pky&quot;&gt;A digit,zeros shows as absent&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;     &lt;td class=&quot;tg-c3ow&quot;&gt;0&lt;/td&gt;     &lt;td class=&quot;tg-0pky&quot;&gt;A digit ,zeros shows as 0&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;     &lt;td class=&quot;tg-baqh&quot;&gt;.&lt;/td&gt;     &lt;td class=&quot;tg-0lax&quot;&gt;Locale specific decimal separator&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;     &lt;td class=&quot;tg-baqh&quot;&gt;,&lt;/td&gt;     &lt;td class=&quot;tg-0lax&quot;&gt;Locale specific grouping separator&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;     &lt;td class=&quot;tg-baqh&quot;&gt;-&lt;/td&gt;     &lt;td class=&quot;tg-0lax&quot;&gt;Locale specific negative prefix&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;     &lt;td class=&quot;tg-baqh&quot;&gt;%&lt;/td&gt;     &lt;td class=&quot;tg-0lax&quot;&gt;Show value in percentage&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;     &lt;td class=&quot;tg-baqh&quot;&gt;;&lt;/td&gt;     &lt;td class=&quot;tg-0lax&quot;&gt;Separates positive number format from optional &lt;br /&gt;negative number format&lt;br /&gt;positive numbers are on left&lt;br /&gt;negative numbers on right&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;     &lt;td class=&quot;tg-baqh&quot;&gt;&#39;&lt;/td&gt;     &lt;td class=&quot;tg-0lax&quot;&gt;Reserved character shown in the output&lt;/td&gt;   &lt;/tr&gt;&lt;tr&gt;     &lt;td class=&quot;tg-baqh&quot;&gt;other&lt;/td&gt;     &lt;td class=&quot;tg-0lax&quot;&gt;shown in the output&lt;/td&gt;   &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;We can provide pattern like-&quot;$#,###0.00&quot; etc.If we do not specify the format or pattern, the default local specific format is used&lt;/div&gt;&lt;div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The class structure&amp;nbsp;DecimalFormat is given as:&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public class java.text.DecimalFormat extends &lt;br /&gt;             java.text.NumberFormat {&lt;br /&gt;//Constructors&lt;br /&gt;public DecimalFormat();&lt;br /&gt;public DecimalFormat(String pattern);&lt;br /&gt;public DecimalFormat(String pattern, DecimalFormatSymbols symbols);&lt;br /&gt;//Methods&lt;br /&gt;public void applyLocalizedPattern(String pattern);&lt;br /&gt;public void applyPattern(String pattern);&lt;br /&gt;public Object clone(); &lt;br /&gt;public boolean equals(Object obj); &lt;br /&gt;public StringBuffer format(double number, StringBuffer result,FieldPosition fieldPosition); &lt;br /&gt;public StringBuffer format(long number, StringBuffer result,FieldPosition fieldPosition); &lt;br /&gt;public DecimalFormatSymbols getDecimalFormatSymbols();&lt;br /&gt;public int getGroupingSize();&lt;br /&gt;public int getMultiplier();&lt;br /&gt;public String getNegativePrefix();&lt;br /&gt;public String getNegativeSuffix();&lt;br /&gt;public String getPositivePrefix();&lt;br /&gt;public String getPositiveSuffix();&lt;br /&gt;public int hashCode(); &lt;br /&gt;public boolean isDecimalSeparatorAlwaysShown();&lt;br /&gt;public Number parse(String text, ParsePosition status); &lt;br /&gt;public void setDecimalFormatSymbols(DecimalFormatSymbols newSymbols);&lt;br /&gt;public void setDecimalSeparatorAlwaysShown(boolean newValue);&lt;br /&gt;public void setGroupingSize(int newValue);&lt;br /&gt;public void setMultiplier(int newValue);&lt;br /&gt;public void setNegativePrefix(String newValue);&lt;br /&gt;public void setNegativeSuffix(String newValue);&lt;br /&gt;public void setPositivePrefix(String newValue);&lt;br /&gt;public void setPositiveSuffix(String newValue);&lt;br /&gt;public String toLocalizedPattern();&lt;br /&gt;public String toPattern();&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/decimalformat-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-4862585108600698629</guid><pubDate>Wed, 16 Jan 2019 10:42:00 +0000</pubDate><atom:updated>2019-02-06T15:36:36.451+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">AreaAveragingScaleFilter</category><category domain="http://www.blogger.com/atom/ns#">AreaAveragingScaleFilter in Java</category><category domain="http://www.blogger.com/atom/ns#">Image</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>AreaAveragingScaleFilter in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838709/photosp/5c337457-e9b3-42f2-a53a-0324697cf300/5c337457-e9b3-42f2-a53a-0324697cf300.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;AreaAveragingScaleFilter in Java&quot; border=&quot;0&quot; data-original-height=&quot;512&quot; data-original-width=&quot;640&quot; height=&quot;320&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838709/photosp/5c337457-e9b3-42f2-a53a-0324697cf300/5c337457-e9b3-42f2-a53a-0324697cf300.jpg&quot; title=&quot;AreaAveragingScaleFilter in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;AreaAveragingScaleFilter in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;AreaAveragingScaleFilter in Java:&lt;/h2&gt;&lt;div&gt;AreaAveragingScaleFilter helps in scaling of an image to a specified pixels size. AreaAveragingScaleFilter also helps to communicate between image filter and the FilteredImageSource. To use this filter effectively, we can call Image.getScaledInstance() method with a hint constant.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;AreaAveragingScaleFilter uses a scaling algorithm that averages the adjacent pixel values when shrinking or expanding an image. This algorithm produced a smooth scaled version of the image. However there is a super class of&amp;nbsp;AreaAveragingScaleFilter called ReplicateScaleFilter uses a faster,no so smooth scaling algorithm.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The class Structure of&amp;nbsp;AreaAveragingScaleFilter in Java is given as:&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public class java.awt.image.AreaAveragingScaleFilter extends &lt;br /&gt;             java.awt.image.ReplicateScaleFilter{&lt;br /&gt;//Constructor&lt;br /&gt;public AreaAveragingScaleFilter(int width, int height);&lt;br /&gt;//Methods&lt;br /&gt;public void setHints(int hints);&lt;br /&gt;public void setPixels(int x, int y, int w, int h, ColorModel model,&lt;br /&gt;byte[] pixels, int off, int scansize);&lt;br /&gt;public void setPixels(int x, int y, int w, int h, ColorModel model, int[]&lt;br /&gt;pixels, int off, int scansize);&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/areaaveragingscalefilter-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-1453212155114292262</guid><pubDate>Wed, 16 Jan 2019 10:02:00 +0000</pubDate><atom:updated>2019-02-06T15:36:42.016+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Date</category><category domain="http://www.blogger.com/atom/ns#">SimpleDateFormat</category><category domain="http://www.blogger.com/atom/ns#">SimpleDateFormat class</category><category domain="http://www.blogger.com/atom/ns#">SimpleDateFormat in Java</category><title>SimpleDateFormat in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838785/photosp/d0871a03-4f07-41a3-8401-3d4001476f56/d0871a03-4f07-41a3-8401-3d4001476f56.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;SimpleDateFormat in Java&quot; border=&quot;0&quot; data-original-height=&quot;640&quot; data-original-width=&quot;640&quot; height=&quot;400&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838785/photosp/d0871a03-4f07-41a3-8401-3d4001476f56/d0871a03-4f07-41a3-8401-3d4001476f56.jpg&quot; title=&quot;SimpleDateFormat in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;SimpleDateFormat in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;SimpleDateFormat in Java:&lt;/h2&gt;&lt;div&gt;SimpleDateFormat is sub class of Format class to handle parsing and formatting of dates. We can not use the SimpleDateFormat class directly as the Date may be affected by locale. It is used mostly by DateFormat class by getting the locale info.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SimpleDateFormat class is helpful to format a specified date and time as per specified patterns for a default locale or predefined locale.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The applyPattern() method of the&amp;nbsp;SimpleDateFormat clas is responsible for formatting the pattern used by an object.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The pattern table is given as:&lt;/h3&gt;&lt;style type=&quot;text/css&quot;&gt;.tg  {border-collapse:collapse;border-spacing:0;border-color:#aaa;} .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#aaa;color:#333;background-color:#fff;} .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#aaa;color:#fff;background-color:#f38630;} .tg .tg-0pky{border-color:inherit;text-align:left;vertical-align:top} .tg .tg-0lax{text-align:left;vertical-align:top} &lt;/style&gt;&lt;br /&gt;&lt;table class=&quot;tg&quot;&gt;  &lt;tbody&gt;&lt;tr&gt;    &lt;th class=&quot;tg-0pky&quot;&gt;On Filed&lt;/th&gt;    &lt;th class=&quot;tg-0pky&quot;&gt;Full Pattern&lt;/th&gt;    &lt;th class=&quot;tg-0pky&quot;&gt;Short Pattern&lt;/th&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;Year&lt;/td&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;yyyy (4 digits)&lt;/td&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;yy (2 digits)&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;Month&lt;/td&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;MMM (Name)&lt;/td&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;MM (2 digits)&lt;br /&gt;M&amp;nbsp;&amp;nbsp;&amp;nbsp;(1/2 digits)&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;Day of Week&lt;/td&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;EEEE&lt;/td&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;EE&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;Day of the Month&lt;/td&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;dd (2 digits)&lt;/td&gt;    &lt;td class=&quot;tg-0pky&quot;&gt;d (1/2 digits)&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Day of week in month&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;F&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Day in year&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;DDD (3 digits)&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;D (1/2/3 digits)&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Week in year&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;ww&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Era&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;G&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Timezone&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;zzzz&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;zz&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;AM/PM&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;a&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Hours [ 0-12]&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;hh (2 digits)&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;h  (1/2 digits)&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Hours [ 0-23]&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;HH (2 digits)&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;H  (1/2 digits)&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Hours [0-11]&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;KK&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;K&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Hours [1-24]&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;kk&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;k&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Minutes&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;mm&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Second&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;ss&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;Miliseconds&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;SSS&lt;/td&gt;    &lt;td class=&quot;tg-0lax&quot;&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The Structure of&amp;nbsp;SimpleDateFormat in Java is given as:&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public class java.text.SimpleDateFormat extends &lt;br /&gt;             java.text.DateFormat {&lt;br /&gt;//Constructors&lt;br /&gt;public SimpleDateFormat();&lt;br /&gt;public SimpleDateFormat(String pattern);&lt;br /&gt;public SimpleDateFormat(String pattern, Locale loc);&lt;br /&gt;public SimpleDateFormat(String pattern, DateFormatSymbols formatData);&lt;br /&gt;//Methods&lt;br /&gt;public void applyLocalizedPattern(String pattern);&lt;br /&gt;public void applyPattern(String pattern);&lt;br /&gt;public Object clone(); &lt;br /&gt;public boolean equals(Object obj); &lt;br /&gt;public StringBuffer format(Date date, StringBuffer toAppendTo,&lt;br /&gt;FieldPosition pos);&lt;br /&gt;public DateFormatSymbols getDateFormatSymbols();&lt;br /&gt;public int hashCode(); &lt;br /&gt;public Date parse(String text, ParsePosition pos);&lt;br /&gt;public void setDateFormatSymbols(DateFormatSymbols newFormatSymbols);&lt;br /&gt;public String toLocalizedPattern();&lt;br /&gt;public String toPattern();&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/simpledateformat-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-6844622590738807468</guid><pubDate>Wed, 16 Jan 2019 09:20:00 +0000</pubDate><atom:updated>2019-02-06T20:02:40.417+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Array</category><category domain="http://www.blogger.com/atom/ns#">Array class</category><category domain="http://www.blogger.com/atom/ns#">Array Class in Java</category><category domain="http://www.blogger.com/atom/ns#">Arrays in Java</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>Array Class in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838676/photosp/8a411e0d-67bd-477e-bb40-ad7a12080c41/8a411e0d-67bd-477e-bb40-ad7a12080c41.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Array Class in Java&quot; border=&quot;0&quot; data-original-height=&quot;413&quot; data-original-width=&quot;640&quot; height=&quot;257&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838676/photosp/8a411e0d-67bd-477e-bb40-ad7a12080c41/8a411e0d-67bd-477e-bb40-ad7a12080c41.jpg&quot; title=&quot;Array Class in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Array Class in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Array Class in Java:&lt;/h2&gt;&lt;div&gt;In &lt;a href=&quot;https://www.techtravelhub.com/2013/07/array-concept-simplified-in-java.html&quot; target=&quot;_blank&quot;&gt;this &lt;/a&gt;post I have talked about Array concepts and how to use it.In this post we are going to check the structure of class Array. Array class contains set of methods that set a value or query from the set of homogeneous objects.. This class also provide us method&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;To determine the size of Array&amp;nbsp;&lt;/li&gt;&lt;li&gt;How to create a new instance of an Array.&lt;/li&gt;&lt;li&gt;How to manipulate an Array.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;The methods of Array class class are static that applies to all array values.&lt;/div&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The class structure of Array is given as:&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public final class java.lang.reflect.Array extends&lt;br /&gt;                   java.lang.Object {&lt;br /&gt;//Methods&lt;br /&gt;public static native Object get(Object array, int index) &lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native boolean getBoolean(Object array, int index) &lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native byte getByte(Object array, int index) &lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native char getChar(Object array, int index) &lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native double getDouble(Object array, int index) &lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native float getFloat(Object array, int index) &lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native int getInt(Object array, int index) &lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native int getLength(Object array) &lt;br /&gt;throws IllegalArgumentException;&lt;br /&gt;public static native long getLong(Object array, int index) &lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native short getShort(Object array, int index) &lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static Object newInstance(Class componentType, int length) &lt;br /&gt;throws NegativeArraySizeException;&lt;br /&gt;public static Object newInstance(Class componentType, int[] dimensions) &lt;br /&gt;throws IllegalArgumentException, NegativeArraySizeException;&lt;br /&gt;public static native void set(Object array, int index, Object value)&lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native void setBoolean(Object array, int index, boolean z)&lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native void setByte(Object array, int index, byte b)&lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native void setChar(Object array, int index, char c) &lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native void setDouble(Object array, int index, double d)&lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native void setFloat(Object array, int index, float f)&lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native void setInt(Object array, int index, int i) &lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native void setLong(Object array, int index, long l)&lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;public static native void setShort(Object array, int index, short s)&lt;br /&gt;throws IllegalArgumentException, ArrayIndexOutOfBoundsException;&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;The get() method returns the element at the specified index as an Object. If the array elements are &lt;a href=&quot;https://www.techtravelhub.com/2018/12/datatypes-concept-simplified-in-java.html&quot; target=&quot;_blank&quot;&gt;primitive &lt;/a&gt;data type,the value is converted to equivalent &lt;a href=&quot;https://www.techtravelhub.com//2018/12/wrapper-class-concept-simplified-in-java.html&quot;&gt;Wrapper &lt;/a&gt;class and returned.&lt;br /&gt;we can use&lt;br /&gt;&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;getInteger()&lt;/li&gt;&lt;li&gt;getBytes()&lt;/li&gt;&lt;li&gt;getChar()&lt;/li&gt;&lt;li&gt;getDouble()&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;methods to query an Array to get primitive types.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/array-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-9221770667791126726</guid><pubDate>Wed, 16 Jan 2019 08:35:00 +0000</pubDate><atom:updated>2019-02-06T20:03:41.892+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Container</category><category domain="http://www.blogger.com/atom/ns#">Container class</category><category domain="http://www.blogger.com/atom/ns#">Container Class In Java</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>Container Class In Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838872/photosp/1ed396e5-ca4a-413a-a1ac-4758d516c4ea/1ed396e5-ca4a-413a-a1ac-4758d516c4ea.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Container Class In Java&quot; border=&quot;0&quot; data-original-height=&quot;427&quot; data-original-width=&quot;640&quot; height=&quot;266&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838872/photosp/1ed396e5-ca4a-413a-a1ac-4758d516c4ea/1ed396e5-ca4a-413a-a1ac-4758d516c4ea.jpg&quot; title=&quot;Container Class In Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Container Class In Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Container Class In Java:&lt;/h2&gt;&lt;div&gt;Container class can hold other components in Java application. It implements the Component class to hold or contain these other components.We need to use its sub classes like Panel,&lt;a href=&quot;https://www.techtravelhub.com/2018/10/all-about-class-frame-in-awt-in-java.html&quot; target=&quot;_blank&quot;&gt;Frame&lt;/a&gt;,Dialog etc to hold components. We can not directly instantiate Container class.The Container , once created,can hold objects and position them using &lt;a href=&quot;https://www.techtravelhub.com/2018/10/all-about-interface-layoutmanager-in.html&quot; target=&quot;_blank&quot;&gt;LayoutManager&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The structure of Container Class is given as:&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public abstract class java.awt.Container extends&lt;br /&gt;                      java.awt.Component {&lt;br /&gt;// Constructor&lt;br /&gt;protected Container();&lt;br /&gt;// Methods&lt;br /&gt;public Component add(Component comp);&lt;br /&gt;public Component add(String name, Component comp);&lt;br /&gt;public Component add(Component comp, int index);&lt;br /&gt;public void add(Component comp, Object constraints);&lt;br /&gt;public void add(Component comp, Object constraints, int index);&lt;br /&gt;public void addContainerListener(ContainerListener l);&lt;br /&gt;public void addNotify(); &lt;br /&gt;public int countComponents();&lt;br /&gt;public void deliverEvent(Event e); &lt;br /&gt;public void doLayout(); &lt;br /&gt;public float getAlignmentX(); &lt;br /&gt;public float getAlignmentY(); &lt;br /&gt;public Component getComponent(int n);&lt;br /&gt;public Component getComponentAt(int x, int y); &lt;br /&gt;public Component getComponentAt(Point p); &lt;br /&gt;public int getComponentCount();&lt;br /&gt;public Component[] getComponents();&lt;br /&gt;public Insets getInsets();&lt;br /&gt;public LayoutManager getLayout();&lt;br /&gt;public Dimension getMaximumSize(); &lt;br /&gt;public Dimension getMinimumSize(); &lt;br /&gt;public Dimension getPreferredSize(); &lt;br /&gt;public Insets insets();&lt;br /&gt;public void invalidate(); &lt;br /&gt;public boolean isAncestorOf(Component c);&lt;br /&gt;public void layout(); &lt;br /&gt;public void list(PrintStream out, int indent); &lt;br /&gt;public void list(PrintWriter out, int indent); &lt;br /&gt;public Component locate(int x, int y); &lt;br /&gt;public Dimension minimumSize(); &lt;br /&gt;public void paint(Graphics g); &lt;br /&gt;public void paintComponents(Graphics g);&lt;br /&gt;public Dimension preferredSize(); &lt;br /&gt;public void print(Graphics g); &lt;br /&gt;public void printComponents(Graphics g);&lt;br /&gt;public void remove(int index);&lt;br /&gt;public void remove(Component comp);&lt;br /&gt;public void removeAll();&lt;br /&gt;public void removeContainerListener(ContainerListener l);&lt;br /&gt;public void removeNotify(); &lt;br /&gt;public void setLayout(LayoutManager mgr);&lt;br /&gt;public void validate(); &lt;br /&gt;protected void addImpl(Component comp, Object constraints, int index);&lt;br /&gt;protected String paramString(); &lt;br /&gt;protected void processContainerEvent(ContainerEvent e);&lt;br /&gt;protected void processEvent(AWTEvent e); &lt;br /&gt;protected void validateTree();&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/container-class-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-1308324737938483999</guid><pubDate>Wed, 16 Jan 2019 08:21:00 +0000</pubDate><atom:updated>2019-02-06T15:37:16.118+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Calendar</category><category domain="http://www.blogger.com/atom/ns#">Calendar class</category><category domain="http://www.blogger.com/atom/ns#">Calendar class in java</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>Calendar Class in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838985/photosp/78104d37-d8b7-4f0a-a357-aeaacaa9b746/78104d37-d8b7-4f0a-a357-aeaacaa9b746.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Calendar in Java&quot; border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;640&quot; height=&quot;300&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838985/photosp/78104d37-d8b7-4f0a-a357-aeaacaa9b746/78104d37-d8b7-4f0a-a357-aeaacaa9b746.jpg&quot; title=&quot;Calendar in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Calendar in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;Calendar Class in Java:&lt;/h2&gt;&lt;div&gt;Calendar class is an abstract class which provides several methods to perform date and time arithmetic. Calendar class also helps to convert dates and time to and from the millisecond format used by other Date class. The format can be minutes,hours,days,weeks, year. All these format can be either consumable by human or machine.&lt;br /&gt;We can not directly instantiate Calendar class, it provides getInstance() method to get the default locale or default time zone or a specific locale or a specific timezone.&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The Structure of the Calendar class is given as:&lt;/h3&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public abstract class Calendar extends Object implements Serializable, Cloneable {&lt;br /&gt;//Constructors&lt;br /&gt;protected Calendar();&lt;br /&gt;protected Calendar(TimeZone zone, Locale aLocale);&lt;br /&gt;// Constants&lt;br /&gt;public static final int FIELD_COUNT;&lt;br /&gt;// Member elements -Date anf Time Field constants&lt;br /&gt;public static final int ERA;&lt;br /&gt;public static final int YEAR;&lt;br /&gt;public static final int MONTH;&lt;br /&gt;public static final int WEEK_OF_YEAR, WEEK_OF_MONTH;&lt;br /&gt;public static final int DATE, DAY_OF_MONTH;&lt;br /&gt;public static final int DAY_OF_YEAR, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH;&lt;br /&gt;public static final int ZONE_OFFSET, DST_OFFSET;&lt;br /&gt;public static final int AM_PM;&lt;br /&gt;public static final int HOUR, HOUR_OF_DAY;&lt;br /&gt;public static final int MINUTE;&lt;br /&gt;public static final int SECOND;&lt;br /&gt;public static final int MILLISECOND;&lt;br /&gt;public static final int JANUARY, FEBRUARY, MARCH, APRIL;&lt;br /&gt;public static final int MAY, JUNE, JULY, AUGUST;&lt;br /&gt;public static final int SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER;&lt;br /&gt;public static final int UNDECIMBER;&lt;br /&gt;public static final int SUNDAY, MONDAY, TUESDAY, WEDNESDAY;&lt;br /&gt;public static final int THURSDAY, FRIDAY, SATURDAY;&lt;br /&gt;public static final int AM, PM;&lt;br /&gt;protected boolean areFieldsSet;&lt;br /&gt;protected int[] fields;&lt;br /&gt;protected boolean[] isSet;&lt;br /&gt;protected boolean isTimeSet;&lt;br /&gt;protected long time;&lt;br /&gt;//Methods&lt;br /&gt;public static synchronized Locale[] getAvailableLocales();&lt;br /&gt;public static synchronized Calendar getInstance();&lt;br /&gt;public static synchronized Calendar getInstance(TimeZone zone);&lt;br /&gt;public static synchronized Calendar getInstance(Locale aLocale);&lt;br /&gt;public static synchronized Calendar getInstance(TimeZone zone, Locale aLocale);&lt;br /&gt;public abstract void add(int field, int amount);&lt;br /&gt;public abstract boolean after(Object when);&lt;br /&gt;public abstract boolean before(Object when);&lt;br /&gt;public final void clear();&lt;br /&gt;public final void clear(int field);&lt;br /&gt;public Object clone(); // Overrides Object&lt;br /&gt;public abstract boolean equals(Object when); &lt;br /&gt;public final int get(int field);&lt;br /&gt;public int getFirstDayOfWeek();&lt;br /&gt;public abstract int getGreatestMinimum(int field);&lt;br /&gt;public abstract int getLeastMaximum(int field);&lt;br /&gt;public abstract int getMaximum(int field);&lt;br /&gt;public int getMinimalDaysInFirstWeek();&lt;br /&gt;public abstract int getMinimum(int field);&lt;br /&gt;public final Date getTime();&lt;br /&gt;public TimeZone getTimeZone();&lt;br /&gt;public boolean isLenient();&lt;br /&gt;public final boolean isSet(int field);&lt;br /&gt;public abstract void roll(int field, boolean up);&lt;br /&gt;public final void set(int field, int value);&lt;br /&gt;public final void set(int year, int month, int date);&lt;br /&gt;public final void set(int year, int month, int date, int hour, int minute);&lt;br /&gt;public final void set(int year, int month, int date, int hour, int minute, int second);&lt;br /&gt;public void setFirstDayOfWeek(int value);&lt;br /&gt;public void setLenient(boolean lenient);&lt;br /&gt;public void setMinimalDaysInFirstWeek(int value);&lt;br /&gt;public final void setTime(Date date);&lt;br /&gt;public void setTimeZone(TimeZone value);&lt;br /&gt;protected void complete();&lt;br /&gt;protected abstract void computeFields();&lt;br /&gt;protected abstract void computeTime();&lt;br /&gt;protected long getTimeInMillis();&lt;br /&gt;protected final int internalGet(int field);&lt;br /&gt;protected void setTimeInMillis(long millis);&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/calendar-class-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-2185724462457589054</guid><pubDate>Tue, 15 Jan 2019 08:20:00 +0000</pubDate><atom:updated>2019-02-06T15:39:12.114+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">AWTEventMulticaster</category><category domain="http://www.blogger.com/atom/ns#">Component</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>AWTEventMulticaster in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838678/photosp/f75d5aad-a591-4d07-aea4-98bde6141331/f75d5aad-a591-4d07-aea4-98bde6141331.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;AWTEventMulticaster in Java&quot; border=&quot;0&quot; data-original-height=&quot;640&quot; data-original-width=&quot;640&quot; height=&quot;400&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838678/photosp/f75d5aad-a591-4d07-aea4-98bde6141331/f75d5aad-a591-4d07-aea4-98bde6141331.jpg&quot; title=&quot;AWTEventMulticaster in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;AWTEventMulticaster in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;AWTEventMulticaster in Java:&lt;/h2&gt;&lt;div&gt;AWTEventMulticaster is helpful for writing custom AWT components. As the name suggests when we invoke one of the EventListener methods on&amp;nbsp;AWTEventMulticaster, it invokes the same method on the EventListener objects. AWTEventMulticaster implements the linked list of EventListener objects.AWTEventMulticaster helps to notify the listeners on that list upon occurring&amp;nbsp;an event, hence it can serve any desired ty of EventListener.We can use add() and remove() methods to add or remove EventListener objects from the Linked list.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The Structure of the&amp;nbsp;AWTEventMulticaster :&lt;/h3&gt;&lt;/div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public class java.awt.AWTEventMulticaster extends&lt;br /&gt;             java.lang.Object implements &lt;br /&gt;             java.awt.event.ComponentListener, &lt;br /&gt;             java.awt.event.ContainerListener,&lt;br /&gt;             java.awt.event.FocusListener, &lt;br /&gt;             java.awt.event.KeyListener, &lt;br /&gt;             java.awt.event.MouseListener, &lt;br /&gt;             java.awt.event.MouseMotionListener, &lt;br /&gt;             java.awt.event.WindowListener,&lt;br /&gt;             java.awt.event.ActionListener,&lt;br /&gt;             java.awt.event.ItemListener, &lt;br /&gt;             java.awt.event.AdjustmentListener, &lt;br /&gt;TextListener {&lt;br /&gt;//Constructor&lt;br /&gt;protected AWTEventMulticaster(EventListener a, EventListener b);&lt;br /&gt;// Member variables&lt;br /&gt;protected EventListener a;&lt;br /&gt;protected EventListener b;&lt;br /&gt;// Methods&lt;br /&gt;public static ComponentListener add(ComponentListener a,ComponentListener b);&lt;br /&gt;public static ContainerListener add(ContainerListener a,ContainerListener b);&lt;br /&gt;public static FocusListener add(FocusListener a, FocusListener b);&lt;br /&gt;public static KeyListener add(KeyListener a, KeyListener b);&lt;br /&gt;public static MouseListener add(MouseListener a, MouseListener b);&lt;br /&gt;public static MouseMotionListener add(MouseMotionListener a,MouseMotionListener b);&lt;br /&gt;public static WindowListener add(WindowListener a, WindowListener b);&lt;br /&gt;public static ActionListener add(ActionListener a, ActionListener b);&lt;br /&gt;public static ItemListener add(ItemListener a, ItemListener b);&lt;br /&gt;public static AdjustmentListener add(AdjustmentListener a,AdjustmentListener b);&lt;br /&gt;public static TextListener add(TextListener a, TextListener b);&lt;br /&gt;protected static EventListener addInternal(EventListener a, EventListener b);&lt;br /&gt;public static ComponentListener remove(ComponentListener l,ComponentListener oldl);&lt;br /&gt;public static ContainerListener remove(ContainerListener l,ContainerListener oldl);&lt;br /&gt;public static FocusListener remove(FocusListener l, FocusListener oldl);&lt;br /&gt;public static KeyListener remove(KeyListener l, KeyListener oldl);&lt;br /&gt;public static MouseListener remove(MouseListener l, MouseListener oldl);&lt;br /&gt;public static MouseMotionListener remove(MouseMotionListener l,MouseMotionListener oldl);&lt;br /&gt;public static WindowListener remove(WindowListener l, WindowListener oldl);&lt;br /&gt;public static ActionListener remove(ActionListener l, ActionListener oldl);&lt;br /&gt;public static ItemListener remove(ItemListener l, ItemListener oldl);&lt;br /&gt;public static AdjustmentListener remove(AdjustmentListener l,AdjustmentListener oldl);&lt;br /&gt;public static TextListener remove(TextListener l, TextListener oldl);&lt;br /&gt;protected static EventListener removeInternal(EventListener l,EventListener oldl);&lt;br /&gt;protected static void save(ObjectOutputStream outputstream, String k, EventListener l) throws IOException;&lt;br /&gt;public void actionPerformed(ActionEvent e); &lt;br /&gt;public void adjustmentValueChanged(AdjustmentEvent e);&lt;br /&gt;public void componentAdded(ContainerEvent e); &lt;br /&gt;public void componentHidden(ComponentEvent e); &lt;br /&gt;public void componentMoved(ComponentEvent e); &lt;br /&gt;public void componentRemoved(ContainerEvent e); &lt;br /&gt;public void componentResized(ComponentEvent e); &lt;br /&gt;public void componentShown(ComponentEvent e); &lt;br /&gt;public void focusGained(FocusEvent e); &lt;br /&gt;public void focusLost(FocusEvent e); &lt;br /&gt;public void itemStateChanged(ItemEvent e); &lt;br /&gt;public void keyPressed(KeyEvent e); &lt;br /&gt;public void keyReleased(KeyEvent e); &lt;br /&gt;public void keyTyped(KeyEvent e);&lt;br /&gt;public void mouseClicked(MouseEvent e); &lt;br /&gt;public void mouseDragged(MouseEvent e); &lt;br /&gt;public void mouseEntered(MouseEvent e); &lt;br /&gt;public void mouseExited(MouseEvent e); &lt;br /&gt;public void mouseMoved(MouseEvent e); &lt;br /&gt;public void mousePressed(MouseEvent e); &lt;br /&gt;public void mouseReleased(MouseEvent e); &lt;br /&gt;public void textValueChanged(TextEvent e); &lt;br /&gt;public void windowActivated(WindowEvent e); &lt;br /&gt;public void windowClosed(WindowEvent e); &lt;br /&gt;public void windowClosing(WindowEvent e); &lt;br /&gt;public void windowDeactivated(WindowEvent e);&lt;br /&gt;public void windowDeiconified(WindowEvent e); &lt;br /&gt;public void windowIconified(WindowEvent e); &lt;br /&gt;public void windowOpened(WindowEvent e);&lt;br /&gt;protected EventListener remove(EventListener oldl);&lt;br /&gt;protected void saveInternal(ObjectOutputStream outputstream, String k) throws IOException;&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/awteventmulticaster-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-4381477329599455310</guid><pubDate>Tue, 15 Jan 2019 07:06:00 +0000</pubDate><atom:updated>2019-02-06T15:42:08.155+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">WindowAdapter</category><category domain="http://www.blogger.com/atom/ns#">WindowAdapter Class in Java</category><title>WindowAdapter Class in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1467376750/photosp/b69f4caa-16b7-4a07-8015-051234512309/b69f4caa-16b7-4a07-8015-051234512309.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;WindowAdapter Class in Java&quot; border=&quot;0&quot; data-original-height=&quot;506&quot; data-original-width=&quot;640&quot; height=&quot;316&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1467376750/photosp/b69f4caa-16b7-4a07-8015-051234512309/b69f4caa-16b7-4a07-8015-051234512309.jpg&quot; title=&quot;WindowAdapter Class in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;WindowAdapter Class in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;WindowAdapter Class in Java:&lt;/h2&gt;WindowAdapter is an implementation of the WindowListener interface. It contains empty bodies for each of the methods of WindowListener. When we do not need to implement all the methods of WindowListener interface, Subclass -WindowAdapter helps us there.&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The structure of WindowAdapter is given as:&lt;/h3&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public abstract class WindowAdapter extends Object implements WindowListener {&lt;br /&gt;// Constructor: &lt;br /&gt;public WindowAdapter();&lt;br /&gt;//Methods&lt;br /&gt;public void windowActivated(WindowEvent e); &lt;br /&gt;public void windowClosed(WindowEvent e); &lt;br /&gt;public void windowClosing(WindowEvent e); &lt;br /&gt;public void windowDeactivated(WindowEvent e); &lt;br /&gt;public void windowDeiconified(WindowEvent e); &lt;br /&gt;public void windowIconified(WindowEvent e); &lt;br /&gt;public void windowOpened(WindowEvent e); &lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/windowadapter-class-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-713514359821084237</guid><pubDate>Mon, 14 Jan 2019 16:29:00 +0000</pubDate><atom:updated>2019-02-06T15:40:10.251+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Image</category><category domain="http://www.blogger.com/atom/ns#">ImageProducer</category><category domain="http://www.blogger.com/atom/ns#">ImageProducer interface</category><category domain="http://www.blogger.com/atom/ns#">ImageProducer interface in Java</category><category domain="http://www.blogger.com/atom/ns#">Interface</category><category domain="http://www.blogger.com/atom/ns#">java</category><title>ImageProducer interface in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838654/photosp/5ec75dbf-7aec-4309-ab57-589f4c2802d9/5ec75dbf-7aec-4309-ab57-589f4c2802d9.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;ImageProducer interface in Java&quot; border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;640&quot; height=&quot;300&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838654/photosp/5ec75dbf-7aec-4309-ab57-589f4c2802d9/5ec75dbf-7aec-4309-ab57-589f4c2802d9.jpg&quot; title=&quot;ImageProducer interface in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;ImageProducer interface in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;ImageProducer Class in Java:&lt;/h2&gt;&lt;div&gt;ImageProducer interface defines all the methods that a class must define while producing an image. This class&amp;nbsp;enables us to communicate with ImageConsumer classes. Any ImageConsumer class express its interest and register itself by calling addComponent() method.&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The structure of&amp;nbsp;ImageProducer interface in Java is given as:&lt;/h3&gt;&lt;div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public abstract interface java.awt.image.ImageProducer{&lt;br /&gt;//methods&lt;br /&gt;public abstract void addConsumer(ImageConsumer ic);&lt;br /&gt;public abstract void removeConsumer(ImageConsumer ic);&lt;br /&gt;public abstract void requestTopDownLeftRightResend(ImageConsumer ic);&lt;br /&gt;public abstract void startProduction(ImageConsumer ic);&lt;br /&gt;public abstract boolean isConsumer(ImageConsumer ic);&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/imageproducer-interface-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-8148196537705625678</guid><pubDate>Mon, 14 Jan 2019 16:17:00 +0000</pubDate><atom:updated>2019-02-06T20:05:20.782+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">class PopupMenu</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">Menu</category><category domain="http://www.blogger.com/atom/ns#">PopupMenu</category><category domain="http://www.blogger.com/atom/ns#">PopupMenu in Java</category><title>PopupMenu in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838714/photosp/ae53bec1-5d10-431f-bb18-6994b9565311/ae53bec1-5d10-431f-bb18-6994b9565311.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;PopupMenu in Java&quot; border=&quot;0&quot; data-original-height=&quot;480&quot; data-original-width=&quot;640&quot; height=&quot;300&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838714/photosp/ae53bec1-5d10-431f-bb18-6994b9565311/ae53bec1-5d10-431f-bb18-6994b9565311.jpg&quot; title=&quot;PopupMenu in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;PopupMenu in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;PopupMenu in Java:&lt;/h2&gt;&lt;div&gt;PopupMenu is the subclass of &lt;a href=&quot;https://www.techtravelhub.com/2018/12/all-about-class-menu-in-awt-in-java.html&quot; target=&quot;_blank&quot;&gt;Menu&lt;/a&gt;&amp;nbsp;class. It represents the popup menu instead of traditional dropdown or pull-down menu. Whenever user event calls it show() method it pops up.&lt;/div&gt;&lt;div&gt;A PopupMenu can be associated with any graphical component in the user interface. we can call add() method to associate the PopupMenu to any component.&lt;/div&gt;&lt;div&gt;Platforms may implement platform specific PopupMenu but since Java&amp;nbsp;is a platform independent language, it implements platform indepency&amp;nbsp;by calling isPopupTrigger() method defined in the MouseEvent class. If the method returns true, MouseEvent represents the platform-specific popup menu trigger event and we should be able to use show() method to pop up the Menu.&lt;/div&gt;&lt;div&gt;The show() method takes x,y coordinates with respect to Component.&lt;/div&gt;&lt;div&gt;The structure of PopupMenu is defined as:&lt;br /&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public class java.awt.PopupMenu extends&lt;br /&gt;             java.awt.Menu{&lt;br /&gt;//constructors&lt;br /&gt;public PopupMenu();&lt;br /&gt;public PopupMenu(String label);&lt;br /&gt;//methods&lt;br /&gt;public synchronized void addNotify();&lt;br /&gt;public void show(Component target,int x,int y);&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/popupmenu-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2981436578666077634.post-9125328920723076024</guid><pubDate>Mon, 14 Jan 2019 14:36:00 +0000</pubDate><atom:updated>2019-02-06T15:40:23.817+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Character printing</category><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">OutputStreamWriter</category><category domain="http://www.blogger.com/atom/ns#">OutputStreamWriter in java</category><category domain="http://www.blogger.com/atom/ns#">Stream</category><title>OutputStreamWriter in Java</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838982/photosp/ed8d2e01-f128-49f1-9529-7c81f4c8b354/ed8d2e01-f128-49f1-9529-7c81f4c8b354.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;OutputStreamWriter in Java&quot; border=&quot;0&quot; data-original-height=&quot;427&quot; data-original-width=&quot;640&quot; height=&quot;266&quot; src=&quot;https://res.cloudinary.com/twenty20/private_images/t_standard-fit/v1521838982/photosp/ed8d2e01-f128-49f1-9529-7c81f4c8b354/ed8d2e01-f128-49f1-9529-7c81f4c8b354.jpg&quot; title=&quot;OutputStreamWriter in Java&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;OutputStreamWriter in Java&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;OutputStreamWriter in Java:&lt;/h2&gt;&lt;div&gt;This category of classes decides where our output will go.It may go an array of bytes(No String) or by chacterers.We can create Arrays of bytes a file or a Pipe.&lt;/div&gt;&lt;div&gt;In addition,the FilterOutputStream provides a base class for classes that attach&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;attributes&lt;/li&gt;&lt;li&gt;useful interfaces&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;to OutputStream.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;OutputStreamWriter is a character OutputStream that writes data as byte OutputStream so when characters are written to an OutputStreamWriter , it translate them to bytes according to the Locale info or according to platform specific character encoding.After conversion it writes those bytes to the specified OutputStream.&lt;/div&gt;&lt;div&gt;getEncoding() method returns the name of the encoding being used to convert characters to byte.&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;The class structure of&amp;nbsp;OutputStreamWriter is given as:&lt;/h3&gt;&lt;/div&gt;&lt;pre class=&quot;prettyprint&quot;&gt;&lt;code class=&quot;language-java&quot;&gt;&lt;br /&gt;public class java.io.OutputStreamWriter extends &lt;br /&gt;             java.io.Writer{&lt;br /&gt;//constructor&lt;br /&gt;public OutputStreamWriter(OutputStream out,String encoding) &lt;br /&gt;throws UnsupportedEncodingException;&lt;br /&gt;public OutputStreamWriter(OutputStream out);&lt;br /&gt;//methods:&lt;br /&gt;public void close() throws IOException;&lt;br /&gt;public void flush() throws IOException;&lt;br /&gt;public String getEncoding(();&lt;br /&gt;public void write(int c) throws IOException;&lt;br /&gt;public void write(char[] cbuffer,int offset,int length) throws IOException;&lt;br /&gt;public void write(String str,int offset,int length) throws IOException;&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description><link>http://www.techtravelhub.com/2019/01/outputstreamwriter-in-java.html</link><author>noreply@blogger.com (Animesh)</author><thr:total>0</thr:total></item></channel></rss>