Wednesday, 29 November 2017

C And C++ Bookmarks

C And C++ Bookmarks


Hello DL>


Bookmarks bar


Multiple Display Monitors Functions (Windows)

Interview Tab


C/C++

  1. Win32 Tutorial - Lesson 1: Introduction to Win32
  2. JDBC - Sample, Example Code
  3. Java Native Interface (JNI) - Java Programming Tutorial
  4. Skype URI tutorial: Android apps
  5. Launch Skype from an App Programmatically & Pass Number - Android - Stack Overflow
  6. Sockets programming in Java: A tutorial | JavaWorld
  7. Exceptions in Java | JavaWorld
  8. Exception Handling in Java - javatpoint
  9. finalize in java - Google Search
  10. Difference between final, finally and finalize - javatpoint
  11. Java.lang.Object.finalize() Method Example
  12. [Chapter 9] 9.4 The Exception Hierarchy
  13. Java: checked vs unchecked exception explanation - Stack Overflow
  14. carcassi: Simple guide to checked exceptions Blog | Oracle Community
  15. java - When to choose checked and unchecked exceptions - Stack Overflow
  16. Unchecked Exceptions — The Controversy (The Java™ Tutorials > Essential Classes > Exceptions)
  17. Top 10 Questions about Java Exceptions
  18. (112) Object Oriented Programming Concepts - YouTube
  19. How to create and throw a custom exception in Java | alvinalexander.com
  20. How to create Custom Exception in Java - Tutorial Example
  21. Speedtest.net by Ookla - The Global Broadband Speed Test
  22. Call by value and call by reference in C++ - javatpoint
  23. Java Dynamic Proxy: What is a Proxy and How can We Use It - DZone Java
  24. Aspect-Oriented Programming: What is it good for?
  25. paradigms - How to introduce AOP into productive software development? - Stack Overflow
  26. j-aopwork7-pdf.pdf
  27. JDK Dynamic Proxies
  28. Spring MVC Security JDBC Authentication Example with Custom UserDetailsService and Database Tables using Java Configuration
  29. Use cases of Aspect Oriented Programming
  30. Write your own memcpy() and memmove() - GeeksforGeeks
  31. Software Objects as Memory
  32. Commonly Asked C Programming Interview Questions
  33. Virtual Function and Virtual Table in C++ | HackerEarth
  34. 12.5 — The virtual table | Learn C++
    How Virtual Table and _vptr works | Go4Expert
    Virtual Functions and Runtime Polymorphism in C++ | Set 1 (Introduction) - GeeksforGeeks
    'this' pointer in C++ - GeeksforGeeks
    C++ International Standard
    When do we use Initializer List in C++? - GeeksforGeeks
    Static Keyword in C++ - GeeksforGeeks
    References in C++ - GeeksforGeeks
    Pointers vs References in C++ - GeeksforGeeks
    Virtual Function in C++ - GeeksforGeeks
    In C++, what is a virtual base class? - Stack Overflow
    12.7 — Virtual base classes | Learn C++
    12.6 — Pure virtual functions, abstract base classes, and interface classes | Learn C++
    "What Is Your Greatest Weakness?" Best Answers (6 Proven Examples)
    Turbo C++ or C for Windows 7, 8, 8.1 and 10 32/64-bit Full Screen Free Download - Home
    Download Turbo C++ for Windows 7, 8, 8.1 and Windows 10 (32-64 bit) with full/window screen mode and many more extra feature.
    Turbo C++ or C for Windows 7, 8, 8.1 and 10 32/64-bit Full Screen Free Download - Documentation
    11 Most Common Pitfalls in C Programming Language
    What are the differences between a pointer variable and a reference variable?
    new and delete operators in C++ for dynamic memory - GeeksforGeeks
    Pointers in C and C++ | Set 1 (Introduction, Arithmetic and Array) - GeeksforGeeks
    Object class in Java - GeeksforGeeks
    Internal Working of HashMap in Java - GeeksforGeeks
    Top 30 Programming questions asked in Interview - Java C C++ Answers
    (3) Lecture 18 Virtual Function in C++ Part 2 Hindi - YouTube
    Learn Java by Examples
    how to save all open tabs in firefox - Google Search
    How to save all open tabs quickly in your browser of choice - gHacks Tech News
  1. Getting Started with MySQL Stored Procedures
  2. Java videos in Hindi by Saurabh Shukla Sir - mysirg
  3. Producer-Consumer solution using threads in Java - GeeksforGeeks
  4. OGNL in struts 2 example | Tutorialspoint examples
  5. Spring MVC Hibernate Integration CRUD Example Step by Step | Dinesh on Java
  6. Spring MVC Tutorial for Beginners - Hello Spring 4 MVC
  7. User Interface Principles (Windows)
  8. Principles of User Interface Design
  9. Spring by Example
  10. Writing a CV or Résumé | SkillsYouNeed
  11. Managing Network Adapters Using GetAdaptersInfo (Windows)
  12. Sr Java Developer Resume Sample - Resume Examples - Free Resume Builder
  13. Senior Lead Java J2EE Developer Resume - Hire IT People - We get IT done
  14. C++, VC++ Software Developer : Resume Format
  15. Sample Resumes - CV: C++ Developer - Sample Resumes - CV
  16. Interview Questions: Aspect Oriented Programming (AOP)
  17. Spring MVC Security JDBC Authentication Example with Custom UserDetailsService and Database Tables using Java Configuration
  18. Neo4j Tutorials | JavaInUse
  19. Understanding "extern" keyword in C - GeeksforGeeks
  20. Storage Classes in C - GeeksforGeeks
  21. Aspect-Oriented Programming: What is it good for?

Tuesday, 1 July 2014

JDBC Example for All Databases

Java Database Connectivity for All Database:
  1. MySql
  2. Oracle
  3. SQLServer
  4. Derby
  5. H2 Database
  6. Fire bird database

Open this link


Friday, 11 April 2014


I googled a new website for learning java see this

Kruders.com

Tuesday, 10 December 2013

Configure SSL/HTTPS support on Apache Tomcat 7

Configure SSL/HTTPS support on Apache Tomcat 7 through srccodes.com

Click to go www.srccodes.com

Sunday, 19 May 2013

First basic demo of Synth Look and Feel

Steps to create:

    Firstly Create a Java File and making a JFrame with two JLabels like this

package com;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.UIManager;
import javax.swing.plaf.synth.SynthLookAndFeel;

/**
 *
 * @author abhijeet-tomar.blogspot.com
 */
public class Test1 
{
    JFrame frame;
    JButton button;
    JLabel label1;
    JLabel label2;
    JLabel label3;
    
    
    Test1()
    {
        
        frame = new JFrame("Look and Feel- JFrame");
        
        frame.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
        
        frame.setSize(400,400);
        
        label1 = new JLabel("Hi I am Swing JLabel using Look and Feel");
        
        button = new JButton("Hi I am Swing JButton using Look and Feel");
        
        frame.add(label1,new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, 380, 40));
        
        frame.add(button,new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 50, 380, 40));
        
        frame.pack();
        
        frame.setVisible(true);
        
    }
    
    public static void main(String args[])
    {
        Test1 test_obj = new Test1();
    }
    
}


Output of above code:







It is a basic output which you seen above.

If you applying Synth Look and Feel you can change everything.

Firstly we create a XML File, in Which we define properties of any Swing Component Like JLabel,JButton,JTable etc...

Foramt of XML File Like this:


    
------ We have to write code here for swing component --------




Suppose we have to change the color of Background and Foreground of any component, we have to write the code like this:



    
    
  
    


Steps:

1. Define a Style with his id.
2. Define a Font with name and size.
3. Then define its States, in code we define this for all states,
States Type:
    ENABLED
    MOUSE_OVER
    PRESSED
    DISABLED
    FOCUSED
    SELECTED
    DEFAULT
by default it is in DEFAULT state.
4. In State tag we define two Properties:
    BACKGROUND
    FOREGROUND
5. Then Bind most important tag, which bind this Style to Particular Component or All the Component.
Here we will know about Bind tag attributes Type and Key.
Type:
    Type have two values region and name.
    You can bind to individual, named components, whether or not they are also bound as regions.
Key:
    Key means its for region like Button,Label,Table Or its for named component like loginBtn,cancelBtn.
Both the properties are very important we have to learn these properties in next chapter.

We have almost completed our look and feel XML file, then we have to apply this look and feel XML.

We will write three simple lines of code for applying this XML look and feel.

  try
  {
        SynthLookAndFeel laf = new SynthLookAndFeel();
        laf.load(Test1.class.getResourceAsStream("LookFeelXml.xml"), Test1.class);
        UIManager.setLookAndFeel(laf);
 }
 catch(Exception e)
 {
       System.out.println("Exception in Loading XML File");
 }

Firstly we create SynthLookAndFeel class object and load the XML file.
Then using UIManager Class set the custom look and feel class name.

Complete program:
package com;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.UIManager;
import javax.swing.plaf.synth.SynthLookAndFeel;

/**
 *
 * @author abhi
 */
public class Test1 
{
    JFrame frame;
    JButton button;
    JLabel label1;
    JLabel label2;
    JLabel label3;
    
    
    Test1()
    {
        
        try{
        SynthLookAndFeel laf = new SynthLookAndFeel();
        laf.load(Test1.class.getResourceAsStream("LookFeelXml.xml"), Test1.class);
        UIManager.setLookAndFeel(laf);
        }
        catch(Exception e)
        {
            System.out.println("Exception in Loading XML File");
        }
        
        frame = new JFrame("Look and Feel- JFrame");
        
        frame.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
        
        frame.setSize(400,400);
        
        label1 = new JLabel("Hi I am Swing JLabel using Look and Feel");
        
        button = new JButton("Hi I am Swing JButton using Look and Feel");
        
        frame.add(label1,new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, 380, 40));
        
        frame.add(button,new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 50, 380, 40));
        
        frame.pack();
        
        frame.setVisible(true);
        
    }
    
    public static void main(String args[])
    {
        Test1 test_obj = new Test1();
    }
    
}

Output of above code:



Hello

Friday, 27 July 2012


How to schedule job using quartz API If you want to run a particular program or query on a definite time or particular time then we have to use Quartz Api.

Wednesday, 2 May 2012

Byte Demonstration

class ByteDemo
{
    public static void main(String a[]) throws Exception
    {
        int value=System.in.read();
        System.out.println(value);
       
        /*
        byte a1=50;
        byte b=51;
        byte result=(byte)(a1&b);
        int as=(a1&b);
        System.out.println(result);
        System.out.println(as);
        */
       
        /*byte b=127;
        int i=0;
        while(i<128)
        {
        System.out.println((char)i);
        i++;
        }
        byte b1=-127;
        System.out.println((char)b1);
        */
    }
}

//Synchronization in java example


class BankAccount
{
private int balance=100;

public int getBalance()
{
return balance;
}

public void withDraw(int amount)
{
balance=balance-amount;
}
}


public class  OneAndTwo implements Runnable
{
private BankAccount account=new BankAccount();

public void run()
{
for(int x=0;x<10;x++)
{
makeWithDrawl(10);
if(account.getBalance()<0)
System.out.println("Overdrawn");
}
}


private void makeWithDrawl(int amount)
{
if(account.getBalance()>=amount)
{
System.out.println(Thread.currentThread().getName()+"is about to withdraw");

try
{
System.out.println(Thread.currentThread().getName()+"is going to sleep");

Thread.sleep(500);
}
catch(Exception e)
{
System.out.println(e);
}

System.out.println(Thread.currentThread().getName()+"is woke up");
account.withDraw(amount);
System.out.println(Thread.currentThread().getName()+"completes withdraw");

}
else
System.out.println("Sorry not enough for..."+Thread.currentThread().getName());



}


public static void main(String args[])
{
OneAndTwo ob1=new OneAndTwo();

Thread one=new Thread(ob1,"One");

Thread two=new Thread(ob1,"Two");

one.start();

two.start();


}









}