unit 1
unit 1
[Remembering]
1. Simple
2. Object-Oriented
3. Portable
4. Platform independent
5. Secured
6. Robust
7. Architecture neutral
8. Interpreted
9. High Performance
10. Multithreaded
11. Distributed
12. Dynamic
5. What are the difference between static variable and instance variable? [Analyzing]
The data or variables, defined within a class are called instance variables.
Instance variables declared as static are, essentially, global variables. When objects of its class are
declared, no copy of a static variable is made.
9. What gives java it’s “write once and run anywhere” nature? [Understanding]
All Java programs are compiled into class files that contain byte codes. These byte codes can be run
in any platform and hence java is said to be platform independent.
10. Why Java is Platform Independent. [Creating]
Java is platform independent because it can run on any platform i.e on windows,mac etc. ... Because
it contains its own virtual machine which have JRE which runs java program as byte code. You may
have different JRE for differentplatforms .Once you installed it in your system you can run any java
application on it.
11. Why Java is Architecture-Neutral. [Analyzing]
Java was designed to support applications on networks. To enable a Javaapplication to execute
anywhere on the network, the compiler generates anarchitecture-neutral object file format--the
compiled code is executable on many processors, given the presence of the Java runtime system
Big questions
1. Write short notes on Arrays with its declaration and with its type. Explain with suitable Program.
[Creating]
2. Explain briefly about the features of java. [Analyzing]
3. List out the operator in Java. write Program and and explain it. [Applying]
4. Write a program to explain Fibonacci series
5. Write a Java program to illustrate the searching of a number in an array
6. Write a Java program to demonstrate sorting of elements in an array.