Posts

Showing posts with the label Java

How to write json objects into the file using java language?

Image
Java read json file The JSON is one of the broadly utilized information exchange designs and is a lightweight and language free.   The json.simple is a lightweight JSON handling library that can be utilized to peruse and compose JSON records and it tends to be utilized to encode or disentangle JSON message and completely consistent with JSON determination.   To peruse a JSON record, we really want to download the json-simple.jar document and set the way to execute it . //code import java.io.*; import java.util.*; import org.json.simple.*; import org.json.simple.parser.*; public class Example1 {    public static void main(String[] args) {       JsonFile parser1 = new JsonFile();       try {          Object obj1 = parser.parse(new FileReader1("/Bhoomika/Victus/Desktop/course.json"));          jsonObject = (JsonOb...

Steps to Design JDBC Applications in Java

 Design of JDBC  Java Database Connectivity (JDBC) is an Application Programming Interface (API), from Sun microsystem that is utilized by the Java application to speak with the social information bases from various sellers. JDBC and information base drivers work couple to get to accounting pages and data sets. Design of JDBC characterizes the parts of JDBC, which is utilized for associating with the information base.  Segments of JDBC  Design of JDBC  JDBC has four significant parts that are utilized for the communication with the information base.  JDBC API  JDBC Test Suite  JDBC Driver Manger  JDBC ODBC Bridge Driver  1) JDBC API: JDBC API gives different interfaces and techniques to build up simple association with various data sets.  javax.sql.*;  java.sql.*;  2) JDBC Test suite: JDBC Test suite works with the software engineer to test the different tasks like erasure, updation, inclusion that are being executed by t...