JAVA Summery

 










The java.io package contains many classes that your programs can use to read and write data. Most of the classes implement sequential access streams. The sequential access streams can be divided into two groups: those that read and write bytes and those that read and write Unicode characters. Each sequential access stream has a speciality, such as reading from or writing to a file, filtering data as its read or written, or serializing an object.

The java.nio.file package provides extensive support for file and file system I/O. This is a very comprehensive API, but the key entry points are as follows:

  • The Path class has methods for manipulating a path.
  • The Files class has methods for file operations, such as moving, copy, deleting, and also methods for retrieving and setting file attributes.
  • The FileSystem class has a variety of methods for obtaining information about the file system.

More information on NIO.2 can be found on the OpenJDK: NIO project website. This site includes resources for features provided by NIO.2 that are beyond the scope of this tutorial, such as multicasting, asynchronous I/O, and creating your own file system implementation.J


  Java


is a high level, object-oriented, platform independent language.

Java, unlike some languages before it allows for the use of words and commands instead of just symbols and numbers. Java also allows for the creation of advanced data types called objects which represent real world things like a chair or a computer where you can set the attributes of these objects and things they do.

Java is very flexible - it can be used to develop software as well as applets (small programs that run on webpages). But the flexibility doesn't end there because you can run the same Java programs on various operating systems without having to rewrite the code (unlike some other languages such as C and C++) thanks to the Java run-time environment which interprets Java code and tells the operating system what to do.

Learning Java serves as a good introduction to software development.

The tutorials in this section included information on a wide variety of Java topics including printing text, working with variables, loops, strings, creating classes and instantiating objects, accepting user input, creating graphical applications, and more.

Comments

Popular Posts