Java is a High-Level Language designed by Sun Microsystems. It runs on a variety of platforms such as Mac OS, Windows, various versions of Unix. In this BTech Geeks Java tutorial, you will learn all about what is meant by Java, Topics Covered in the Language, Why one should learn the Programming Language Java, Applications of it, etc.
- What is Java?
- List of Java Programming Topics
- Prerequisites for Learning Java Programming Language
- Why Learn Java?
- Hello World Program using Java
- How to Learn Java?
- Types of Java Applications
- Java Platforms/Editions
What is Java?
Java is an Object-Oriented Programming Language for building web and desktop applications. It is the most popular programming language and a language of choice for Android Programming.
List of Java Programming Topics
Here is the list of Java Topics that you must learn while learning about the language. All you have to do is simply click on the quick links available here to get a good hold of the concept.
- Java Introduction
- Java Flow Control
- Java Arrays
- Java OOP (I)
- Java OOP (II)
- Java OOP (III)
- Java Exception Handling
- Java List
- Java Queue
- Java Map
- Java Set
- Java I/O Streams
- Java Reader/Writer
- Additional Topics
- About Java Programming
- Why learn Java?
- How to learn Java?
- Java Resources
Java Collection
- What is Collection Framework In Java
- ArrayList in Java with Example
- Java LinkedList Class with Example
- Vector in Java with Example
- Stack Class in Java with Example
- HashSet Class in Java with Example
- LinkedHashSet in Java with Example
- SortedSet interface in Java with Example
- NavigableSet in Java with Example
- TreeSet in Java with Example
- Comparable vs Comparator in Java with Example
- Queue in Java with Example
- PriorityQueue in Java with Example
- DeQue in Java with Example
- ArrayDeque in Java with Example
- Java Map interface with Example
- SortedMap Interface in Java with Example
- HashMap in Java with Example
- LinkedHashMap in Java
- TreeMap in Java with Example
- Java Dictionary Class with Example
- Java Hashtable with Example
- How to Pass an ArrayList to Varargs Method
Java Miscellaneous Concepts
- What is Hashing and Hash Table?
- Java: Creating HashMap by associating multiple values with same Key
- Java: How to Remove Elements from HashMap while Iterating
- Java: How to get all Keys by a Value in HashMap
- How to Create and Add elements in a HashSet in Java
- How to Search for an Element in HashSet in Java
- How to Merge an Array in a HashSet in Java
- How to Add Elements at a Particular Index in LinkedList
- How to Iterate over a HashSet in Java
- How to Merge two HashSets in Java
Java Topics
- What is Java – JDK, JRE, and JVM
- Top 100+ Core Java Interview Questions and Answers
- What are JavaBeans?
- What is Enterprise JavaBeans (EJB)?
- Basic Data Types in Java with Example
- Constructor in Java with Example
- Packages in Java
- Exception Handling in Java – Types of Exceptions in Java
- What is an Exception and How to do Exception Handling in Java
- Serialization in Java | Object Serialization | Serialization Example in Java
- HTTP Requests
- What is HTTP – HyperText Transfer Protocol?
- What is Java 2 Platform, Enterprise Edition (J2EE)
- Java Authentication and Authorization Service (JAAS)
- How we can create our own immutable class in java?
- What is the difference between final and immutable in Java?
- Java Continue Statement with Example
- Java break statement with Example
- Java Control Statements
- Java if-else-if ladder with Example
- Java nested-if statement with Example
- Passing Variable Arguments to a Function in Java using Varargs – Tutorial and Example
Java Strings
- Java String lastIndexOf() Method with Example
- Java String indexOf() Method with Example
- Java String substring() method with Example
- Java String isempty() method with Example
- How to Convert a String into Lowercase in Java
- How to Convert a String to UpperCase in Java?
- How to Concatenate two Strings using concat() Method in Java?
- How to Compare two Strings lexicographically in Java?
- How to Convert a String to char array in Java?
- How to find String length in Java using length method?
- How to Replace a String in Java?
- Capitalize First Letter of each Word in a String in Java
- Java String Class charAt() Method with Example
- How to compare two Strings using equalsIgnoreCase() Method in Java?
- How to compare two Strings in Java using equals() Method?
- How to remove Leading and Trailing Whitespaces from String in Java?
Java Operators Topics
- Logical Operators in Java with Example
- Relational Operators in Java with Example
- Unary Operators in Java with Example
- BitWise Operators in Java with Example
Java OOPS
- Class and Object in Java with Example
- Abstract Class in Java
- Encapsulation in Java OOPs with Example
- Inheritance in Java with Example
- Polymorphism in Java
- How to call Base class’s overridden method from Derived class in java
JDBC Tutorial
- Java JDBC Driver
- Java MySQL Database Connectivity with Example
- MySQL Delete Duplicate Rows but keep one
- How to create and execute Stored Procedure in MySQL?
- MySQL: Error 1264 Out of range value for a column
- Statement Interface in Java
- PreparedStatement in Java
- CallableStatement in Java
- Difference between Statement Vs PreparedStatement Vs CallableStatement in java
Servlet Tutorial
- What is Servlet in Java?
- Servlet API in Java
- Servlet Life Cycle With Example
- How to create Hello World Servlet example using eclipse IDE with Tomcat 7?
- How to get data from HTML Form in Servlet
- Servlet interface and its methods explained with Example
- GenericServlet class in Servlet with Example
- HttpServlet Class in Servlet explained with Example
- Session Tracking in Servlet and its Techniques
- Cookies Class in Servlet Explained with Example
- Session Management Using Hidden Form Field in Servlet with Example
- Session Management Using URL Rewriting in Servlet
- Session Management in Servlet Using HttpSession
JSP Tutorial
- Introduction to JSP
- Life Cycle of a JSP Page
- JSP Scripting Elements with Example
- JSP Implicit Objects: 9 Implicit Objects in JSP
- JSP Directives: Page, Include & Taglib Directive
- Exception Handling in JSP
- JSP Expression Language (EL)
- JSP Action Tags – jsp useBean, jsp include, jsp forward
- MVC Architecture in JSP with Example
- JSP Standard Tag Library Tutorial (JSTL), JSTL Tags
- Custom Tags in JSP with Example
Prerequisites for Learning Java Programming Language
Before you begin learning about this programming language we are sure you are aware of some of the Computer Languages. We have designed Java Tutorials for Beginners in a way that people with little or no coding language can use these notes. You can avail these notes online for free and learn about the most powerful programming language.
Why Learn Java?
Learning the Programming Language Java is a must for those who want to start their career in Software Development Domain. Below we have outlined the benefits of using this Programming Language. They are as under
Object-Oriented: We can easily extend Java as it is based on the Object Model.
Platform Independent: Java isn’t compiled into the platform-specific machines rather it is done in independent byte code, unlike other programming languages. Byte code is distributed across the web and JVM interprets irrespective of the platform it is being run on.
Simple: It is quite simple to understand and you can master the language if you are aware of the Java OOPS Concept.
Architecture Neutral: Java Compiler generates architecture-neutral object files making the compiled code executable on various processors taking the help of the JVM.
Portable: As it is architecture-neutral and there are no implementation dependant aspects Java is portable. Compiler in Java is written in ANSI C and has a clean portable boundary.
Robust: It takes an effort and removes the errors by emphasizing the compiler time and run-time checking.
Hello World Program using Java
public class MyFirstJavaProgram { /* This is my first java program. * This will print 'Hello World' as the output */ public static void main(String []args) { System.out.println("Hello World"); // prints Hello World } }
How to Learn Java?
You can learn the programming language by using any of the methods listed below that you are comfortable with.
- You can get started with our tutorials on java for each and every topic.
- You can visit the Java Official Documentation to learn about the Programming Language.
- The other way to learn the Programming Language is to write a lot of code and practice it.
Types of Java Applications
There are 4 main types of Java Applications in total and they are outlined as follows
- Standalone Application
- Web Application
- Enterprise Application
- Mobile Application
Standalone Application: These are also known as desktop applications or web-based applications. It is traditional software that we need to install on every machine. We use AWT and Swing in Java to create Standalone Applications. Some of the Examples of Standalone Applications are Antivirus, Media Player, etc.
Web Application: An application that runs on the server-side and creates a dynamic page is called a Web Application. We use JSP, Servlet, Spring, Struts, Hibernate, JSF, etc. technologies to develop web applications in Java.
Enterprise Application: Application which is distributed in nature likewise banking applications is known as an enterprise application. It provides load balancing, clustering, high-level security. We use EJB to create Enterprise Applications in Java.
Mobile Application: An application that is used for creating mobile devices is known as a Mobile Application. Android and Java ME are used to creating Mobile Applications.
Java Platforms/Editions
There are 4 platforms/editions in Java. We have mentioned all the editions in brief here. Have a quick glance at them
1) Java SE (Java Standard Edition): It is a Programming Platform and has APIs such as java.lang, java.io, java.sql, java.net, java.util, java.math, etc. You can get core topics such as OOPs, String, Exception, Regex, Inner classes, Multithreading, Networking, I/O Stream, AWT, Reflection, Swing, Collection, etc.
2) Java EE (Java Enterprise Edition): It is an enterprise used to develop both web and enterprise applications. It is built on top of the Java SE Platform and includes the topics such as Servlet, Web Services, JSP, JPA, EJB, etc.
3) Java ME (Java Micro Edition): This micro platform is used to develop mobile applications.
4) JavaFX: You can develop rich internet applications and uses a lightweight interface API.