
Rahul Maruti Dhokane
blogs from Pune
















A Java method is a collection of statements that are grouped together to perform an operation. When you call the System.out.println method, for example, the system actually executes several statements in order to display a message on the console. Now you will learn how to create your own methods wit...
Posted on 16 April 2014 | 4:25 pm
Read postJava provides the java.util.regex package for pattern matching with regular expressions. Java regular expressions are very similar to the Perl programming language and very easy to learn. A regular expression is a special sequence of characters that helps you match or find other strings or sets of s...
Posted on 16 April 2014 | 4:24 pm
Read postJava provides the Date class available in java.util package, this class encapsulates the current date and time. The Date class supports two constructors. The first constructor initializes the object with the current date and time. Date( ) The following constructor accepts one argument that equals th...
Posted on 16 April 2014 | 4:23 pm
Read postCode : #include<iostream.h> #include<conio.h> #include<algorithm> #include<vector> using namespace std; class Item { public: char name[10]; int quantity; int cost; int code; bool operator==(const Item &i1) { if(code==i1.code) return 1; return 0; } bool operator<(Item &i1) { if(code<i1.code) return 1...
Posted on 27 March 2014 | 10:23 am
Read postDescription : Deque stands for Double-ended queue.These are sequence containers with dynamic sizes that can be expanded or contracted on both ends. Code: #include<deque> //include deque library #include<stdio.h> #include<iostream.h> using namespace std; void main() { deque <int>dq; deque <int>::iter...
Posted on 27 March 2014 | 10:22 am
Read postDescription: Using STL ,the stack header file needs to be included to use this class. The class member functions that are provided are listed below. push, pushes an item onto the stack. pop, pops an item from the stack but does not give this item to the programmer to use. top, gives the programmer a...
Posted on 27 March 2014 | 10:21 am
Read postPerform following using virtual functions : i) Build a master table ii) List a table iii) Insert a new entry iv) Delete old entry v) Edit an entry vi) Search for a record Description : Virtual functions : Its concept is same as a function but it does not really exists but it appears in a program.The...
Posted on 26 March 2014 | 12:50 pm
Read postWrite a menu driven program to carry out the following things in C++ : i)Build a master table ii) Display iii) Insert a new entry iv) Delete entry v) Edit vi) Search for a record Description: Inheritance :The main advantage of inheritance is that ,we can use the predefined code. All the predefined c...
Posted on 26 March 2014 | 12:45 pm
Read postC++ code to perform string operations using operator overloading i. = Equality ii. == String Copy iii. + Concatenation iv. << To display a string Description :Operator Overloading : It is a specific case of polymorphism where different operators have different implementations depending on their argu...
Posted on 26 March 2014 | 10:11 am
Read post