Posts

PHP+ MYSQL/MARIADB as Backend

Image
Download and SetUp in XAMPP Server in your local.         Download link:https://www.apachefriends.org/download.html        You can install to your custom path.        By default mysql is the part of installation.        After instllation open XAMPP. Start Apache . and Click on http://localhost/dashboard/ u can see the dashboard. If you go to http://localhost/phpmyadmin  You will see, Access Denied screen. So, Now you need to start mysql and refresh the link. You will be getting at phpadmin page with proper details. 2.Setting UP MYSQL DB for APP Open the phpMyAdmin by means of visiting the http://localhost/phpmyadmin. Now you need to select the Databases tab which is present in the left top of the headers row. Provide a  name and then create it. This newly created empty database can be seen in the left sidebar. Now create a user table in this newly created Database. Go to SQL tab of Browser. Create a table with following User. Query to create Table: CREATE   TABLE   `uis` . `testDB`   (

Standalone java application to block and unblock port and killing services as TaskManager

package com.Demo; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; import javax.swing.BorderFactory; import javax.swing.ButtonGroup; import javax.swing.DefaultComboBoxModel; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.JTextField; import j

Overloading main Method in java

OverLoading Main: This is a simple program to explain overloading and overriding concept in java with main method. public class MyMainMethod {      // Overloading main Method public static void main(String s[]) { System.out.println("Main method"); main(10); } public static void main(int num) { System.out.println(num); } } OutPut: Main method 10 Explanation: As per the program, we can see overloading main method i completely allowed and achievable. As per java execution starts with main method with String array arguments.So JRE finds the default main method to start the execution , which is already differentiated by argument type with other Main method. Overriding is not possible with main as it is static method because  it is not considered overriding as there won’t be any run-time polymorphism. If a derived class defines a static method with same signature as a static method in base class, the method in the derived class hides the meth

Core java Notes and Learning

History And Introduction of java: ... The evolution of 'C' language shock the computer world.It fundamentally changed the way of programming.The creation of this language directed towards the need of structured efficient high level language, that could replace assembly code when creating system programs. To manage the complexity of 'C' language a new language with object oriented programming concept came to the market with some similarities of 'C' concept. C++ is a structured programming concept. OOP(object oriented programming) is a programming methodology that helps to organise complex through the use of inheritance,encapsulation and polymorphism. 'C' was developed by Dennis ritchie, where as C++ was a invention of Bjarne strousstrap in 1979. C++ stood upon fundamentals of 'C'. Creation of java: Programmers using C and C++ faced some problems like platform dependency,compilation , pointer addressing,memory management and other re