Tag: java

  • Lambda Expressions in Java

    Java is a first-class object-oriented language. With the exception of primitive data types, everything in Java is an object. Even an array is an Object. Every class creates instances that are objects. There is no way of defining just a function / method which stays in Java all by itself. There is no way of […]

    Posted in: Java

  • Remote Method Invocation

    The Remote Method Invocation (RMI) is an API that provides a mechanism to create distributed application in java. The RMI allows an object to invoke methods on an object running in another JVM. The RMI provides remote communication between the applications using two objects stub and skeleton. Understanding stub and skeleton RMI uses stub and […]

    Posted in: Java

  • JDBC API

    This JDBC tutorial covers all the topics of JDBC with the simple examples. JDBC is a Java API that is used to connect and execute query to the database. JDBC API uses jdbc drivers to connects to the database. Why use JDBC? Before JDBC, ODBC API was used to connect and execute query to the […]

    Posted in: Java

  • Try catch block

    Five keywords used in Exception handling: try catch finally throw throws try block Enclose the code that might throw an exception in try block. It must be used within the method and must be followed by either catch or finally block. Syntax of try catch block

      Syntax of try with finally block

    […]

    Posted in: Java

  • Exception Handling in Java

    The exception handling in java is one of the powerful mechanism to handle the runtime errors so that normal flow of the application can be maintained. In this page, we will learn about java exception, its type and the difference between checked and unchecked exceptions. What is exception Dictionary Meaning: Exception is an abnormal condition. […]

    Posted in: Java

  • Java Command Line Argument

    The java command line argument is an argument i.e. passed at the time of running the java program. The arguments passed from the console can be received in the java program and it can be used as an input. So, it provides a convenient way to check the behavior of the program for the different […]

    Posted in: Java

  • Creating API Documentation in java

    Creating API Documentation API Documentation for Web browser The javadoc tool provides an easy way to write API documentation for source code and software projects using the Java programming language.  The javadoc documentation comments are the industry standard way of documenting source code.  IDEs such as Eclipse and Netbeans can automatically generate the HTML documentation […]

    Posted in: Java

  • Strictfp in java

    Strictfp in java a keyword ensures that you will get the same result on every platform if you perform operations in the floating-point variable. The precision may differ from platform to platform that is why java programming language have provided the strictfp keyword, so that you get same result on every platform. So, now you […]

    Posted in: Java

  • Call by Value and Call by Reference in Java

    There is only call by value in java, not call by reference. If we call a method passing a value, it is known as call by value. The changes being done in the called method, is not affected in the calling method. Example of call by value in java In case of call by value […]

    Posted in: Java

  • Object Cloning

    The object cloning is a way to create exact copy of an object. For this purpose, clone() method of Object class is used to clone an object. The java.lang.Cloneable interface must be implemented by the class whose object clone we want to create. If we don’t implement Cloneable interface, clone() method generates CloneNotSupportedException. The clone() […]

    Posted in: Java