Escape Characters in Java
n New line t Tab b Backspace r Carriage return f Formfeed \ Backslash ' Single quotation mark " Double quotation mark d Octal xd Hexadecimal ud Unicode character
n New line t Tab b Backspace r Carriage return f Formfeed \ Backslash ' Single quotation mark " Double quotation mark d Octal xd Hexadecimal ud Unicode character
Both JAR and WAR are created(Zipped) with Java JAR tool , both have different purposes. JAR – Java Archive this JAR file may be a standalone java application or a zipped source . this file contains classes , libraries , property files Command to create a JAR file : here i want to create JAR…
JUNIT EE Observation JUnitEE is free software for unit testing in a J2EE environment and useful for manual testing / manually run test cases inside your application server. JUnit provides the framework for writing your unit tests, and JUnitEE gives you the possibility to run these tests inside your application server. This has…
Algorithms for coding interviews! 1. Object oriented programming 2. Data Structures (String*, Arrays, HashMap*, etc..) 3. Stacks and Queues 4. Iterative algorithm 5. Recursive function 6. Binary search 7. Tree traversal* 8. Sorting algorithm 9. Dynamic programming* * marked as very important #programming #javaprogramming #techinterview #codinginterview #toptechinterview
output comment: A comment that is sent to the client in the viewable page source.The JSP engine handles an output comment as uninterpreted HTML text, returning the comment in the HTML output sent to the client. You can see the comment by viewing the page source from your Web browser. JSP Syntax <!– comment […
// package sampleprograms; import java.io.*; import java.net.*; /** * * @author katta vijay */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here try{ String ip = InetAddress.getLocalHost().getHostAddress(); System.out.println(ip); }catch(Exception e){ } } } —————————————————-output is———————— 10.0.0.223
Following four ways are used to retrieve elements from collection object : Using for-each loop. Using Iterator Interface. Using ListIterator interface. Using Enumeration Interface. For-each loop : for-each loop is like for loop which repeatedly executes a group of statements,for each element of collection the format is for(variable:collection object) // for( String values: os) {…