Hello guys.. At this page you can refer to various specifications of phones and news about new technologies. If you want to know description of any specific phone or any tech then you are mostly welcome to my page!!!
Hey everybody!! A Warm Welcome to FUTURE TECHNOLOGY…
I will help you in programming on java and will tell you some exiting facts and specifications about latest tech.
“Technology can be our best friend, and technology can also be the biggest party pooper of our lives. It interrupts our own story, interrupts our ability to have a thought or a daydream, to imagine something wonderful, because we’re too busy bridging the walk from the cafeteria back to the office on the cell phone.”
WELCOME TO JAVA
Java is a programming language that produces software for multiple platforms. When a programmer writes a Java application, the compiled code (known as bytecode) runs on most operating systems (OS), including Windows, Linux and Mac OS. Java derives much of its syntax from the C and C++ programming languages.
JAMES A. GOSLING
Java was developed in the mid-1990s by James A. Gosling, a former computer scientist with Sun Microsystems.
“Java is both a programming language and a platform”, as it can be used as a programming language when we create many computer applications and as a platform, it can be used to run highly interactive, dynamic and secure applications for computers. After compilation, java does not produce NATIVE EXECUTABLE CODE for a particular machine but it produces a special format called JAVA BYTE CODE. Java uses 2-byte character code called UNICODE. A Java byte code is an instruction for java processor chip called JVM(Java Virtual Machine). The compilation is done by converting language processors like Compilers(COBOL) and Interpreters(BASIC). Compilers convert the whole program in one go from HLL(High-Level Language or simply English Language in which program is written) to LLL(Low-Level Language or simply the Machine Code, the language which is understood by machines which also pre-existed as HLL but now is converted by language processors to LLL),so compilation is fast but debugging(finding and rectification errors) is difficult as it displays a list of errors. Interpreters convert HLL to LLL line by line. So compilation is slow but debugging is fast as errors are detected and corrected one by one.
Scanner Class in Java-:
Scanner is a class in java.util package used for obtaining the input of the primitive types like int, double etc. and strings. It is the easiest way to read input in a Java program, though not very efficient if you want an input method for scenarios where time is a constraint like in competitive programming.
Now we will discuss some of the basic programs of JAVA-:
The Java.io.BufferedReader class reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.Following are the important points about BufferedReader: 1-The buffer size may be specified, or the default size may be used. 2-Each read request made of a Reader causes a corresponding read request to be made of the underlying character or byte stream. 3-Now we will go through with some programs-:
There is a very important chapter that comes under Java and plays a significant role. That chapter is called FUNCTIONS. A function a series of statements or codes that performs a specific task in order to reduce complexity. To know more about it, read the full blog mentioned below-named FUNCTION.