Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 8

-----------------------------------------------------------------------------------

---
30/11/22---------------------------------------------------------------------------
-------
1)git init

2)git add .

3)git commit -m "Hello project first commit"

4)git branch -M main

5)git remote add origin https://github.com/venkateswararao7157/Hello.git

6)git push -u origin main

git config --global user.email "venky715java@gmail.com"

git config --global user.name "venkateswararao7157"

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello


$ git init
Initialized empty Git repository in D:/Advanced Project/Hello/.git/

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello (master)


$ git add .

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello (master)


$ git commit -m "Hello project first commit"
[master (root-commit) 11dc3f8] Hello project first commit
1 file changed, 5 insertions(+)
create mode 100644 Hello.txt

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello (master)


$ git config --global user.email "venky715java@gmail.com"

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello (master)


$ git config --global user.name "venkateswararao7157"

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello (master)


$ git congig --global --list
git: 'congig' is not a git command. See 'git --help'.

The most similar command is


config

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello (master)


$ git config --global --list
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
user.name=venkateswararao7157
user.email=venky715java@gmail.com

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello (master)


$ git branch -M main

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello (main)


$ git remote add origin https://github.com/venkateswararao7157/Hello.git

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello (main)


$ git push -u origin main
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 322 bytes | 322.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/venkateswararao7157/Hello.git
* [new branch] main -> main
branch 'main' set up to track 'origin/main'.

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello (main)


$ git push -u origin main
Everything up-to-date
branch 'main' set up to track 'origin/main'.

venka@LAPTOP-1Q9M5JEB MINGW64 /d/Advanced Project/Hello (main)


$

-------------------------------------------------------------------------------
1/12/22----------------------------------------------------------------------------
--------

HOW TO SEND MAIL?


*********************

prakash.satyatech@gmail.com

Recepient Email ID

Subject:test email

Body:

Hi rama,
good morning! hope you are doing good!

i'm student in Sathya technologies from O batch having roll number

i have attended an exam today with x company and i got this problem

problem description
input

Expected output
-
-
-
subjrct: Requesting approval 2 days leave

Hi rama,

I'm venky from satya technologies student having roll number.

this email is to inform you about leave starting 1st dec 2022 to 3rd dec 2022. i'm
not keeping well and i request

-
Thanks,
venky
Satya technologies student
mobile number

Q)create three project


*********************

D:
project
calculatorApp
src
Calculator
input num1,num2
output sumresult,subresult,muresult,divresult,remresult
calculatorMain

create object for calculator


perform sum()
-
-

display()
sum of num1 & num2

classes

bankApp
src
bankAccount
bankmanager
create bank Account
deposit
withdraw
showbalance

closeAccount
classes
bankaccount.class
bankmanager.class
lib

billApp

src
menu
bill
billmanager
classes

java class files

>>>>>jar (java archive file)


>>>>>war (web archive file)

>>>>> ear (enterprise archive file)

git init
git add .
git commit -m "Calculator project commit"
git branch -M main
git remote add origin https://github.com/venkateswararao7157/Calculator.git
git push -u origin main

_----------------------------------------------------------------------------------
-----------------------------------------------------------------------

****************Java website baeldung.com*************

-----------------------------------------------------------------------------------
2/12/22----------------------------------------------------------------------------
-----

*******project\studentsapp\cd ..\classes*******

scm->source code management tool.

local repository is place where we store files in locall repository.

remote server is the server repository where we store files.

git is software client we store projects in server

github is the server.

init makeing normal file into repository file


git add-> we are adding new files to the repository.

***********************************************************************************
***********************************************************************************
****

import java.io.PrintStream;

public class Testing{

Public static void main(String[]args)throws FileNotFoundException

File f=new File("logs\\testLogging.log");

System.out.println("Hello from testing");

PrintStream o=new PrintStream(f);

System.setout(o);

System.out.println("Welcom to sathya technologies");

System.out.println("java is awesome language!!!! ");

System.out.println("Hello from core java");

***********************************************************************************
***********************************************************************************
*****

create table of student :-


--------------------------

create table Student (

Student_name varchar2(40),

Student_father_name varchar2(40),

Student_email varchar2(40),

Student_mobile varchar2(40),

Student_city varchar2(40),

Student_course varchar2(40),

Student_address varchar2(40),
Student_gender varchar2(40),
);

insert into Student


values('venky','Krshna','venky715java@gmail.com','9490229571','eluru','java','praga
davaram','male');

update student set


('rama','krishna','ram@gmail.com','9490229571','vij','java','pragadavaram','male'
where Student_name='venky');

***********************************************************************************
***************************************************************************

Index.html:-
------------

<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h1 style="backgr4ound-color:red">EphoneBook</h1>
<a href="Registration.html">Register</a>
<a href="Login.jsp">Login</a>

</body>
</html>
========================================
Registration.html:-
--------------------
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body bgcolor="yellow">
<center>
<h1>Registration Form</h1>
<form action="Registration" method="get" style="background-color:blue">
User name:<input type="text" name="name"><p></p>
Password:<input type="text" name="pwd"><p></p>
Conform Password:<input type="password" name="cpwd"><p></p>
<input type="submit" value="Registration">
<input type="Reset" value="Rest">
<a href="ForgetPassword.html">Forget</a>
</form>
</body>
</center>
</html>

====================================================
Registration.java:-
--------------------

import java.io.IOException;
import java.io.PrintWriter;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
public class Registration extends HttpServlet {
private static final long serialVersionUID = 1L;

protected void doGet(HttpServletRequest request, HttpServletResponse


response) throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out=response.getWriter();
String name=request.getParameter("name");
String password=request.getParameter("pwd");
String Confirm_Password=request.getParameter("cpwd");
if(password.equals(Confirm_Password)) {
out.println(name);
out.println(password);
out.println(Confirm_Password);
}
}

=========================================================================

1).What is Maven?

2).What are the Prerequisites of maven software to install?

3).Explain life cylce of maven?

4).Purpose of maven?

5).when you will go for the maven project?

6).is the maven build tool or version control tool?


7).Types of goals in maven?
I

8).difference between clean and install?

9). what is the purpose of plugins?

10).what are the various repositories available in maven?

11).priority of repositories ?
12).diff b/w local/remote/central?

13).how your setup the profiles various environment?

14).how you add the plugins in the maven repositories?

15).how do your setup the maven profile to the user specific?(Settings.xml)

16).what is artifact ,artifactid,packaging,version tags in pom.xml?

17).inorder to execute maven tool is required?

***********************************************************************************
******************************************

You might also like