Java is the most popular programming languages with 3+ billion devices running on Java, mostly client-server web applications.
Java Topic
- Basic fundamentals
- OOPs concepts
- Inheritance
- Operators
- Input and Output
- Arrays
- Methods in Java
- Java Packages
- Constructors
- Exception Handling
- Interfaces and Abstract Classes
- Collection in Java
- Multithreading
- File Handling
- Networking in Java
Topics
Basic fundamentals
- Java Programming Language Introduction
- Java Version History
- Install Java on Windows, Mac and Linux
- Structure of Java Program
- Differences between JDK, JRE and JVM
- Comments in Java
- Java Identifiers
- Data types
- Enum
- Modifiers
- Decision Making (if, if-else, switch, break, continue, jump)
- Switch Statement in Java
- Forward declarations
- Widening Primitive Conversion
- Arrays
- Methods
OOPs concepts
- Classes and Objects
- Java – Constructors
- Swap objects
- Inheritance in Java
- Encapsulation in Java
- Abstraction in Java
- Run-time Polymorphism in Java
- Access Modifiers
- this reference
- Method Overloading
- Method Overriding
Inheritance
- Inheritance in Java
- Multiple Inheritance
- Extends, super Keywords
- Inheritance and constructors
- Interfaces and Inheritance
- Final class
- Override private methods
Operators
- Operators
- Bitwise operators in Java
- new operator
- instanceof operator
- Autoboxed Integer objects
- Addition and Concatenation
Input and Output
- Character Stream
- Byte Stream
- Command Line arguments
- Scanner Class
- Reading input from console
Arrays
- Arrays in Java
- Jagged Array
- Array vs ArrayList in Java
Methods in Java
- Methods Passing parameters
- Return Multiple values
- Variable Arguments
- Method Overloading
- Overloading main()
- Private and final methods
- Passing and Returning Objects in Java
Java Packages
- Packages Introduction
- java.io package
- java.lang package
- java.util package
Constructors
- Constructors in Java
- Default constructor
- Assigning values to static final variables
- Copy Constructor
- Private Constructors and Singleton Classes
- Singleton Class
- Constructor Overloading
Exception Handling
- Exceptions
- print Exception messages
- Types of Exceptions
- Catching base and derived classes as exceptions
- Checked vs Unchecked Exceptions
Interfaces and Abstract Classes
- Interfaces
- Access specifier for methods in interfaces
- Access specifiers for classes or interfaces
- Abstract Classes
- Difference between Abstract Class and Interface in Java
- Comparator Interface
- Java Interface methods
- Nested Interface
Collection in Java
- Collections
- Class in Java
- Enumeration, Iterators and List Iterators Using Iterators
- Types of iterator
- AbstractList
- LinkedList
- Immutable List
- Queue
- Deque
- Set
- Map
- HashTable
- Stack
- Vector
- Vector vs ArrayList
- ArrayList vs LinkedList
- Comparable vs Comparator
- HashMap vs HashTable
Multithreading
- Multithreading
- Lifecycle of a thread
- States of a thread
- Methods to prevent thread execution
- Java Thread Priority
- Deadlock in java
File Handling
- File class
- Reading a text file in Java
- file permissions in java
- Delete a file using Java
- Delete duplicate lines in text file
Networking in Java
- Socket Programming
- URL class in Java
import java.util.Scanner;
class Banana {
public static void main(String args[]) { // This line is (Banana.java:4)//
Scanner buck = new Scanner (System.in);
double fnum, snum, answer;
System.out.println(“Enter first”);
fnum = buck.nextDouble();
System.out.println(“Enter seconod”);
snum = buck.nextDouble();
answer = fnum + snum;
System.out.println(answer);
}
}
It keeps telling me :
Exception in thread “main” java.lang.Error: Unresolved compilation problem:
at banana.Banana.main(Banana.java:4)
I am using JavaSE-1.8
Sorry I forget about you, iam little busy just hold on
Its working you might have configured IDE incorrectly
shouldn’t it be String[] args not String args[]
Illegal character: “
You should use : ”
I hope difference is visible.
GOD