Java Essential Training for Students - Google Drive Link
Java Essential Training for Students - Google Drive
First appeared: May 23, 1995; 24 years ago
Typing discipline: Static, strong, safe, nominative, manifest
Filename extensions: java,.class,.jar
Paradigm: Multi-paradigm: generic, object-oriented (class-based), imperative, reflective
What is Java?
Java is a popular programming language, created in 1995.
It is owned by Oracle, and more than 3 billion devices run Java.
It is used for:
- Mobile applications (specially Android apps)
- Desktop applications
- Web applications
- Web servers and application servers
- Games
- Database connection
- And much, much more!
Why Use Java?
- Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
- It is one of the most popular programming language in the world
- It is easy to learn and simple to use
- It is open-source and free
- It is secure, fast and powerful
- It has a huge community support (tens of millions of developers)
- What Java means?
Java is a high-level programming language developed by Sun Microsystems. ... Instead, Java programs are interpreted by the Java Virtual Machine, or JVM, which runs on multiple platforms. This means all Java programs are multiplatform and can run on different platforms, including Macintosh, Windows, and Unix computers.
Java Definition by - The Tech Terms Computer Dictionary
- Which is latest version of Java?
The latest version of Java till date is Java SE 11.0.2 released on 15th January 2019. Dhaval Patel, Learning java since last 2 year. For Java SE(Standard Edition) latest version is Java SE 8u73. For Java EE(Enterprise Edition) latest version is Java EE 7.
- What is the purpose of Java?
Java is a programming language that developers use to create applications on your computer. Chances are you've downloaded a program that required the Javaruntime, and so you probably have it installed it on your system. Java also has a web plug-in that allows you to run these apps in your browser.
- Why is Java better than other languages?
If security or performance is being considered then both languages receive a similar score. However, Java has a comparative advantage over C# because it is a platform-independent language. It is supported on more operating systems than C# without
recompiling code.
- The advantages of Java are as follows:
- Java is easy to learn. Java was designed to be easy to use and is therefore easy to write, compile, debug, and learn than other programming languages.
- Java is object-oriented. This allows you to create modular programs and reusable code.
- Java is platform-independent.
(https://www.ibm.com/support/knowledgecenter/en/ssw_aix.../advantages_java.htm)
- What are the disadvantages of Java?
Disadvantages of Java: Performance: SIgnificantly slower and more memory-consuming than natively compiled languages such as C or C++. ... Single-paradigm language: The addition of static imports in Java 5.0 the procedural paradigm is better accommodated than in earlier versions of Java.
)
- What is Java famous for?
Java is only the fourth largest island in Indonesia but contains more than half of the nation's population and dominates it politically and economically. The capital of Javaand of the country is Jakarta (formerly Batavia), which is also Indonesia's largest city.
Debugging and Avoiding Common Errors in Java
While working through this book, you’ve
probably made a few typos or mistakes
along the way. In this appendix, I’ll go over
a few common programming pitfalls to avoid.
One nice feature of both Eclipse and Android Studio
that is helpful when debugging is syntax coloring. Class
names, functions, variable types, strings, comments,
and so on are each colored differently in the IDE
based on their syntax.
Syntax coloring can help you spot typos and other problems quickly.
For example, if you forget to close a string with a second pair of double
quotes, the semicolon at the end of that line will be colored differently
from the other semicolons on the screen. As we go through these common
errors, try introducing them into one of the apps you’ve written and look
274 Appendix
for the warnings given by Eclipse and Android Studio. It’s okay if you break
an app—you can always go back and fix it, either by using the original code
listing in the book or by pressing ctrl-Z (-Z) or clicking
Spelling and Case
Spelling is important in any programming language, but in Java, case
matters, too. For example, if you use a lowercase s to make a scanner or
string, the text editor in Eclipse will underline the class name in red, and
Android Studio will color the text red. It might seem silly, but Java only
understands String, not string.
The same goes for variable names, such as playAgain or theNumber. For
example, if we accidentally capitalize the P and use a lowercase a, spelling
Playagain, Java doesn’t understand that we mean the variable playAgain. Let’s
take a look at how each IDE helps us find and fix typographical errors like
these, first in Eclipse and then in Android Studio.
Wow patta..
ReplyDeleteThanks
DeleteSupiri
ReplyDeleteNiyamai...😊👍
ReplyDelete