Passing Arguments To Console In Java
April 29, 2017Remember String [] args ? This allows to pass values from console to Java application in the form of Strings.... View Article
Remember String [] args ? This allows to pass values from console to Java application in the form of Strings.... View Article
Automatic Memory Management Objects are allocated memory automatically unlike in C or C++ Objects are created in Heap Memory. Heap... View Article
Java is defined in classes Each source file defines at least one java class that has the name same as... View Article
Principles of Java Simple Objected-Oriented Robust Methods, functions and properties Code in small chunks – easy to debug Portable High... View Article
How Java was born? Java started in 1991 – when Sun Microsystems began ‘Green Project’ Primary objective: A new portable language... View Article
//************************* Manager.java ************************* public class Manager extends Employee { public Manager(int empId, String empName) { super(empId, empName); } public void... View Article
public class singleton { private static singleton obj; private singleton(){ System.out.println("Constructor is called only once."); } public static singleton getInstance(){... View Article
//******************* Shape.java ******************* public class Shape { private int x; private int y; private String color; private String shape; Shape(){... View Article
//******************* Vehicle.java ******************* public class Vehicle { private String PNo; private int CNo; Vehicle(){ System.out.println("Vehicle() "); PNo = "NA"; CNo... View Article
//******************* Employee.java ******************* public class Employee { private int ID; private int Salary; private String Name; public Employee(int ID, int... View Article