Skip to main content

Posts

Showing posts with the label knowledge

Encapsulation in JAVA, a Brief explanation

It is a process of  wrapping   up  the  data members  along with related  data handlers method  is called  Encapsulation . Wrapping up the data members and data handlers method means we are grouping both as a single unit. In Java, we group or wrap both inside the Class, so Class is a single unit that consists of data members as well as methods. As shown in the figure. So, the class having both data members and related data handler method is called  Encapsulated Class. Here in the above definition, two important terms have been used i.e,  data members,  and  data handlers method. Data members:  The variables which are declared inside the class. Data handlers Method:  It is just a usual method, whose only purpose is to initialized or return the value of data members present inside the Class. Such types of methods do not use for writing any business logic or functionality.  #knowledgestreams.blogspot.com Types of Da...

ELECTRICITY BILLING SYSTEM

ELECTRICITY BILLING SYSTEM https://knowledgestreams.blogspot.com/ Create a electricity biilling system using JAVA #knowledge #stream #blog you can find the full source code for the project below. A - Below is the source code of the project. B - Create separate class files for every class. C - Copy the code of one class (ex: login.java) and paste it in Login class file, do it for every class. 1 - Create your first class with name 'conn' and paste the code package Electricity; import java.sql.*;   // knowledgestreams.blogspot.com public class conn{     Connection c;     Statement s;     public conn(){           try{               Class.forName("com.mysql.jdbc.Driver");               c =DriverManager.getConnection("jdbc:mysql:///project","root","");   ...

General Knowledge quiz 01

Questions: 1. Which of the following country recently relaunched T20 league?  A.South Africa  B.India    C.Australia  D.England 2. _________ is a method of providing feedback to voters using a ballotless voting system.  A.Electronic Voting Machines (EVM)  B.Voter verifiable paper audit trail (VVPAT)    C.Voluntary Voting System (VVS)  D.None of the above 3. To which species does Vorombe titan belong?  A.Bird  B.Elephant bird    C.Passerine  D.Andalgalornis 4. What is the name of the missile that Indian Air Force (IAF) test fire successfully from a Su-30 aircraft?  A.Beyond Visual Range Air-to-Air Missile (BVRAAM) Astra  B.Long Range Air-to-Air Missile (BVRAAM) Astra    C.Short Range Air-to-Air Missile (BVRAAM) Astra  D.Continental Range Air-to-Air Missile (BVRAAM) Astra 5. How much has the Department...